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/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 2c3346a..782ce4e 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,17 @@ { "name": "angular-contenteditable", - "version": "0.3.8", + "version": "0.3.9", "description": "angular model for the 'contenteditable' html attribute", "repository": { "type": "git", "url": "https://github.com/akatov/angular-contenteditable.git" }, - "main": "angular-contenteditable.js", + "main": "index.js", "directories": { "test": "test" }, "scripts": { - "install": "bower install", + "install-bower": "bower install", "test": "grunt test" }, "repository": "",