Skip to content

Commit 71d7c16

Browse files
committed
release 0.3.0
1 parent ce0a803 commit 71d7c16

File tree

3 files changed

+58
-7
lines changed

3 files changed

+58
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,4 @@ data: {
149149

150150
MIT
151151

152-
Copyright (c) 2015-2016 Michael Brade
152+
Copyright (c) 2015-2016, 2019 Michael Brade

package.json

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "derby-select2",
33
"description": "Native DerbyJS replacement for jQuery Select2",
4-
"version": "0.2.3",
4+
"version": "0.3.0",
55
"author": {
66
"name": "Michael Brade",
77
"email": "brade@kde.org"
@@ -16,6 +16,30 @@
1616
"type": "git",
1717
"url": "michael-brade/derby-select2"
1818
},
19+
"main": "core.js",
20+
"style": "index.css",
21+
"files": [
22+
"css/",
23+
"data/base.js",
24+
"data/model.js",
25+
"dropdown/search.js",
26+
"dropdown/search.html",
27+
"selection/base.js",
28+
"selection/single.js",
29+
"selection/single.html",
30+
"selection/multiple.js",
31+
"selection/multiple.html",
32+
"selection/multiplereorder.js",
33+
"selection/search.js",
34+
"selection/search.html",
35+
"selection/template.html",
36+
"core.js",
37+
"core.html",
38+
"keys.js",
39+
"results.js",
40+
"results.html",
41+
"index.css"
42+
],
1943
"dependencies": {
2044
"sortablejs": "1.10.x",
2145
"lodash": "4.17.x",
@@ -67,15 +91,15 @@
6791
},
6892
"scripts": {
6993
"prebuild": "npm run clean;touch .create_stash && git stash save --include-untracked \"npm build stash\";npm test || { npm run postbuild; exit 1; };",
70-
"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\";",
94+
"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\";",
7195
"postbuild": "git stash pop --index && rm .create_stash;",
7296
"clean": "rm -rf dist;",
7397
"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;",
7498
"test": "echo \"TODO: no tests specified yet\";",
7599
"release": "npm run build; cd dist; npm publish;"
76100
},
77101
"engines": {
78-
"node": "6.x"
102+
"node": "12.x"
79103
},
80104
"license": "MIT",
81105
"bugs": {

package.json.sh

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
name: 'derby-select2'
44
description: 'Native DerbyJS replacement for jQuery Select2'
5-
version: '0.2.3'
5+
version: '0.3.0'
66

77
author:
88
name: 'Michael Brade'
@@ -18,6 +18,33 @@ repository:
1818
type: 'git'
1919
url: 'michael-brade/derby-select2'
2020

21+
main: 'core.js'
22+
23+
style: 'index.css'
24+
25+
files:
26+
'css/'
27+
'data/base.js'
28+
'data/model.js'
29+
'dropdown/search.js'
30+
'dropdown/search.html'
31+
'selection/base.js'
32+
'selection/single.js'
33+
'selection/single.html'
34+
'selection/multiple.js'
35+
'selection/multiple.html'
36+
'selection/multiplereorder.js'
37+
'selection/search.js'
38+
'selection/search.html'
39+
'selection/template.html'
40+
'core.js'
41+
'core.html'
42+
'keys.js'
43+
'results.js'
44+
'results.html'
45+
'index.css'
46+
47+
2148
dependencies:
2249
sortablejs: '1.10.x'
2350

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

140167
engines:
141-
node: '6.x'
168+
node: '12.x'
142169

143170
license: 'MIT'
144171

0 commit comments

Comments
 (0)