|
|
@@ -4,15 +4,18 @@
|
|
|
"license": "MIT",
|
|
|
"scripts": {
|
|
|
"build": "yarn tsc && tsc-alias -p tsconfig.build.json && yarn postbuild",
|
|
|
- "postbuild": "yarn cp:public && yarn cp:views",
|
|
|
"cp:public": "mkdir -p ./dist/public && cp -r ./src/public ./dist",
|
|
|
"cp:views": "mkdir -p ./dist/views && cp -r ./src/views ./dist",
|
|
|
+ "cp:bootstrap": "mkdir -p ./dist/public/bootstrap && cp -r ./node_modules/bootstrap/dist ./dist/public/bootstrap",
|
|
|
+ "cp:bootstrap:dev": "cp -r ./node_modules/bootstrap/dist ./src/public/bootstrap",
|
|
|
"tsc": "tsc -p tsconfig.build.json",
|
|
|
"tsc:w": "yarn tsc -w",
|
|
|
"dev:ci": "yarn dev --ci",
|
|
|
"dev": "cross-env NODE_ENV=development ts-node-dev -r tsconfig-paths/register -r dotenv-flow/config src/index.ts",
|
|
|
"start:prod:ci": "yarn start:prod --ci",
|
|
|
"start:prod": "cross-env NODE_ENV=production node -r dotenv-flow/config dist/index.js",
|
|
|
+ "postbuild": "yarn cp:public && yarn cp:views && yarn cp:bootstrap",
|
|
|
+ "predev": "yarn cp:bootstrap:dev",
|
|
|
"test": "yarn test:lint && yarn test:coverage",
|
|
|
"test:unit": "cross-env NODE_ENV=test jest --passWithNoTests",
|
|
|
"test:coverage": "yarn test:unit",
|