Restructured build flow
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nathan Kellenicki 2020-12-23 10:25:10 -08:00
parent df4ea5dd86
commit 42dae48639

View File

@ -6,12 +6,14 @@
"main": "dist/node/index-node.js", "main": "dist/node/index-node.js",
"types": "dist/node/index-node.d.ts", "types": "dist/node/index-node.d.ts",
"scripts": { "scripts": {
"build:node": "tslint -c tslint.json \"./src/**/*.ts\" && tsc", "build:node": "tsc",
"build:browser": "tslint -c tslint.json \"./src/**/*.ts\" && webpack --mode=production", "build:browser": "webpack --mode=production",
"build:all": "tslint -c tslint.json \"./src/**/*.ts\" && tsc && webpack --mode=production", "build:all": "npm run build:node && npm run build:browser",
"lint": "tslint -c tslint.json \"./src/**/*.ts\"",
"build": "npm run lint && npm run build:all",
"docs": "jsdoc -d docs -c jsdoc.conf.json -t ./node_modules/ink-docstrap/template -R README.md dist/node/**/*.js", "docs": "jsdoc -d docs -c jsdoc.conf.json -t ./node_modules/ink-docstrap/template -R README.md dist/node/**/*.js",
"all": "npm run build:all && npm run docs", "all": "npm run build && npm run docs",
"prepublishOnly": "npm run build:node" "prepublishOnly": "npm run lint && npm run build:node"
}, },
"author": "Nathan Kellenicki <nathan@kellenicki.com>", "author": "Nathan Kellenicki <nathan@kellenicki.com>",
"license": "MIT", "license": "MIT",