Update package.json
Showing
... | ... | @@ -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", | ||
... | ... |
Please
register
or
sign in
to comment