2022-02-15 14:12:27 +00:00
|
|
|
{
|
2023-07-04 11:01:25 +00:00
|
|
|
"name": "explorer",
|
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": {
|
2023-07-04 11:01:25 +00:00
|
|
|
"executor": "@nx/webpack:webpack",
|
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": {
|
2023-07-04 11:01:25 +00:00
|
|
|
"executor": "@nx/webpack:dev-server",
|
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": {
|
2023-11-14 14:25:29 +00:00
|
|
|
"executor": "@nx/eslint:lint",
|
2022-02-15 14:12:27 +00:00
|
|
|
"outputs": ["{options.outputFile}"],
|
|
|
|
"options": {
|
|
|
|
"lintFilePatterns": ["apps/explorer/**/*.{ts,tsx,js,jsx}"]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"test": {
|
2023-07-04 11:01:25 +00:00
|
|
|
"executor": "@nx/jest:jest",
|
|
|
|
"outputs": ["{workspaceRoot}/coverage/apps/explorer"],
|
2022-02-15 14:12:27 +00:00
|
|
|
"options": {
|
2023-11-14 14:25:29 +00:00
|
|
|
"jestConfig": "apps/explorer/jest.config.ts"
|
2022-02-15 14:12:27 +00:00
|
|
|
}
|
2022-02-17 00:21:49 +00:00
|
|
|
},
|
2022-11-23 11:07:45 +00:00
|
|
|
"generate-types": {
|
2023-07-04 11:01:25 +00:00
|
|
|
"executor": "nx:run-commands",
|
2022-11-23 11:07:45 +00:00
|
|
|
"options": {
|
|
|
|
"commands": [
|
2023-11-03 15:52:27 +00:00
|
|
|
"npx openapi-typescript https://raw.githubusercontent.com/vegaprotocol/documentation/main/specs/v0.73.1/blockexplorer.openapi.json --output apps/explorer/src/types/explorer.d.ts --immutable-types"
|
2022-11-23 11:07:45 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2022-10-25 07:41:16 +00:00
|
|
|
"build-spec": {
|
2023-07-04 11:01:25 +00:00
|
|
|
"executor": "nx:run-commands",
|
2022-10-25 07:41:16 +00:00
|
|
|
"outputs": [],
|
|
|
|
"options": {
|
|
|
|
"command": "yarn tsc --project ./apps/explorer/tsconfig.spec.json"
|
|
|
|
}
|
2022-02-15 14:12:27 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
}
|