b3014bb98a
Co-authored-by: Edd <edd@vega.xyz>
82 lines
2.1 KiB
JSON
82 lines
2.1 KiB
JSON
{
|
|
"name": "announcements",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "libs/announcements/src",
|
|
"projectType": "library",
|
|
"tags": [],
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@nx/rollup:rollup",
|
|
"outputs": ["{options.outputPath}"],
|
|
"options": {
|
|
"outputPath": "dist/libs/announcements",
|
|
"tsConfig": "libs/announcements/tsconfig.lib.json",
|
|
"project": "libs/announcements/package.json",
|
|
"entryFile": "libs/announcements/src/index.ts",
|
|
"external": [
|
|
"react",
|
|
"react-dom",
|
|
"react/jsx-runtime",
|
|
"@vegaprotocol/react-helpers",
|
|
"@vegaprotocol/ui-toolkit"
|
|
],
|
|
"rollupConfig": "@nx/react/plugins/bundle-rollup",
|
|
"compiler": "swc",
|
|
"assets": [
|
|
{
|
|
"glob": "libs/announcements/README.md",
|
|
"input": ".",
|
|
"output": "."
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nx/eslint:lint",
|
|
"outputs": ["{options.outputFile}"],
|
|
"options": {
|
|
"lintFilePatterns": ["libs/announcements/**/*.{ts,tsx,js,jsx}"]
|
|
}
|
|
},
|
|
"test": {
|
|
"executor": "@nx/jest:jest",
|
|
"outputs": ["{workspaceRoot}/coverage/libs/announcements"],
|
|
"options": {
|
|
"jestConfig": "libs/announcements/jest.config.ts"
|
|
}
|
|
},
|
|
"storybook": {
|
|
"executor": "@nx/storybook:storybook",
|
|
"options": {
|
|
"port": 4400,
|
|
"configDir": "libs/announcements/.storybook"
|
|
},
|
|
"configurations": {
|
|
"ci": {
|
|
"quiet": true
|
|
}
|
|
}
|
|
},
|
|
"build-storybook": {
|
|
"executor": "@nx/storybook:build",
|
|
"outputs": ["{options.outputDir}"],
|
|
"options": {
|
|
"configDir": "libs/announcements/.storybook",
|
|
"outputDir": "dist/storybook/announcements"
|
|
},
|
|
"configurations": {
|
|
"ci": {
|
|
"quiet": true
|
|
}
|
|
}
|
|
},
|
|
"build-spec": {
|
|
"executor": "nx:run-commands",
|
|
"outputs": [],
|
|
"options": {
|
|
"command": "yarn tsc --project ./libs/announcements/tsconfig.spec.json"
|
|
}
|
|
}
|
|
}
|
|
}
|