Skip to content

Commit

Permalink
Add npm scripts for linting and minifying
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus-87 committed Sep 11, 2017
1 parent ecdb942 commit a82f924
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion create-release-package.sh
Expand Up @@ -10,6 +10,6 @@ version=${tag_parts[1]}
# install dependencies
npm install
# create minified files
./node_modules/lerna/bin/lerna.js run minify
npm run minify
# pack all the corresponding files to a zip archive
find -not -iwholename '*.git*' -iname *${plugin_name}* -type f | zip ${plugin_name}-${version}.zip -@
4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -6,7 +6,9 @@
"url": "https://github.com/dbmdz/mirador-plugins.git"
},
"scripts": {
"release": "lerna publish"
"lint": "./node_modules/lerna/bin/lerna.js run lint",
"minify": "./node_modules/lerna/bin/lerna.js run minify",
"release": "./node_modules/lerna/bin/lerna.js publish"
},
"devDependencies": {
"gulp": "^3.9.1",
Expand Down

0 comments on commit a82f924

Please sign in to comment.