Skip to content

Commit

Permalink
chore: add projectRoot
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored and splincode committed Sep 23, 2024
1 parent 7d887df commit d37d083
Show file tree
Hide file tree
Showing 9 changed files with 2,503 additions and 2,114 deletions.
4,505 changes: 2,447 additions & 2,058 deletions package-lock.json

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
"*** Cypress ***": "",
"cy:open": "cypress open --project ./projects/demo-integrations/",
"cy:run": "nx e2e demo-integrations",
"release": "npx syncer && npx nx run-many --target publish --all",
"release:local": "npx release-it --no-git.push --dry-run"
"release": "npx nx run-many --target publish --all",
"release:local": "npx release-it --no-git.push --'hooks.before:release=\"echo Skip publish\"'"
},
"commitlint": {
"extends": [
Expand Down Expand Up @@ -96,15 +96,15 @@
"@nx/react": "19.8.0",
"@nx/rollup": "19.8.0",
"@nx/workspace": "19.8.0",
"@taiga-ui/auto-changelog-config": "0.212.0",
"@taiga-ui/commitlint-config": "0.212.0",
"@taiga-ui/cspell-config": "0.212.0",
"@taiga-ui/eslint-plugin-experience": "0.212.0",
"@taiga-ui/prettier-config": "0.212.0",
"@taiga-ui/release-it-config": "0.212.0",
"@taiga-ui/stylelint-config": "0.212.0",
"@taiga-ui/syncer": "0.212.0",
"@taiga-ui/tsconfig": "0.212.0",
"@taiga-ui/auto-changelog-config": "0.215.0",
"@taiga-ui/commitlint-config": "0.215.0",
"@taiga-ui/cspell-config": "0.215.0",
"@taiga-ui/eslint-plugin-experience": "0.215.0",
"@taiga-ui/prettier-config": "0.215.0",
"@taiga-ui/release-it-config": "0.215.0",
"@taiga-ui/stylelint-config": "0.215.0",
"@taiga-ui/syncer": "0.215.0",
"@taiga-ui/tsconfig": "0.215.0",
"@tinkoff/eslint-config": "4.1.3",
"@tinkoff/eslint-config-react": "4.1.3",
"@types/jest": "29.5.13",
Expand Down
6 changes: 3 additions & 3 deletions projects/angular/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
"executor": "@nx/angular:package",
"outputs": ["{workspaceRoot}/dist/{projectName}"],
"options": {
"project": "projects/{projectName}/ng-package.json"
"project": "{projectRoot}/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/{projectName}/tsconfig.lib.prod.json"
"tsConfig": "{projectRoot}/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "tsconfig.build.json"
Expand All @@ -33,7 +33,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
"options": {
"jestConfig": "projects/{projectName}/jest.config.ts"
"jestConfig": "{projectRoot}/jest.config.ts"
}
},
"publish": {
Expand Down
10 changes: 5 additions & 5 deletions projects/core/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"executor": "@nx/rollup:rollup",
"outputs": ["{options.outputPath}"],
"options": {
"project": "projects/{projectName}/package.json",
"project": "{projectRoot}/package.json",
"outputPath": "dist/{projectName}",
"entryFile": "projects/{projectName}/src/index.ts",
"tsConfig": "projects/{projectName}/tsconfig.lib.json",
"entryFile": "{projectRoot}/src/index.ts",
"tsConfig": "{projectRoot}/tsconfig.lib.json",
"format": ["esm", "cjs"],
"compiler": "tsc",
"external": "all",
"assets": [
{
"glob": "projects/{projectName}/README.md",
"glob": "{projectRoot}/README.md",
"input": ".",
"output": "."
}
Expand All @@ -29,7 +29,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
"options": {
"jestConfig": "projects/{projectName}/jest.config.ts"
"jestConfig": "{projectRoot}/jest.config.ts"
}
},
"publish": {
Expand Down
28 changes: 14 additions & 14 deletions projects/demo/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@
"executor": "@nx/angular:webpack-browser",
"options": {
"customWebpackConfig": {
"path": "projects/{projectName}/webpack.config.ts"
"path": "{projectRoot}/webpack.config.ts"
},
"baseHref": "/",
"outputPath": "dist/{projectName}/browser",
"index": "projects/{projectName}/src/index.html",
"main": "projects/{projectName}/src/main.ts",
"polyfills": "projects/{projectName}/src/polyfills.ts",
"tsConfig": "projects/{projectName}/tsconfig.app.json",
"index": "{projectRoot}/src/index.html",
"main": "{projectRoot}/src/main.ts",
"polyfills": "{projectRoot}/src/polyfills.ts",
"tsConfig": "{projectRoot}/tsconfig.app.json",
"aot": false,
"assets": [
{
"glob": "**/*",
"input": "projects/{projectName}/src/assets/",
"input": "{projectRoot}/src/assets/",
"output": "./assets/"
},
{
Expand All @@ -35,7 +35,7 @@
"node_modules/@taiga-ui/core/styles/taiga-ui-theme.less",
"node_modules/@taiga-ui/core/styles/taiga-ui-fonts.less",
"node_modules/@taiga-ui/styles/taiga-ui-global.less",
"projects/{projectName}/src/styles.less"
"{projectRoot}/src/styles.less"
],
"scripts": [],
"vendorChunk": true,
Expand All @@ -50,8 +50,8 @@
"production": {
"fileReplacements": [
{
"replace": "projects/{projectName}/src/environments/environment.ts",
"with": "projects/{projectName}/src/environments/environment.prod.ts"
"replace": "{projectRoot}/src/environments/environment.ts",
"with": "{projectRoot}/src/environments/environment.prod.ts"
}
],
"optimization": true,
Expand Down Expand Up @@ -131,18 +131,18 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
"options": {
"jestConfig": "projects/{projectName}/jest.config.ts"
"jestConfig": "{projectRoot}/jest.config.ts"
}
},
"server": {
"executor": "@nx/angular:webpack-server",
"options": {
"customWebpackConfig": {
"path": "projects/{projectName}/webpack.config.ts"
"path": "{projectRoot}/webpack.config.ts"
},
"outputPath": "dist/{projectName}/server",
"main": "projects/{projectName}/server.ts",
"tsConfig": "projects/{projectName}/tsconfig.server.json",
"main": "{projectRoot}/server.ts",
"tsConfig": "{projectRoot}/tsconfig.server.json",
"sourceMap": true,
"optimization": false
},
Expand Down Expand Up @@ -186,7 +186,7 @@
"options": {
"browserTarget": "{projectName}:build:production",
"serverTarget": "{projectName}:server:production",
"routesFile": "./projects/{projectName}/routesFile.txt"
"routesFile": "./{projectRoot}/routesFile.txt"
},
"dependsOn": [
{
Expand Down
10 changes: 5 additions & 5 deletions projects/kit/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"executor": "@nx/rollup:rollup",
"outputs": ["{options.outputPath}"],
"options": {
"project": "projects/{projectName}/package.json",
"project": "{projectRoot}/package.json",
"outputPath": "dist/{projectName}",
"entryFile": "projects/{projectName}/src/index.ts",
"tsConfig": "projects/{projectName}/tsconfig.lib.json",
"entryFile": "{projectRoot}/src/index.ts",
"tsConfig": "{projectRoot}/tsconfig.lib.json",
"format": ["esm", "cjs"],
"compiler": "tsc",
"external": "all",
"assets": [
{
"glob": "projects/{projectName}/README.md",
"glob": "{projectRoot}/README.md",
"input": ".",
"output": "."
}
Expand All @@ -36,7 +36,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
"options": {
"jestConfig": "projects/{projectName}/jest.config.ts"
"jestConfig": "{projectRoot}/jest.config.ts"
}
},
"publish": {
Expand Down
10 changes: 5 additions & 5 deletions projects/phone/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"executor": "@nx/rollup:rollup",
"outputs": ["{options.outputPath}"],
"options": {
"project": "projects/{projectName}/package.json",
"project": "{projectRoot}/package.json",
"outputPath": "dist/{projectName}",
"entryFile": "projects/{projectName}/src/index.ts",
"tsConfig": "projects/{projectName}/tsconfig.lib.json",
"entryFile": "{projectRoot}/src/index.ts",
"tsConfig": "{projectRoot}/tsconfig.lib.json",
"format": ["esm", "cjs"],
"compiler": "tsc",
"external": "all",
"assets": [
{
"glob": "projects/{projectName}/README.md",
"glob": "{projectRoot}/README.md",
"input": ".",
"output": "."
}
Expand All @@ -36,7 +36,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
"options": {
"jestConfig": "projects/{projectName}/jest.config.ts"
"jestConfig": "{projectRoot}/jest.config.ts"
}
},
"publish": {
Expand Down
14 changes: 7 additions & 7 deletions projects/react/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/{projectName}",
"tsConfig": "projects/{projectName}/tsconfig.lib.json",
"project": "projects/{projectName}/package.json",
"entryFile": "projects/{projectName}/src/index.ts",
"tsConfig": "{projectRoot}/tsconfig.lib.json",
"project": "{projectRoot}/package.json",
"entryFile": "{projectRoot}/src/index.ts",
"external": "all",
"rollupConfig": "@nx/{projectName}/plugins/bundle-rollup",
"rollupConfig": "@nx/react/plugins/bundle-rollup",
"compiler": "babel",
"format": ["esm", "cjs"],
"assets": [
{
"glob": "projects/{projectName}/README.md",
"glob": "{projectRoot}/README.md",
"input": ".",
"output": "."
}
Expand All @@ -37,14 +37,14 @@
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["projects/{projectName}/**/*.{ts,tsx,js,jsx}"]
"lintFilePatterns": ["{projectRoot}/**/*.{ts,tsx,js,jsx}"]
}
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
"options": {
"jestConfig": "projects/{projectName}/jest.config.ts"
"jestConfig": "{projectRoot}/jest.config.ts"
}
},
"publish": {
Expand Down
12 changes: 6 additions & 6 deletions projects/vue/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/{projectName}",
"tsConfig": "projects/{projectName}/tsconfig.lib.json",
"project": "projects/{projectName}/package.json",
"entryFile": "projects/{projectName}/src/index.ts",
"tsConfig": "{projectRoot}/tsconfig.lib.json",
"project": "{projectRoot}/package.json",
"entryFile": "{projectRoot}/src/index.ts",
"format": ["esm", "cjs"],
"compiler": "tsc",
"external": "all",
"assets": [
{
"glob": "projects/{projectName}/README.md",
"glob": "{projectRoot}/README.md",
"input": ".",
"output": "."
}
Expand All @@ -36,14 +36,14 @@
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["projects/{projectName}/**/*.{ts,js}"]
"lintFilePatterns": ["{projectRoot}/**/*.{ts,js}"]
}
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
"options": {
"jestConfig": "projects/{projectName}/jest.config.ts"
"jestConfig": "{projectRoot}/jest.config.ts"
}
},
"publish": {
Expand Down

0 comments on commit d37d083

Please sign in to comment.