-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
54 lines (54 loc) · 2.48 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"name": "derby-entities-lib",
"description": "Base library for derby-entity CRUD component and derby-entities-visualizations",
"version": "1.2.4",
"main": "api.ls",
"author": {
"name": "Michael Brade",
"email": "brade@kde.org"
},
"keywords": [
"derby",
"component",
"entity",
"crud"
],
"repository": {
"type": "git",
"url": "michael-brade/derby-entities-lib"
},
"dependencies": {
"lodash": "4.x",
"derby-select2": "0.2.x"
},
"devDependencies": {
"livescript": "1.6.x",
"uglify-js": "3.x",
"html-minifier": "3.x",
"browserify": "16.x",
"browserify-livescript": "0.2.x",
"derby": "0.10.x",
"mocha": "6.x",
"mocha-generators": "2.x",
"nightmare": "3.x",
"chai": "4.x",
"chai-as-promised": "7.x"
},
"scripts": {
"prebuild": "npm run clean;touch .create_stash && git stash save --include-untracked \"npm build stash\";npm test || { npm run postbuild; exit 1; };",
"build": "set -e;export DEST=dist;export SOURCES='*.ls';export VIEWS='*.html';export ASSETS='.*.css|./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 bash -c 'set -e; set -o pipefail;echo $0...;mkdir -p \"$DEST/`dirname $0`\";lsc -cp \"$0\" | uglifyjs -cm -o \"$DEST/${0%.*}.js\" || exit 255;';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\" || exit 255'| column -t -c 3;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\" || exit 255'| column -t -c 3;echo \"\u001b[01;32mDone!\u001b[00m\";",
"postbuild": "git stash pop --index && rm .create_stash;",
"clean": "rm -rf dist;",
"test": "mocha test/_*.ls test/api.ls;",
"disttest": "cd dist; npm run test;",
"release": "npm run build && cd dist && npm publish;"
},
"engines": {
"node": "4.x || 5.x"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/michael-brade/derby-entities-lib/issues"
},
"homepage": "https://github.com/michael-brade/derby-entities-lib#readme"
}