Skip to content

Commit

Permalink
chore: add json in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kasir-barati committed Oct 30, 2024
1 parent b02bfce commit 182d760
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/docs/monorepo/libs-lib1-project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "lib1",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/lib1/src",
"projectType": "library",
"targets": {
"build": {
"executor": "@nx/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/libs/lib1",
"main": "libs/lib1/src/index.ts",
"tsConfig": "libs/lib1/tsconfig.lib.json",
"assets": ["libs/lib1/*.md", "libs/lib1/src/images/*"]
}
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["libs/lib1/**/*.ts"]
}
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "libs/lib1/jest.config.ts",
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
}
}
},
"tags": []
}
35 changes: 35 additions & 0 deletions .github/docs/monorepo/root-nx-for-libs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"targetDefaults": {
"build": {
"executor": "@nx/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/{projectRoot}",
"main": "{projectRoot}/src/index.ts",
"tsConfig": "{projectRoot}/tsconfig.lib.json",
"assets": ["{projectRoot}/*.md"]
}
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["{projectRoot}/**/*.ts"]
}
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "{projectRoot}/jest.config.ts",
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
}
}
}
}

0 comments on commit 182d760

Please sign in to comment.