Commit 19ad934d by Edgar HIPP

Update package.json

parent 84b0e39f
......@@ -2,3 +2,4 @@
test/
js/
node_modules
build
......@@ -5,22 +5,27 @@
"main": "js/index.js",
"scripts": {
"compile": "rimraf js && mkdirp js && babel es6 --out-dir js",
"prepublish": "npm run compile",
"prepublish": "rimraf build && mkdirp build && npm run compile && npm run browserify && npm run uglify",
"test:compiled": "mocha js/test.js",
"test:es6": "mocha es6/test.js",
"lint": "eslint .",
"test": "npm run compile && npm run test:compiled"
"test": "npm run compile && npm run test:compiled",
"preversion": "npm test",
"browserify": "browserify --insert-global-vars __filename,__dirname -r ./js/index.js -s ImageModule > build/imagemodule.js",
"uglify": "uglifyjs build/imagemodule.js > build/imagemodule.min.js"
},
"devDependencies": {
"babel-cli": "^6.11.4",
"babel-eslint": "^6.0.2",
"babel-preset-es2015": "^6.3.13",
"browserify": "^13.1.0",
"chai": "^3.4.1",
"docxtemplater": "^2.1.0",
"eslint": "^2.7.0",
"mocha": "^2.4.5",
"mkdirp": "^0.5.1",
"babel-cli": "^6.11.4",
"rimraf": "^2.5.3"
"mocha": "^2.4.5",
"rimraf": "^2.5.4",
"uglifyjs": "^2.4.10"
},
"repository": {
"type": "git",
......
......@@ -126,7 +126,7 @@ You can build a release for the browser with the following commands
```
npm install -g gulp jasmine-node uglify-js browserify
npm install
gulp allCoffee
npm run compile
mkdir build -p
browserify -r ./js/index.js -s ImageModule > build/imagemodule.js
uglifyjs build/imagemodule.js > build/imagemodule.min.js # Optional
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment