From d2a229df0c18062347bcafb52530cacdf50c5f40 Mon Sep 17 00:00:00 2001 From: Matt Lewis Date: Mon, 12 Oct 2015 15:33:08 +0100 Subject: [PATCH] Add commonjs + npm support --- .npmignore | 4 ++++ README.md | 5 +++++ index.js | 2 ++ package.json | 8 ++++++-- 4 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 .npmignore create mode 100644 index.js diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..26ef25e --- /dev/null +++ b/.npmignore @@ -0,0 +1,4 @@ +docs +src +gulpfile.js +karma.conf.js \ No newline at end of file diff --git a/README.md b/README.md index e135c87..f82fc96 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,11 @@ npm install -g bower bower install oi.select ``` +or use npm: +``` +npm install --save oi.select +``` + or use local: ``` diff --git a/index.js b/index.js new file mode 100644 index 0000000..b22f181 --- /dev/null +++ b/index.js @@ -0,0 +1,2 @@ +require('./dist/select-tpls.js'); +module.exports = 'oi.select'; \ No newline at end of file diff --git a/package.json b/package.json index fb331bb..e8d0855 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,6 @@ "gulp-minify-html": "1.0.0", "gulp-rename": "1.2.2", "stream-series": "0.1.1", - "jasmine-core": "2.3.4", "karma": "0.13.9", "karma-jasmine": "0.3.6", @@ -31,9 +30,14 @@ "karma-ie-launcher": "0.2.0", "karma-phantomjs-launcher": "0.2.1", "karma-sauce-launcher": "0.2.14", - "jasmine-jquery": "2.1.0", "karma-jasmine-jquery": "0.1.1", "karma-ng-html2js-preprocessor": "0.1.2" + }, + "browser": "index.js", + "style": "dist/select.min.css", + "peerDependencies": { + "angular": ">=1.2", + "angular-sanitize": ">=1.2" } } \ No newline at end of file