a6a21bed46
* feat: add env specific serve commands where appropriate for apps * fix: typo in command call * feat: add custom executor for serving apps * chore: clean up project files and use the custom executor * chore: patch readmes * chore: split out logs into their own function * fix: prevent overriding env when no flag passed in * fix: add tsc to postinstall to take care of compiling the custom executors * fix: remove the custom serve executor from trading
81 lines
2.2 KiB
JSON
81 lines
2.2 KiB
JSON
{
|
|
"root": "apps/explorer",
|
|
"sourceRoot": "apps/explorer/src",
|
|
"projectType": "application",
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@nrwl/web:webpack",
|
|
"outputs": ["{options.outputPath}"],
|
|
"defaultConfiguration": "production",
|
|
"options": {
|
|
"compiler": "babel",
|
|
"outputPath": "dist/apps/explorer",
|
|
"index": "apps/explorer/src/index.html",
|
|
"baseHref": "/",
|
|
"main": "apps/explorer/src/main.tsx",
|
|
"polyfills": "apps/explorer/src/polyfills.ts",
|
|
"tsConfig": "apps/explorer/tsconfig.app.json",
|
|
"assets": ["apps/explorer/src/assets"],
|
|
"styles": ["apps/explorer/src/styles.css"],
|
|
"scripts": [],
|
|
"webpackConfig": "apps/explorer/webpack.config.js"
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"fileReplacements": [
|
|
{
|
|
"replace": "apps/explorer/src/environments/environment.ts",
|
|
"with": "apps/explorer/src/environments/environment.prod.ts"
|
|
}
|
|
],
|
|
"optimization": true,
|
|
"outputHashing": "all",
|
|
"sourceMap": true,
|
|
"namedChunks": false,
|
|
"extractLicenses": true,
|
|
"vendorChunk": false
|
|
}
|
|
}
|
|
},
|
|
"serve": {
|
|
"executor": "./tools/executors/serve:serve",
|
|
"options": {
|
|
"port": 3000,
|
|
"buildTarget": "explorer:build",
|
|
"hmr": true
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"buildTarget": "explorer:build:production",
|
|
"hmr": false
|
|
}
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nrwl/linter:eslint",
|
|
"outputs": ["{options.outputFile}"],
|
|
"options": {
|
|
"lintFilePatterns": ["apps/explorer/**/*.{ts,tsx,js,jsx}"]
|
|
}
|
|
},
|
|
"test": {
|
|
"executor": "@nrwl/jest:jest",
|
|
"outputs": ["coverage/apps/explorer"],
|
|
"options": {
|
|
"jestConfig": "apps/explorer/jest.config.js",
|
|
"passWithNoTests": true
|
|
}
|
|
},
|
|
"build-netlify": {
|
|
"builder": "@nrwl/workspace:run-commands",
|
|
"options": {
|
|
"commands": [
|
|
"cp apps/explorer/netlify.toml netlify.toml",
|
|
"nx build explorer"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"tags": []
|
|
}
|