-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package.json: update build system and dependencies
- don't compile stuff in test/ - minify views - use babel es2015-loose, Derby needs to be able to enumerate methods
- Loading branch information
1 parent
a576bea
commit 795ad11
Showing
2 changed files
with
18 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "derby-select2", | ||
"description": "Native Derby JS replacement for jQuery Select2", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"author": { | ||
"name": "Michael Brade", | ||
"email": "[email protected]" | ||
|
@@ -27,6 +27,9 @@ | |
"babel-cli": "6.x", | ||
"babel-preset-es2015-loose": "6.x" | ||
}, | ||
"peerDependencies": { | ||
"derby": "michael-brade/derby" | ||
}, | ||
"eslintConfig": { | ||
"env": { | ||
"browser": true, | ||
|
@@ -43,12 +46,10 @@ | |
}, | ||
"scripts": { | ||
"prebuild": "npm run clean; touch .create_stash && git stash save --include-untracked \"npm build stash\";", | ||
"build": "export DEST=dist;export ASSETS='.*.scss|.*.html|./README.md|./package.json';find \\( -path './node_modules*' -o -path \"./$DEST\" \\) -prune -o -name '*.js' -print0| xargs -n1 -P8 -0 sh -c 'echo Compiling and minifying $0...;mkdir -p \"$DEST/`dirname $0`\";babel --presets es2015 \"$0\" | uglifyjs - -cm -o \"$DEST/$0\";';echo \"\u001b[01;32mCopying assets...\u001b[00m\";find \\( -path './node_modules*' -o -path \"./$DEST\" \\) -prune -o -regextype posix-egrep -regex $ASSETS -print0| xargs -n1 -0 sh -c 'mkdir -p \"$DEST/`dirname \"$0\"`\";cp -a \"$0\" \"$DEST/$0\"';echo \"\u001b[01;32mDone!\u001b[00m\";", | ||
"build": "export DEST=dist;export ASSETS='.*.scss|.*.html|./README.md|./package.json';find \\( -path './node_modules' -o -path \"./$DEST\" -o -path './test' \\) -prune -o -name '*.js' -print0| xargs -n1 -P8 -0 sh -c 'echo Compiling and minifying $0...;mkdir -p \"$DEST/`dirname $0`\";babel --presets es2015-loose \"$0\" | uglifyjs - -cm -o \"$DEST/$0\";';echo \"\u001b[01;32mCopying assets...\u001b[00m\";find \\( -path './node_modules' -o -path \"./$DEST\" \\) -prune -o -regextype posix-egrep -regex $ASSETS -print0| xargs -n1 -0 sh -c 'mkdir -p \"$DEST/`dirname \"$0\"`\";cp -a \"$0\" \"$DEST/$0\"';echo \"\u001b[01;32mMinifying views...\u001b[00m\";find \"$DEST\" -name '*.html' -print0 | xargs -n1 -0 perl -i -p0e 's/\\n//g;s/ +/ /g;s/<!--.*?-->//g';echo \"\u001b[01;32mDone!\u001b[00m\";", | ||
"postbuild": "git stash pop --index && rm .create_stash;", | ||
"clean": "rm -rf dist;", | ||
"test": "echo \"TODO: no tests specified yet\" && exit 1;", | ||
"prepublish": "npm run clean; npm run build;", | ||
"publish": "npm publish dist;" | ||
"test": "echo \"TODO: no tests specified yet\" && exit 1;" | ||
}, | ||
"engines": { | ||
"node": "6.x" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters