Skip to content

Commit

Permalink
release 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-brade committed Dec 8, 2019
1 parent ce0a803 commit 71d7c16
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,4 @@ data: {

MIT

Copyright (c) 2015-2016 Michael Brade
Copyright (c) 2015-2016, 2019 Michael Brade
30 changes: 27 additions & 3 deletions package.json
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": "brade@kde.org"
Expand All @@ -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",
Expand Down Expand Up @@ -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": {
Expand Down
33 changes: 30 additions & 3 deletions package.json.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

name: 'derby-select2'
description: 'Native DerbyJS replacement for jQuery Select2'
version: '0.2.3'
version: '0.3.0'

author:
name: 'Michael Brade'
Expand All @@ -18,6 +18,33 @@ repository:
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'

Expand Down Expand Up @@ -83,7 +110,7 @@ scripts:
export SOURCES='*.js';
export VIEWS='*.html';
export ASSETS='.*\.scss|./README\.md|./package\.json';
export IGNORE=\"./$DEST|./test|./node_modules\";
export IGNORE=\"./$DEST|./test|./node_modules|./docs\";
echo \"\033[01;32mCompiling and minifying...\033[00m\";
find -regextype posix-egrep -regex $IGNORE -prune -o -name \"$SOURCES\" -print0
Expand Down Expand Up @@ -138,7 +165,7 @@ scripts:
release: "npm run build; cd dist; npm publish;"

engines:
node: '6.x'
node: '12.x'

license: 'MIT'

Expand Down

0 comments on commit 71d7c16

Please sign in to comment.