-
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.
- Loading branch information
1 parent
ce0a803
commit 71d7c16
Showing
3 changed files
with
58 additions
and
7 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 |
---|---|---|
|
@@ -149,4 +149,4 @@ data: { | |
|
||
MIT | ||
|
||
Copyright (c) 2015-2016 Michael Brade | ||
Copyright (c) 2015-2016, 2019 Michael Brade |
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 DerbyJS replacement for jQuery Select2", | ||
"version": "0.2.3", | ||
"version": "0.3.0", | ||
"author": { | ||
"name": "Michael Brade", | ||
"email": "[email protected]" | ||
|
@@ -16,6 +16,30 @@ | |
"type": "git", | ||
"url": "michael-brade/derby-select2" | ||
}, | ||
"main": "core.js", | ||
"style": "index.css", | ||
"files": [ | ||
"css/", | ||
"data/base.js", | ||
"data/model.js", | ||
"dropdown/search.js", | ||
"dropdown/search.html", | ||
"selection/base.js", | ||
"selection/single.js", | ||
"selection/single.html", | ||
"selection/multiple.js", | ||
"selection/multiple.html", | ||
"selection/multiplereorder.js", | ||
"selection/search.js", | ||
"selection/search.html", | ||
"selection/template.html", | ||
"core.js", | ||
"core.html", | ||
"keys.js", | ||
"results.js", | ||
"results.html", | ||
"index.css" | ||
], | ||
"dependencies": { | ||
"sortablejs": "1.10.x", | ||
"lodash": "4.17.x", | ||
|
@@ -67,15 +91,15 @@ | |
}, | ||
"scripts": { | ||
"prebuild": "npm run clean;touch .create_stash && git stash save --include-untracked \"npm build stash\";npm test || { npm run postbuild; exit 1; };", | ||
"build": "export DEST=dist;export SOURCES='*.js';export VIEWS='*.html';export ASSETS='.*.scss|./README.md|./package.json';export IGNORE=\"./$DEST|./test|./node_modules\";echo \"\u001b[01;32mCompiling and minifying...\u001b[00m\";find -regextype posix-egrep -regex $IGNORE -prune -o -name \"$SOURCES\" -print0| xargs -n1 -P8 -0 sh -c 'echo $0...;mkdir -p \"$DEST/`dirname $0`\";babel \"$0\" | uglifyjs -cm -o \"$DEST/$0\"';echo \"\u001b[01;32mMinifying views...\u001b[00m\";find -regextype posix-egrep -regex $IGNORE -prune -o -name \"$VIEWS\" -print0| xargs -n1 -P8 -0 sh -c 'echo \"$0 -> $DEST/$0\";mkdir -p \"$DEST/`dirname $0`\";html-minifier --config-file .html-minifierrc -o \"$DEST/$0\" \"$0\"'| column -t -c 3;sass -I node_modules/bootstrap-sass/assets/stylesheets -I css index.scss -s compressed --no-source-map $DEST/index.css;echo \"\u001b[01;32mCopying assets...\u001b[00m\";find -regextype posix-egrep -regex $IGNORE -prune -o -regex $ASSETS -print0| xargs -n1 -0 sh -c 'echo \"$0 -> $DEST/$0\";mkdir -p \"$DEST/`dirname \"$0\"`\";cp -a \"$0\" \"$DEST/$0\"'| column -t -c 3;echo \"\u001b[01;32mDone!\u001b[00m\";", | ||
"build": "export DEST=dist;export SOURCES='*.js';export VIEWS='*.html';export ASSETS='.*.scss|./README.md|./package.json';export IGNORE=\"./$DEST|./test|./node_modules|./docs\";echo \"\u001b[01;32mCompiling and minifying...\u001b[00m\";find -regextype posix-egrep -regex $IGNORE -prune -o -name \"$SOURCES\" -print0| xargs -n1 -P8 -0 sh -c 'echo $0...;mkdir -p \"$DEST/`dirname $0`\";babel \"$0\" | uglifyjs -cm -o \"$DEST/$0\"';echo \"\u001b[01;32mMinifying views...\u001b[00m\";find -regextype posix-egrep -regex $IGNORE -prune -o -name \"$VIEWS\" -print0| xargs -n1 -P8 -0 sh -c 'echo \"$0 -> $DEST/$0\";mkdir -p \"$DEST/`dirname $0`\";html-minifier --config-file .html-minifierrc -o \"$DEST/$0\" \"$0\"'| column -t -c 3;sass -I node_modules/bootstrap-sass/assets/stylesheets -I css index.scss -s compressed --no-source-map $DEST/index.css;echo \"\u001b[01;32mCopying assets...\u001b[00m\";find -regextype posix-egrep -regex $IGNORE -prune -o -regex $ASSETS -print0| xargs -n1 -0 sh -c 'echo \"$0 -> $DEST/$0\";mkdir -p \"$DEST/`dirname \"$0\"`\";cp -a \"$0\" \"$DEST/$0\"'| column -t -c 3;echo \"\u001b[01;32mDone!\u001b[00m\";", | ||
"postbuild": "git stash pop --index && rm .create_stash;", | ||
"clean": "rm -rf dist;", | ||
"docs": "npm run build;export DEST=docs;cd dist; browserify -s Select2 core.js -o ../$DEST/select2.js; cd ..;cp dist/index.css $DEST/css/index.css;mkdir -p $DEST/selection $DEST/dropdown;cp -a selection/*.html $DEST/selection;cp -a dropdown/*.html $DEST/dropdown;cp -a core.html results.html $DEST;", | ||
"test": "echo \"TODO: no tests specified yet\";", | ||
"release": "npm run build; cd dist; npm publish;" | ||
}, | ||
"engines": { | ||
"node": "6.x" | ||
"node": "12.x" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
|
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