mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-18 13:41:50 +03:00
77 lines
2.6 KiB
JSON
77 lines
2.6 KiB
JSON
{
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "apps/venus/src",
|
|
"projectType": "application",
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@nrwl/web:webpack",
|
|
"outputs": ["{options.outputPath}"],
|
|
"defaultConfiguration": "production",
|
|
"options": {
|
|
"compiler": "babel",
|
|
"outputPath": "dist/apps/venus",
|
|
"index": "apps/venus/src/index.html",
|
|
"baseHref": "/",
|
|
"main": "apps/venus/src/index.tsx",
|
|
"polyfills": "apps/venus/src/polyfills.ts",
|
|
"tsConfig": "apps/venus/tsconfig.app.json",
|
|
"assets": ["apps/venus/src/assets"],
|
|
"styles": [],
|
|
"scripts": [],
|
|
"webpackConfig": "apps/venus/webpack.config.js"
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"fileReplacements": [
|
|
{
|
|
"replace": "apps/venus/src/environments/environment.ts",
|
|
"with": "apps/venus/src/environments/environment.prod.ts"
|
|
}
|
|
],
|
|
"optimization": true,
|
|
"outputHashing": "all",
|
|
"sourceMap": false,
|
|
"namedChunks": true,
|
|
"extractLicenses": false,
|
|
"vendorChunk": false,
|
|
"generateIndexHtml": false
|
|
}
|
|
}
|
|
},
|
|
"serve": {
|
|
"executor": "@nrwl/web:dev-server",
|
|
"defaultConfiguration": "development",
|
|
"options": {
|
|
"buildTarget": "venus:build",
|
|
"hmr": true,
|
|
"open": true
|
|
},
|
|
"configurations": {
|
|
"development": {
|
|
"buildTarget": "venus:build:development"
|
|
},
|
|
"production": {
|
|
"buildTarget": "venus:build:production",
|
|
"hmr": false
|
|
}
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nrwl/linter:eslint",
|
|
"outputs": ["{options.outputFile}"],
|
|
"options": {
|
|
"lintFilePatterns": ["apps/venus/**/*.{ts,tsx,js,jsx}"]
|
|
}
|
|
},
|
|
"test": {
|
|
"executor": "@nrwl/jest:jest",
|
|
"outputs": ["coverage/apps/venus"],
|
|
"options": {
|
|
"jestConfig": "apps/venus/jest.config.ts",
|
|
"passWithNoTests": true
|
|
}
|
|
}
|
|
},
|
|
"tags": ["app:venus"]
|
|
}
|