71 lines
1.8 KiB
JSON
71 lines
1.8 KiB
JSON
{
|
|
"name": "core",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "packages/core/src",
|
|
"projectType": "library",
|
|
"tags": [],
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@nrwl/rollup:rollup",
|
|
"outputs": ["{options.outputPath}"],
|
|
"options": {
|
|
"outputPath": "packages/core/dist",
|
|
"tsConfig": "packages/core/tsconfig.lib.json",
|
|
"project": "packages/core/package.json",
|
|
"entryFile": "packages/core/src/index.ts",
|
|
"format": ["esm"],
|
|
"generateExportsField": true,
|
|
"rollupConfig": "@nrwl/react/plugins/bundle-rollup",
|
|
"compiler": "babel",
|
|
"assets": []
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nrwl/linter:eslint",
|
|
"outputs": ["{options.outputFile}"],
|
|
"options": {
|
|
"lintFilePatterns": ["packages/core/**/*.{ts,tsx,js,jsx}"]
|
|
}
|
|
},
|
|
"test": {
|
|
"executor": "@nrwl/jest:jest",
|
|
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
|
"options": {
|
|
"jestConfig": "packages/core/jest.config.ts",
|
|
"passWithNoTests": true
|
|
}
|
|
},
|
|
"storybook": {
|
|
"executor": "@nrwl/storybook:storybook",
|
|
"options": {
|
|
"port": 4400,
|
|
"configDir": "packages/core/.storybook"
|
|
},
|
|
"configurations": {
|
|
"ci": {
|
|
"quiet": true
|
|
}
|
|
}
|
|
},
|
|
"build-storybook": {
|
|
"executor": "@nrwl/storybook:build",
|
|
"outputs": ["{options.outputDir}"],
|
|
"options": {
|
|
"outputDir": "dist/storybook/core",
|
|
"configDir": "packages/core/.storybook"
|
|
},
|
|
"configurations": {
|
|
"ci": {
|
|
"quiet": true
|
|
}
|
|
}
|
|
},
|
|
"test-storybook": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"command": "test-storybook -c packages/core/.storybook --url=http://localhost:4400"
|
|
}
|
|
}
|
|
}
|
|
}
|