Better build process

This commit is contained in:
Nathan Kellenicki 2019-03-19 17:23:30 -07:00
parent 1538a47d8a
commit a3ddb3e273

View File

@ -7,9 +7,10 @@
"types": "dist/index-node.d.ts",
"scripts": {
"build:node": "tslint -c tslint.json \"./src/*.ts\" && tsc",
"build:browser": "webpack --mode=production",
"build:browser": "tslint -c tslint.json \"./src/*.ts\" && webpack --mode=production",
"build:all": "tslint -c tslint.json \"./src/*.ts\" && tsc && webpack --mode=production",
"docs": "jsdoc -d docs -c jsdoc.conf.json -t ./node_modules/ink-docstrap/template -R README.md dist/node/consts.js dist/node/poweredup-node.js dist/node/lpf2hub.js dist/node/wedo2smarthub.js dist/node/boostmovehub.js dist/node/puphub.js dist/node/pupremote.js dist/node/duplotrainbase.js dist/node/hub.js dist/node/consts.js",
"all": "npm run build:browser && npm run build:node && npm run docs",
"all": "npm run build:all && npm run docs",
"prepublishOnly": "npm run build:node"
},
"author": "Nathan Kellenicki <nathan@kellenicki.com>",