nx/packages/js/project.json
2022-11-08 13:12:31 -05:00

84 lines
2.2 KiB
JSON

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