2022-02-15 14:12:27 +00:00
|
|
|
{
|
2022-08-31 04:35:46 +00:00
|
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
2022-02-15 14:12:27 +00:00
|
|
|
"sourceRoot": "apps/explorer/src",
|
|
|
|
"projectType": "application",
|
|
|
|
"targets": {
|
|
|
|
"build": {
|
2022-07-06 15:53:35 +00:00
|
|
|
"executor": "./tools/executors/webpack:build",
|
2022-02-15 14:12:27 +00:00
|
|
|
"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",
|
2022-04-06 10:36:36 +00:00
|
|
|
"assets": ["apps/explorer/src/assets"],
|
2022-03-03 14:25:15 +00:00
|
|
|
"styles": ["apps/explorer/src/styles.css"],
|
2022-02-15 14:12:27 +00:00
|
|
|
"scripts": [],
|
2022-03-29 17:29:29 +00:00
|
|
|
"webpackConfig": "apps/explorer/webpack.config.js"
|
2022-02-15 14:12:27 +00:00
|
|
|
},
|
|
|
|
"configurations": {
|
|
|
|
"production": {
|
|
|
|
"fileReplacements": [
|
|
|
|
{
|
|
|
|
"replace": "apps/explorer/src/environments/environment.ts",
|
|
|
|
"with": "apps/explorer/src/environments/environment.prod.ts"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"optimization": true,
|
|
|
|
"outputHashing": "all",
|
2022-03-29 17:29:29 +00:00
|
|
|
"sourceMap": true,
|
2022-02-15 14:12:27 +00:00
|
|
|
"namedChunks": false,
|
|
|
|
"extractLicenses": true,
|
|
|
|
"vendorChunk": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"serve": {
|
2022-07-06 15:53:35 +00:00
|
|
|
"executor": "./tools/executors/webpack:serve",
|
2022-02-15 14:12:27 +00:00
|
|
|
"options": {
|
2022-03-17 09:09:48 +00:00
|
|
|
"port": 3000,
|
2022-08-31 04:35:46 +00:00
|
|
|
"buildTarget": "explorer:build:development",
|
2022-02-15 14:12:27 +00:00
|
|
|
"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": {
|
2022-08-31 04:35:46 +00:00
|
|
|
"jestConfig": "apps/explorer/jest.config.ts",
|
2022-02-15 14:12:27 +00:00
|
|
|
"passWithNoTests": true
|
|
|
|
}
|
2022-02-17 00:21:49 +00:00
|
|
|
},
|
2022-11-23 11:07:45 +00:00
|
|
|
"generate-types": {
|
|
|
|
"executor": "@nrwl/workspace:run-commands",
|
|
|
|
"options": {
|
|
|
|
"commands": [
|
2023-01-10 22:21:54 +00:00
|
|
|
"npx openapi-typescript https://raw.githubusercontent.com/vegaprotocol/documentation/main/specs/v0.66.1/blockexplorer.openapi.json --output apps/explorer/src/types/explorer.d.ts --immutable-types"
|
2022-11-23 11:07:45 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2022-03-07 15:30:00 +00:00
|
|
|
"build-netlify": {
|
2022-08-31 04:35:46 +00:00
|
|
|
"executor": "@nrwl/workspace:run-commands",
|
2022-03-07 15:27:38 +00:00
|
|
|
"options": {
|
|
|
|
"commands": [
|
2022-04-06 10:36:36 +00:00
|
|
|
"cp apps/explorer/netlify.toml netlify.toml",
|
|
|
|
"nx build explorer"
|
2022-03-07 15:27:38 +00:00
|
|
|
]
|
|
|
|
}
|
2022-10-25 07:41:16 +00:00
|
|
|
},
|
|
|
|
"build-spec": {
|
|
|
|
"executor": "@nrwl/workspace:run-commands",
|
|
|
|
"outputs": [],
|
|
|
|
"options": {
|
|
|
|
"command": "yarn tsc --project ./apps/explorer/tsconfig.spec.json"
|
|
|
|
}
|
2022-02-15 14:12:27 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
}
|