From f78f4e47194eac042011ff666833de1ff29d248f Mon Sep 17 00:00:00 2001 From: Oleksandr Khomenko Date: Fri, 11 Dec 2015 17:43:11 -0600 Subject: [PATCH 1/4] Prepared test npm version --- .npmignore | 7 +++++++ package.json | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..975ce1c --- /dev/null +++ b/.npmignore @@ -0,0 +1,7 @@ +.* +README.md +Gruntfile.coffee +components +node_modules +src +test diff --git a/package.json b/package.json index 2c3346a..670d2ce 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,17 @@ { "name": "angular-contenteditable", - "version": "0.3.8", + "version": "0.0.1", "description": "angular model for the 'contenteditable' html attribute", "repository": { "type": "git", - "url": "https://github.com/akatov/angular-contenteditable.git" + "url": "https://github.com/okhomenko/angular-contenteditable.git" }, "main": "angular-contenteditable.js", "directories": { "test": "test" }, "scripts": { - "install": "bower install", + "install-bower": "bower install", "test": "grunt test" }, "repository": "", From eb21de828d664b24a83beeaaf2d87a7972dc4c71 Mon Sep 17 00:00:00 2001 From: Oleksandr Khomenko Date: Fri, 11 Dec 2015 17:50:45 -0600 Subject: [PATCH 2/4] Exposing module via CommonJS --- angular-contenteditable.js | 3 +++ index.js | 3 +++ package.json | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 index.js diff --git a/angular-contenteditable.js b/angular-contenteditable.js index 944409a..e363a78 100644 --- a/angular-contenteditable.js +++ b/angular-contenteditable.js @@ -3,6 +3,7 @@ * @see http://docs.angularjs.org/api/ng.directive:ngModel.NgModelController * @see https://github.com/angular/angular.js/issues/528#issuecomment-7573166 */ +(function(window, angular, undefined) {'use strict'; angular.module('contenteditable', []) .directive('contenteditable', ['$timeout', function($timeout) { return { @@ -106,3 +107,5 @@ angular.module('contenteditable', []) } } }}]); + +}(window, window.angular)); diff --git a/index.js b/index.js new file mode 100644 index 0000000..c59285f --- /dev/null +++ b/index.js @@ -0,0 +1,3 @@ +require('./angular-contenteditable'); +module.exports = 'contenteditable'; + diff --git a/package.json b/package.json index 670d2ce..1d80247 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "angular-contenteditable", - "version": "0.0.1", + "version": "0.0.2", "description": "angular model for the 'contenteditable' html attribute", "repository": { "type": "git", "url": "https://github.com/okhomenko/angular-contenteditable.git" }, - "main": "angular-contenteditable.js", + "main": "index.js", "directories": { "test": "test" }, From f65e0d965722a1d5cfd93eb5437e12b189364ea2 Mon Sep 17 00:00:00 2001 From: Oleksandr Khomenko Date: Tue, 4 Oct 2016 15:13:45 -0500 Subject: [PATCH 3/4] Updated package.json with new version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1d80247..1925499 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "angular-contenteditable", - "version": "0.0.2", + "version": "0.3.9", "description": "angular model for the 'contenteditable' html attribute", "repository": { "type": "git", From f313af06bfee23528417bf42ca3e44f2073c5415 Mon Sep 17 00:00:00 2001 From: Oleksandr Khomenko Date: Tue, 4 Oct 2016 15:14:52 -0500 Subject: [PATCH 4/4] Reverted repository.url to original owner --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1925499..782ce4e 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "angular model for the 'contenteditable' html attribute", "repository": { "type": "git", - "url": "https://github.com/okhomenko/angular-contenteditable.git" + "url": "https://github.com/akatov/angular-contenteditable.git" }, "main": "index.js", "directories": {