Merge pull request #48 from tzoky07/master

Added "build-watch" command. Added ".git" and "dist" directories to .gitignore
This commit is contained in:
Zeno Rocha 2015-10-01 12:07:13 -07:00
commit a4c8bc5bf0

View File

@ -36,12 +36,14 @@
"karma-sinon": "^1.0.4",
"mocha": "^2.3.3",
"phantomjs-polyfill": "0.0.1",
"uglify": "^0.1.5"
"uglify": "^0.1.5",
"watchify": "^3.4.0"
},
"scripts": {
"build": "npm run build-debug && npm run build-min",
"build-debug": "browserify src/clipboard.js -s Clipboard -o dist/clipboard.js",
"build-min": "uglify -s dist/clipboard.js -o dist/clipboard.min.js",
"build-watch": "watchify src/clipboard.js -o dist/clipboard.js -v",
"test": "npm run test-browser && npm run test-server",
"test-browser": "karma start --single-run",
"test-server": "mocha test/module-systems.js"