graphql-engine/frontend/apps/console-ce/project.json
Nicolas Beaussart 66077866cb platform: introduce nx docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6829
GitOrigin-RevId: b0a6a7ccc647ca13863f4c296b7c6b993f784bbb
2022-11-18 18:56:30 +00:00

107 lines
3.3 KiB
JSON

{
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/console-ce/src",
"projectType": "application",
"tags": [],
"targets": {
"build-server-assets": {
"executor": "@nrwl/workspace:run-commands",
"outputs": ["dist/apps/server-assets-console-ce"],
"dependsOn": ["build"],
"options": {
"commands": [
"rm -rf dist/apps/server-assets-console-ce",
"cp dist/apps/console-ce dist/apps/server-assets-console-ce -r",
"mkdir -p dist/apps/server-assets-console-ce/versioned",
"mv dist/apps/server-assets-console-ce/*.{js,css} dist/apps/server-assets-console-ce/versioned",
"gzip -r -f dist/apps/server-assets-console-ce/versioned",
"mv dist/apps/server-assets-console-ce/*.map dist/apps/server-assets-console-ce/versioned"
],
"parallel": false
}
},
"build": {
"executor": "@nrwl/web:webpack",
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "production",
"options": {
"compiler": "babel",
"outputPath": "dist/apps/console-ce",
"index": "apps/console-ce/src/index.html",
"baseHref": "/",
"main": "apps/console-ce/src/main.tsx",
"polyfills": "apps/console-ce/src/polyfills.ts",
"tsConfig": "apps/console-ce/tsconfig.app.json",
"assets": [
"apps/console-ce/src/favicon.ico",
"apps/console-ce/src/assets"
],
"styles": [
"apps/console-ce/src/css/tailwind.css",
"apps/console-ce/src/css/legacy-boostrap.css"
],
"scripts": [],
"webpackConfig": "apps/console-ce/custom-webpack.config.js",
"postcssConfig": "apps/console-ce/postcss.config.js"
},
"configurations": {
"development": {
"extractLicenses": false,
"extractCss": false,
"optimization": false,
"sourceMap": true,
"vendorChunk": true
},
"production": {
"fileReplacements": [
{
"replace": "apps/console-ce/src/environments/environment.ts",
"with": "apps/console-ce/src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "none",
"extractCss": false,
"sourceMap": true,
"namedChunks": false,
"generateIndexHtml": false,
"extractLicenses": false,
"vendorChunk": false
}
}
},
"serve": {
"executor": "@nrwl/web:dev-server",
"defaultConfiguration": "development",
"options": {
"buildTarget": "console-ce:build",
"hmr": true
},
"configurations": {
"development": {
"buildTarget": "console-ce:build:development"
},
"production": {
"buildTarget": "console-ce:build:production",
"hmr": false
}
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/console-ce/**/*.{ts,tsx,js,jsx}"]
}
},
"test": {
"executor": "@nrwl/jest:jest",
"outputs": ["coverage/apps/console-ce"],
"options": {
"jestConfig": "apps/console-ce/jest.config.ts",
"passWithNoTests": true
}
}
}
}