98 lines
2.7 KiB
JSON
98 lines
2.7 KiB
JSON
{
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "packages/react",
|
|
"projectType": "library",
|
|
"targets": {
|
|
"test": {
|
|
"executor": "@nrwl/jest:jest",
|
|
"options": {
|
|
"jestConfig": "packages/react/jest.config.ts",
|
|
"passWithNoTests": true
|
|
},
|
|
"outputs": ["coverage/packages/react"]
|
|
},
|
|
"build-base": {
|
|
"executor": "@nrwl/js:tsc",
|
|
"options": {
|
|
"outputPath": "build/packages/react",
|
|
"tsConfig": "packages/react/tsconfig.lib.json",
|
|
"main": "packages/react/index.ts",
|
|
"updateBuildableProjectDepsInPackageJson": false,
|
|
"assets": [
|
|
{
|
|
"input": "packages/react",
|
|
"glob": "**/files/**",
|
|
"output": "/"
|
|
},
|
|
{
|
|
"input": "packages/react",
|
|
"glob": "**/files/**/.gitkeep",
|
|
"output": "/"
|
|
},
|
|
{
|
|
"input": "packages/react",
|
|
"glob": "**/files/**/.babelrc__tmpl__",
|
|
"output": "/"
|
|
},
|
|
{
|
|
"input": "packages/react",
|
|
"glob": "**/files/**/.browserslistrc__tmpl__",
|
|
"output": "/"
|
|
},
|
|
{
|
|
"input": "packages/react",
|
|
"glob": "**/*.json",
|
|
"ignore": ["**/tsconfig*.json", "project.json", ".eslintrc.json"],
|
|
"output": "/"
|
|
},
|
|
{
|
|
"input": "packages/react",
|
|
"glob": "**/*.d.ts",
|
|
"output": "/"
|
|
},
|
|
{
|
|
"input": "packages/react",
|
|
"glob": "**/*.js",
|
|
"ignore": ["**/jest.config.js"],
|
|
"output": "/"
|
|
},
|
|
{
|
|
"input": "",
|
|
"glob": "LICENSE",
|
|
"output": "/"
|
|
}
|
|
]
|
|
},
|
|
"outputs": ["{options.outputPath}"]
|
|
},
|
|
"build": {
|
|
"executor": "nx:run-commands",
|
|
"outputs": ["build/packages/react"],
|
|
"options": {
|
|
"command": "node ./scripts/copy-readme.js react"
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nrwl/linter:eslint",
|
|
"options": {
|
|
"lintFilePatterns": [
|
|
"packages/react/**/*.ts",
|
|
"packages/react/**/*.spec.ts",
|
|
"packages/react/**/*_spec.ts",
|
|
"packages/react/**/*.spec.tsx",
|
|
"packages/react/**/*.spec.js",
|
|
"packages/react/**/*.spec.jsx",
|
|
"packages/react/**/*.d.ts",
|
|
"packages/react/**/executors/**/schema.json",
|
|
"packages/react/**/generators/**/schema.json",
|
|
"packages/react/generators.json",
|
|
"packages/react/executors.json",
|
|
"packages/react/package.json",
|
|
"packages/react/migrations.json"
|
|
]
|
|
},
|
|
"outputs": ["{options.outputFile}"]
|
|
}
|
|
}
|
|
}
|