Build script

A build process that generates a package with single executable for each
component.
This commit is contained in:
Zaid Abdulla committed 2019-01-04 01:13:47 -08:00
1 parent 819e8a52a3
commit 0b59811924
23 files changed
+734 -688

No files matched your search

+6 -11
View File
@@ -19,7 +19,6 @@
"bin": "bin"
},
"dependencies": {
"codemirror": "^5.40.0",
"jsonwebtoken": "^8.3.0",
"koa-bodyparser": "^4.2.1",
"koa-compress": "^3.0.0",
@@ -31,26 +30,23 @@
"libxmljs": "^0.19.5",
"mongodb": "^3.1.10",
"parsimmon": "^1.12.0",
"seedrandom": "^2.4.4",
"yaml": "^1.0.0"
"seedrandom": "^2.4.4"
},
"optionalDependencies": {
"redis": "^2.6.5"
},
"devDependencies": {
"babel-eslint": "^8.2.6",
"clean-webpack-plugin": "^0.1.19",
"copy-webpack-plugin": "^4.5.2",
"codemirror": "^5.40.0",
"cssnano": "^4.0.5",
"eslint": "^5.10.0",
"mithril": "^1.1.6",
"postcss-cli": "^6.0.0",
"postcss-cssnext": "^3.1.0",
"postcss-import": "^11.1.0",
"prettier": "^1.15.3",
"webpack": "^4.16.3",
"webpack-cli": "^3.1.0",
"webpack-node-externals": "^1.7.2"
"webpack-node-externals": "^1.7.2",
"yaml": "^1.0.0"
},
"engines": {
"node": ">=8.14.0"
@@ -60,8 +56,7 @@
"configure": "if [ ! -f ./config/config.json ]; then cp ./config/config-sample.json ./config/config.json; cp ./config/config-ui-sample.json ./config/config-ui.json; fi",
"install": "npm run configure",
"test": "node test",
"lint": "eslint --fix lib ui; prettier --write \"lib/**/*.js\" \"ui/**/*.js\"",
"build-ui": "npm run lint;webpack;postcss -c postcss.config.js ui/css/app.css -o dist/public/app.css",
"start-ui": "cd dist && node cluster"
"lint": "eslint --fix lib ui build bin/*; prettier --write \"lib/**/*.js\" \"ui/**/*.js\" \"build/**/*.js\" bin/*",
"build": "node build/build"
}
}