graphql-engine/frontend/apps/console-ce/project.json
Nicolas Beaussart d861a2a3c8 frontend: setup buid validator executor
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8446
GitOrigin-RevId: b63613585a880c1812a7012640937cf0e98253be
2023-03-22 20:53:53 +00:00

105 lines
3.2 KiB
JSON

{
"name": "console-ce",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/console-ce/src",
"projectType": "application",
"tags": [],
"targets": {
"build-server-assets": {
"executor": "@hasura/internal-plugin:build-server-assets",
"inputs": ["{workspaceRoot}/dist/apps/console-ce/**"],
"outputs": ["{workspaceRoot}/dist/apps/server-assets-console-ce"],
"dependsOn": ["validate-javascript-bundle-output"]
},
"validate-javascript-bundle-output": {
"executor": "@hasura/internal-plugin:validate-javascript-bundle-output",
"inputs": ["{workspaceRoot}/dist/apps/console-ce/**"],
"dependsOn": ["build"]
},
"build": {
"executor": "@nrwl/webpack: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": [
{
"glob": "**",
"input": "apps/console-ce/src/assets/common",
"output": "common"
}
],
"styles": ["apps/console-ce/src/css/tailwind.css"],
"scripts": [],
"webpackConfig": "custom-webpack.config.js",
"postcssConfig": "apps/console-ce/postcss.config.js",
"isolatedConfig": true
},
"configurations": {
"development": {
"extractLicenses": false,
"outputHashing": "none",
"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": "bundles",
"extractCss": false,
"sourceMap": true,
"namedChunks": true,
"generateIndexHtml": true,
"extractLicenses": false,
"vendorChunk": true
}
}
},
"serve": {
"executor": "@nrwl/webpack: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": ["{workspaceRoot}/coverage/apps/console-ce"],
"options": {
"jestConfig": "apps/console-ce/jest.config.ts",
"passWithNoTests": true
}
}
}
}