diff --git a/projects/addon-charts/project.json b/projects/addon-charts/project.json index e13668925b45..31677a962281 100644 --- a/projects/addon-charts/project.json +++ b/projects/addon-charts/project.json @@ -1,14 +1,14 @@ { "name": "addon-charts", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "projects/addon-charts", + "sourceRoot": "projects/{projectName}", "projectType": "library", "prefix": "tui", "implicitDependencies": ["!testing"], "targets": { "build": { "executor": "@angular-devkit/build-angular:ng-packagr", - "outputs": ["{workspaceRoot}/dist/addon-charts"], + "outputs": ["{workspaceRoot}/dist/{projectName}"], "options": { "tsConfig": "tsconfig.build.json", "project": "{projectRoot}/ng-package.json" @@ -23,23 +23,32 @@ }, "test": { "executor": "@nx/jest:jest", - "outputs": ["{workspaceRoot}/coverage/addon-charts"], + "outputs": ["{workspaceRoot}/coverage/{projectName}"], "options": { "jestConfig": "jest.config.ts", - "coverageDirectory": "coverage/addon-charts", + "coverageDirectory": "coverage/{projectName}", "collectCoverageFrom": ["/{projectRoot}/**/*.ts"], "testMatch": ["/{projectRoot}/**/*.spec.ts"] } }, - "publish": { + "prepublish": { "executor": "nx:run-commands", "options": { - "commands": [ - "cp ./LICENSE ./dist/addon-charts", - "ts-node ./scripts/publish.ts --path ./dist/addon-charts --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" - ], - "parallel": false + "command": "cp ./LICENSE ./dist/{projectName}" } + }, + "publish": { + "executor": "nx:run-commands", + "options": { + "commands": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + }, + "dependsOn": [ + { + "target": "prepublish", + "params": "ignore", + "dependencies": false + } + ] } } } diff --git a/projects/addon-commerce/project.json b/projects/addon-commerce/project.json index d87b35b5015e..c1b783151b81 100644 --- a/projects/addon-commerce/project.json +++ b/projects/addon-commerce/project.json @@ -1,14 +1,14 @@ { "name": "addon-commerce", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "projects/addon-commerce", + "sourceRoot": "projects/{projectName}", "projectType": "library", "prefix": "tui", "implicitDependencies": ["!testing"], "targets": { "build": { "executor": "@angular-devkit/build-angular:ng-packagr", - "outputs": ["{workspaceRoot}/dist/addon-commerce"], + "outputs": ["{workspaceRoot}/dist/{projectName}"], "options": { "tsConfig": "tsconfig.build.json", "project": "{projectRoot}/ng-package.json" @@ -23,23 +23,32 @@ }, "test": { "executor": "@nx/jest:jest", - "outputs": ["{workspaceRoot}/coverage/addon-commerce"], + "outputs": ["{workspaceRoot}/coverage/{projectName}"], "options": { "jestConfig": "jest.config.ts", - "coverageDirectory": "coverage/addon-commerce", + "coverageDirectory": "coverage/{projectName}", "collectCoverageFrom": ["/{projectRoot}/**/*.ts"], "testMatch": ["/{projectRoot}/**/*.spec.ts"] } }, - "publish": { + "prepublish": { "executor": "nx:run-commands", "options": { - "commands": [ - "cp ./LICENSE ./dist/addon-commerce", - "ts-node ./scripts/publish.ts --path ./dist/addon-commerce --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" - ], - "parallel": false + "command": "cp ./LICENSE ./dist/{projectName}" } + }, + "publish": { + "executor": "nx:run-commands", + "options": { + "commands": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + }, + "dependsOn": [ + { + "target": "prepublish", + "params": "ignore", + "dependencies": false + } + ] } } } diff --git a/projects/addon-doc/project.json b/projects/addon-doc/project.json index deb50a565943..fdaf1b43f814 100644 --- a/projects/addon-doc/project.json +++ b/projects/addon-doc/project.json @@ -1,14 +1,14 @@ { "name": "addon-doc", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "projects/addon-doc", + "sourceRoot": "projects/{projectName}", "projectType": "library", "prefix": "tui", "implicitDependencies": ["!testing"], "targets": { "build": { "executor": "@angular-devkit/build-angular:ng-packagr", - "outputs": ["{workspaceRoot}/dist/addon-doc"], + "outputs": ["{workspaceRoot}/dist/{projectName}"], "options": { "tsConfig": "tsconfig.build.json", "project": "{projectRoot}/ng-package.json" @@ -23,23 +23,32 @@ }, "test": { "executor": "@nx/jest:jest", - "outputs": ["{workspaceRoot}/coverage/addon-doc"], + "outputs": ["{workspaceRoot}/coverage/{projectName}"], "options": { "jestConfig": "jest.config.ts", - "coverageDirectory": "coverage/addon-doc", + "coverageDirectory": "coverage/{projectName}", "collectCoverageFrom": ["/{projectRoot}/**/*.ts"], "testMatch": ["/{projectRoot}/**/*.spec.ts"] } }, - "publish": { + "prepublish": { "executor": "nx:run-commands", "options": { - "commands": [ - "cp ./LICENSE ./dist/addon-doc", - "ts-node ./scripts/publish.ts --path ./dist/addon-doc --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" - ], - "parallel": false + "command": "cp ./LICENSE ./dist/{projectName}" } + }, + "publish": { + "executor": "nx:run-commands", + "options": { + "commands": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + }, + "dependsOn": [ + { + "target": "prepublish", + "params": "ignore", + "dependencies": false + } + ] } } } diff --git a/projects/addon-mobile/project.json b/projects/addon-mobile/project.json index 9e1866fd6821..9549292511e6 100644 --- a/projects/addon-mobile/project.json +++ b/projects/addon-mobile/project.json @@ -1,14 +1,14 @@ { "name": "addon-mobile", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "projects/addon-mobile", + "sourceRoot": "projects/{projectName}", "projectType": "library", "prefix": "tui", "implicitDependencies": ["!testing"], "targets": { "build": { "executor": "@angular-devkit/build-angular:ng-packagr", - "outputs": ["{workspaceRoot}/dist/addon-mobile"], + "outputs": ["{workspaceRoot}/dist/{projectName}"], "options": { "tsConfig": "tsconfig.build.json", "project": "{projectRoot}/ng-package.json" @@ -23,23 +23,32 @@ }, "test": { "executor": "@nx/jest:jest", - "outputs": ["{workspaceRoot}/coverage/addon-mobile"], + "outputs": ["{workspaceRoot}/coverage/{projectName}"], "options": { "jestConfig": "jest.config.ts", - "coverageDirectory": "coverage/addon-mobile", + "coverageDirectory": "coverage/{projectName}", "collectCoverageFrom": ["/{projectRoot}/**/*.ts"], "testMatch": ["/{projectRoot}/**/*.spec.ts"] } }, - "publish": { + "prepublish": { "executor": "nx:run-commands", "options": { - "commands": [ - "cp ./LICENSE ./dist/addon-mobile", - "ts-node ./scripts/publish.ts --path ./dist/addon-mobile --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" - ], - "parallel": false + "command": "cp ./LICENSE ./dist/{projectName}" } + }, + "publish": { + "executor": "nx:run-commands", + "options": { + "commands": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + }, + "dependsOn": [ + { + "target": "prepublish", + "params": "ignore", + "dependencies": false + } + ] } } } diff --git a/projects/addon-table/project.json b/projects/addon-table/project.json index 0f357ac62ca8..942c3a418f75 100644 --- a/projects/addon-table/project.json +++ b/projects/addon-table/project.json @@ -1,7 +1,7 @@ { "name": "addon-table", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "projects/addon-table", + "sourceRoot": "projects/{projectName}", "projectType": "library", "prefix": "tui", "implicitDependencies": ["!testing"], @@ -23,23 +23,32 @@ }, "test": { "executor": "@nx/jest:jest", - "outputs": ["{workspaceRoot}/coverage/addon-table"], + "outputs": ["{workspaceRoot}/coverage/{projectName}"], "options": { "jestConfig": "jest.config.ts", - "coverageDirectory": "coverage/addon-table", + "coverageDirectory": "coverage/{projectName}", "collectCoverageFrom": ["/{projectRoot}/**/*.ts"], "testMatch": ["/{projectRoot}/**/*.spec.ts"] } }, - "publish": { + "prepublish": { "executor": "nx:run-commands", "options": { - "commands": [ - "cp ./LICENSE ./dist/addon-table", - "ts-node ./scripts/publish.ts --path ./dist/addon-table --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" - ], - "parallel": false + "command": "cp ./LICENSE ./dist/{projectName}" } + }, + "publish": { + "executor": "nx:run-commands", + "options": { + "commands": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + }, + "dependsOn": [ + { + "target": "prepublish", + "params": "ignore", + "dependencies": false + } + ] } } } diff --git a/projects/cdk/project.json b/projects/cdk/project.json index 5d39115c1160..2b28810bd254 100644 --- a/projects/cdk/project.json +++ b/projects/cdk/project.json @@ -1,7 +1,7 @@ { "name": "cdk", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "projects/cdk", + "sourceRoot": "projects/{projectName}", "projectType": "library", "prefix": "tui", "implicitDependencies": ["!testing", "!core", "!styles"], @@ -25,7 +25,7 @@ "outputs": ["{workspaceRoot}/dist/cdk"], "options": { "parallel": false, - "commands": ["nx prebuild cdk", "nx postbuild cdk"] + "commands": ["nx prebuild {projectName}", "nx postbuild {projectName}"] } }, "postbuild": { @@ -37,7 +37,7 @@ "schematics": { "executor": "nx:run-commands", "options": { - "command": "schematics ./dist/cdk:updateToV{args.v} --allow-private --dry-run true" + "command": "schematics ./dist/{projectName}:updateToV{args.v} --allow-private --dry-run true" }, "dependsOn": [ { @@ -48,10 +48,10 @@ }, "test": { "executor": "@nx/jest:jest", - "outputs": ["{workspaceRoot}/coverage/cdk"], + "outputs": ["{workspaceRoot}/coverage/{projectName}"], "options": { "jestConfig": "jest.config.ts", - "coverageDirectory": "coverage/cdk", + "coverageDirectory": "coverage/{projectName}", "collectCoverageFrom": ["/{projectRoot}/**/*.ts"], "testMatch": ["/{projectRoot}/**/*.spec.ts"] }, @@ -62,15 +62,24 @@ } ] }, - "publish": { + "prepublish": { "executor": "nx:run-commands", "options": { - "commands": [ - "cp ./LICENSE ./dist/cdk", - "ts-node ./scripts/publish.ts --path ./dist/cdk --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" - ], - "parallel": false + "command": "cp ./LICENSE ./dist/{projectName}" } + }, + "publish": { + "executor": "nx:run-commands", + "options": { + "commands": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + }, + "dependsOn": [ + { + "target": "prepublish", + "params": "ignore", + "dependencies": false + } + ] } } } diff --git a/projects/core/project.json b/projects/core/project.json index a48db7bdae69..0d9e2301d29f 100644 --- a/projects/core/project.json +++ b/projects/core/project.json @@ -1,14 +1,14 @@ { "name": "core", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "projects/core", + "sourceRoot": "projects/{projectName}", "projectType": "library", "prefix": "tui", "implicitDependencies": ["!testing"], "targets": { "build": { "executor": "@angular-devkit/build-angular:ng-packagr", - "outputs": ["{workspaceRoot}/dist/core"], + "outputs": ["{workspaceRoot}/dist/{projectName}"], "options": { "tsConfig": "tsconfig.build.json", "project": "{projectRoot}/ng-package.json" @@ -23,23 +23,32 @@ }, "test": { "executor": "@nx/jest:jest", - "outputs": ["{workspaceRoot}/coverage/core"], + "outputs": ["{workspaceRoot}/coverage/{projectName}"], "options": { "jestConfig": "jest.config.ts", - "coverageDirectory": "coverage/core", + "coverageDirectory": "coverage/{projectName}", "collectCoverageFrom": ["/{projectRoot}/**/*.ts"], "testMatch": ["/{projectRoot}/**/*.spec.ts"] } }, - "publish": { + "prepublish": { "executor": "nx:run-commands", "options": { - "commands": [ - "cp ./LICENSE ./dist/core", - "ts-node ./scripts/publish.ts --path ./dist/core --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" - ], - "parallel": false + "command": "cp ./LICENSE ./dist/{projectName}" } + }, + "publish": { + "executor": "nx:run-commands", + "options": { + "commands": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + }, + "dependsOn": [ + { + "target": "prepublish", + "params": "ignore", + "dependencies": false + } + ] } } } diff --git a/projects/demo-cypress/project.json b/projects/demo-cypress/project.json index 46778cb0f4db..1a73c648cb03 100644 --- a/projects/demo-cypress/project.json +++ b/projects/demo-cypress/project.json @@ -1,7 +1,7 @@ { "name": "demo-cypress", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "projects/demo-cypress", + "sourceRoot": "projects/{projectName}", "projectType": "application", "prefix": "app", "implicitDependencies": ["demo"], diff --git a/projects/demo-playwright/project.json b/projects/demo-playwright/project.json index 3d03a90dd05a..8b13c5056078 100644 --- a/projects/demo-playwright/project.json +++ b/projects/demo-playwright/project.json @@ -1,7 +1,7 @@ { "name": "demo-playwright", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "projects/demo-playwright", + "sourceRoot": "projects/{projectName}", "projectType": "application", "prefix": "app", "targets": { @@ -14,7 +14,7 @@ "e2e-ui": { "executor": "nx:run-commands", "options": { - "command": "nx e2e demo-playwright -- --ui --debug" + "command": "nx e2e {projectName} -- --ui --debug" } } } diff --git a/projects/demo/project.json b/projects/demo/project.json index 8218594dfceb..448fa7f2ed7e 100644 --- a/projects/demo/project.json +++ b/projects/demo/project.json @@ -15,7 +15,7 @@ }, "build": { "executor": "@nx/angular:webpack-browser", - "outputs": ["{workspaceRoot}/dist/demo"], + "outputs": ["{workspaceRoot}/dist/{projectName}"], "dependsOn": [ { "target": "i18n", @@ -24,13 +24,13 @@ ], "options": { "customWebpackConfig": { - "path": "projects/demo/webpack.config.ts" + "path": "projects/{projectName}/webpack.config.ts" }, - "outputPath": "dist/demo/browser", + "outputPath": "dist/{projectName}/browser", "index": "{projectRoot}/src/index.html", "main": "{projectRoot}/src/main.ts", "polyfills": "{projectRoot}/src/polyfills.ts", - "tsConfig": "projects/demo/tsconfig.app.json", + "tsConfig": "projects/{projectName}/tsconfig.app.json", "assets": [ "{projectRoot}/src/404.html", { @@ -128,20 +128,20 @@ }, "configurations": { "production": { - "buildTarget": "demo:build:production", + "buildTarget": "{projectName}:build:production", "aot": true }, "ru": { - "buildTarget": "demo:build:ru" + "buildTarget": "{projectName}:build:ru" }, "development": { - "buildTarget": "demo:build:development" + "buildTarget": "{projectName}:build:development" }, "def": { - "buildTarget": "demo:build:def" + "buildTarget": "{projectName}:build:def" }, "shadow": { - "buildTarget": "demo:build:shadow" + "buildTarget": "{projectName}:build:shadow" } }, "defaultConfiguration": "development" @@ -149,7 +149,7 @@ "serve-ssl": { "executor": "nx:run-commands", "options": { - "command": "nx mkcert demo && nx serve demo --ssl --open --host 0.0.0.0 --disable-host-check" + "command": "nx mkcert {projectName} && nx serve {projectName} --ssl --open --host 0.0.0.0 --disable-host-check" } }, "serve-ssr": { @@ -157,12 +157,12 @@ "options": {}, "configurations": { "production": { - "browserTarget": "demo:build:production", - "serverTarget": "demo:server:production" + "browserTarget": "{projectName}:build:production", + "serverTarget": "{projectName}:server:production" }, "development": { - "serverTarget": "demo:server:development", - "browserTarget": "demo:build:development" + "serverTarget": "{projectName}:server:development", + "browserTarget": "{projectName}:build:development" } }, "dependsOn": [ @@ -186,7 +186,7 @@ "customWebpackConfig": { "path": "{projectRoot}/webpack.server.config.ts" }, - "outputPath": "dist/demo/server", + "outputPath": "dist/{projectName}/server", "main": "{projectRoot}/server.ts", "tsConfig": "{projectRoot}/tsconfig.server.json", "sourceMap": true, @@ -210,11 +210,11 @@ }, "prerender": { "executor": "@nguniversal/builders:prerender", - "outputs": ["{workspaceRoot}/dist/demo"], + "outputs": ["{workspaceRoot}/dist/{projectName}"], "options": { - "browserTarget": "demo:build:production", - "serverTarget": "demo:server:production", - "routesFile": "projects/demo/routes.txt", + "browserTarget": "{projectName}:build:production", + "serverTarget": "{projectName}:server:production", + "routesFile": "projects/{projectName}/routes.txt", "guessRoutes": false }, "configurations": { @@ -234,7 +234,7 @@ }, "test": { "executor": "@nx/jest:jest", - "outputs": ["{workspaceRoot}/coverage/demo"], + "outputs": ["{workspaceRoot}/coverage/{projectName}"], "options": { "jestConfig": "jest.config.ts", "collectCoverage": false, diff --git a/projects/experimental/project.json b/projects/experimental/project.json index 62c3890bf987..db397150fb41 100644 --- a/projects/experimental/project.json +++ b/projects/experimental/project.json @@ -1,14 +1,14 @@ { "name": "experimental", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "projects/experimental", + "sourceRoot": "projects/{projectName}", "projectType": "library", "prefix": "tui", "implicitDependencies": ["!testing"], "targets": { "build": { "executor": "@angular-devkit/build-angular:ng-packagr", - "outputs": ["{workspaceRoot}/dist/experimental"], + "outputs": ["{workspaceRoot}/dist/{projectName}"], "options": { "tsConfig": "tsconfig.build.json", "project": "{projectRoot}/ng-package.json" @@ -23,23 +23,32 @@ }, "test": { "executor": "@nx/jest:jest", - "outputs": ["{workspaceRoot}/coverage/experimental"], + "outputs": ["{workspaceRoot}/coverage/{projectName}"], "options": { "jestConfig": "jest.config.ts", - "coverageDirectory": "coverage/core", + "coverageDirectory": "coverage/{projectName}", "collectCoverageFrom": ["/{projectRoot}/**/*.ts"], "testMatch": ["/{projectRoot}/**/*.spec.ts"] } }, - "publish": { + "prepublish": { "executor": "nx:run-commands", "options": { - "commands": [ - "cp ./LICENSE ./dist/experimental", - "ts-node ./scripts/publish.ts --path ./dist/experimental --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" - ], - "parallel": false + "command": "cp ./LICENSE ./dist/{projectName}" } + }, + "publish": { + "executor": "nx:run-commands", + "options": { + "commands": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + }, + "dependsOn": [ + { + "target": "prepublish", + "params": "ignore", + "dependencies": false + } + ] } } } diff --git a/projects/i18n/project.json b/projects/i18n/project.json index 4af310e2b7fd..0ea0b0306f55 100644 --- a/projects/i18n/project.json +++ b/projects/i18n/project.json @@ -1,14 +1,14 @@ { "name": "i18n", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "projects/i18n", + "sourceRoot": "projects/{projectName}", "projectType": "library", "prefix": "tui", "implicitDependencies": ["!testing"], "targets": { "build": { "executor": "@angular-devkit/build-angular:ng-packagr", - "outputs": ["{workspaceRoot}/dist/i18n"], + "outputs": ["{workspaceRoot}/dist/{projectName}"], "options": { "tsConfig": "tsconfig.build.json", "project": "{projectRoot}/ng-package.json" @@ -23,22 +23,31 @@ }, "test": { "executor": "@nx/jest:jest", - "outputs": ["{workspaceRoot}/coverage/i18n"], + "outputs": ["{workspaceRoot}/coverage/{projectName}"], "options": { "jestConfig": "jest.config.ts", "collectCoverage": false, "testMatch": ["/{projectRoot}/**/*.spec.ts"] } }, - "publish": { + "prepublish": { "executor": "nx:run-commands", "options": { - "commands": [ - "cp ./LICENSE ./dist/i18n", - "ts-node ./scripts/publish.ts --path ./dist/i18n --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" - ], - "parallel": false + "command": "cp ./LICENSE ./dist/{projectName}" } + }, + "publish": { + "executor": "nx:run-commands", + "options": { + "commands": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + }, + "dependsOn": [ + { + "target": "prepublish", + "params": "ignore", + "dependencies": false + } + ] } } } diff --git a/projects/icons/project.json b/projects/icons/project.json index f377484d2b96..7ee9c4c66a42 100644 --- a/projects/icons/project.json +++ b/projects/icons/project.json @@ -1,14 +1,14 @@ { "name": "icons", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "projects/icons", + "sourceRoot": "projects/{projectName}", "projectType": "library", "prefix": "tui", "implicitDependencies": ["!testing"], "targets": { "build": { "executor": "@angular-devkit/build-angular:ng-packagr", - "outputs": ["{workspaceRoot}/dist/icons"], + "outputs": ["{workspaceRoot}/dist/{projectName}"], "options": { "tsConfig": "tsconfig.build.json", "project": "{projectRoot}/ng-package.json" @@ -22,22 +22,31 @@ }, "test": { "executor": "@nx/jest:jest", - "outputs": ["{workspaceRoot}/coverage/icons"], + "outputs": ["{workspaceRoot}/coverage/{projectName}"], "options": { "jestConfig": "jest.config.ts", "collectCoverage": false, "testMatch": ["/{projectRoot}/**/*.spec.ts"] } }, - "publish": { + "prepublish": { "executor": "nx:run-commands", "options": { - "commands": [ - "cp ./LICENSE ./dist/icons", - "ts-node ./scripts/publish.ts --path ./dist/icons --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" - ], - "parallel": false + "command": "cp ./LICENSE ./dist/{projectName}" } + }, + "publish": { + "executor": "nx:run-commands", + "options": { + "commands": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + }, + "dependsOn": [ + { + "target": "prepublish", + "params": "ignore", + "dependencies": false + } + ] } } } diff --git a/projects/kit/project.json b/projects/kit/project.json index 16551dbf3f95..b80905db46ac 100644 --- a/projects/kit/project.json +++ b/projects/kit/project.json @@ -1,14 +1,14 @@ { "name": "kit", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "projects/kit", + "sourceRoot": "projects/{projectName}", "projectType": "library", "prefix": "tui", "implicitDependencies": ["!testing"], "targets": { "build": { "executor": "@angular-devkit/build-angular:ng-packagr", - "outputs": ["{workspaceRoot}/dist/kit"], + "outputs": ["{workspaceRoot}/dist/{projectName}"], "options": { "tsConfig": "tsconfig.build.json", "project": "{projectRoot}/ng-package.json" @@ -23,23 +23,32 @@ }, "test": { "executor": "@nx/jest:jest", - "outputs": ["{workspaceRoot}/coverage/kit"], + "outputs": ["{workspaceRoot}/coverage/{projectName}"], "options": { "jestConfig": "jest.config.ts", - "coverageDirectory": "coverage/kit", + "coverageDirectory": "coverage/{projectName}", "collectCoverageFrom": ["/{projectRoot}/**/*.ts"], "testMatch": ["/{projectRoot}/**/*.spec.ts"] } }, - "publish": { + "prepublish": { "executor": "nx:run-commands", "options": { - "commands": [ - "cp ./LICENSE ./dist/icons", - "ts-node ./scripts/publish.ts --path ./dist/kit --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" - ], - "parallel": false + "command": "cp ./LICENSE ./dist/{projectName}" } + }, + "publish": { + "executor": "nx:run-commands", + "options": { + "commands": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + }, + "dependsOn": [ + { + "target": "prepublish", + "params": "ignore", + "dependencies": false + } + ] } } } diff --git a/projects/layout/project.json b/projects/layout/project.json index 2818fb07edb8..3c9fe4c633cf 100644 --- a/projects/layout/project.json +++ b/projects/layout/project.json @@ -1,14 +1,14 @@ { "name": "layout", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "projects/layout", + "sourceRoot": "projects/{projectName}", "projectType": "library", "prefix": "tui", "implicitDependencies": ["!testing"], "targets": { "build": { "executor": "@angular-devkit/build-angular:ng-packagr", - "outputs": ["{workspaceRoot}/dist/layout"], + "outputs": ["{workspaceRoot}/dist/{projectName}"], "options": { "tsConfig": "tsconfig.build.json", "project": "{projectRoot}/ng-package.json" @@ -23,23 +23,32 @@ }, "test": { "executor": "@nx/jest:jest", - "outputs": ["{workspaceRoot}/coverage/layout"], + "outputs": ["{workspaceRoot}/coverage/{projectName}"], "options": { "jestConfig": "jest.config.ts", - "coverageDirectory": "coverage/layout", + "coverageDirectory": "coverage/{projectName}", "collectCoverageFrom": ["/{projectRoot}/**/*.ts"], "testMatch": ["/{projectRoot}/**/*.spec.ts"] } }, - "publish": { + "prepublish": { "executor": "nx:run-commands", "options": { - "commands": [ - "cp ./LICENSE ./dist/layout", - "ts-node ./scripts/publish.ts --path ./dist/layout --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" - ], - "parallel": false + "command": "cp ./LICENSE ./dist/{projectName}" } + }, + "publish": { + "executor": "nx:run-commands", + "options": { + "commands": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + }, + "dependsOn": [ + { + "target": "prepublish", + "params": "ignore", + "dependencies": false + } + ] } } } diff --git a/projects/legacy/project.json b/projects/legacy/project.json index 36919eb3e085..563d2bae68fc 100644 --- a/projects/legacy/project.json +++ b/projects/legacy/project.json @@ -1,7 +1,7 @@ { "name": "legacy", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "projects/legacy", + "sourceRoot": "projects/{projectName}", "projectType": "library", "prefix": "tui", "implicitDependencies": ["!testing"], @@ -22,23 +22,32 @@ }, "test": { "executor": "@nx/jest:jest", - "outputs": ["{workspaceRoot}/coverage/legacy"], + "outputs": ["{workspaceRoot}/coverage/{projectName}"], "options": { "jestConfig": "jest.config.ts", - "coverageDirectory": "coverage/legacy", + "coverageDirectory": "coverage/{projectName}", "collectCoverageFrom": ["/{projectRoot}/**/*.ts"], "testMatch": ["/{projectRoot}/**/*.spec.ts"] } }, - "publish": { + "prepublish": { "executor": "nx:run-commands", "options": { - "commands": [ - "cp ./LICENSE ./dist/legacy", - "ts-node ./scripts/publish.ts --path ./dist/legacy --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" - ], - "parallel": false + "command": "cp ./LICENSE ./dist/{projectName}" } + }, + "publish": { + "executor": "nx:run-commands", + "options": { + "commands": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + }, + "dependsOn": [ + { + "target": "prepublish", + "params": "ignore", + "dependencies": false + } + ] } } } diff --git a/projects/styles/project.json b/projects/styles/project.json index 1507f71d7dcf..f60d4c7d9ad6 100644 --- a/projects/styles/project.json +++ b/projects/styles/project.json @@ -1,27 +1,36 @@ { "name": "styles", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "projects/styles", + "sourceRoot": "projects/{projectName}", "projectType": "library", "prefix": "tui", "implicitDependencies": ["!testing"], "targets": { "build": { "executor": "nx:run-commands", - "outputs": ["{workspaceRoot}/dist/styles"], + "outputs": ["{workspaceRoot}/dist/{projectName}"], "options": { - "command": "cd {projectRoot} && npx cpy ./* '../../dist/styles'" + "command": "cd {projectRoot} && npx cpy ./* '../../dist/{projectName}'" } }, - "publish": { + "prepublish": { "executor": "nx:run-commands", "options": { - "commands": [ - "cp ./LICENSE ./dist/styles", - "ts-node ./scripts/publish.ts --path ./dist/styles --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" - ], - "parallel": false + "command": "cp ./LICENSE ./dist/{projectName}" } + }, + "publish": { + "executor": "nx:run-commands", + "options": { + "commands": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + }, + "dependsOn": [ + { + "target": "prepublish", + "params": "ignore", + "dependencies": false + } + ] } } } diff --git a/projects/taiga-schematics/project.json b/projects/taiga-schematics/project.json index edaf5ba22acb..44fab36701ef 100644 --- a/projects/taiga-schematics/project.json +++ b/projects/taiga-schematics/project.json @@ -1,13 +1,13 @@ { "name": "taiga-schematics", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "projects/taiga-schematics", + "sourceRoot": "projects/{projectName}", "projectType": "library", "implicitDependencies": ["!testing"], "targets": { "build": { "executor": "@angular-devkit/build-angular:ng-packagr", - "outputs": ["{workspaceRoot}/dist/taiga-schematics"], + "outputs": ["{workspaceRoot}/dist/{projectName}"], "options": { "tsConfig": "tsconfig.build.json", "project": "{projectRoot}/ng-package.json" @@ -20,15 +20,24 @@ } ] }, - "publish": { + "prepublish": { "executor": "nx:run-commands", "options": { - "commands": [ - "cp ./LICENSE ./dist/taiga-schematics", - "ts-node ./scripts/publish.ts --path ./dist/taiga-schematics --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" - ], - "parallel": false + "command": "cp ./LICENSE ./dist/{projectName}" } + }, + "publish": { + "executor": "nx:run-commands", + "options": { + "commands": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + }, + "dependsOn": [ + { + "target": "prepublish", + "params": "ignore", + "dependencies": false + } + ] } } } diff --git a/projects/testing/project.json b/projects/testing/project.json index 7b763d54e49c..ce7db74504ef 100644 --- a/projects/testing/project.json +++ b/projects/testing/project.json @@ -1,13 +1,13 @@ { "name": "testing", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "projects/testing", + "sourceRoot": "projects/{projectName}", "projectType": "library", "prefix": "tui", "targets": { "build": { "executor": "@angular-devkit/build-angular:ng-packagr", - "outputs": ["{workspaceRoot}/dist/testing"], + "outputs": ["{workspaceRoot}/dist/{projectName}"], "options": { "tsConfig": "{projectRoot}/tsconfig.build.json", "project": "{projectRoot}/ng-package.json" @@ -22,22 +22,31 @@ }, "test": { "executor": "@nx/jest:jest", - "outputs": ["{workspaceRoot}/coverage/testing"], + "outputs": ["{workspaceRoot}/coverage/{projectName}"], "options": { "jestConfig": "jest.config.ts", "collectCoverage": false, "testMatch": ["/{projectRoot}/**/*.spec.ts"] } }, - "publish": { + "prepublish": { "executor": "nx:run-commands", "options": { - "commands": [ - "cp ./LICENSE ./dist/testing", - "ts-node ./scripts/publish.ts --path ./dist/testing --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" - ], - "parallel": false + "command": "cp ./LICENSE ./dist/{projectName}" } + }, + "publish": { + "executor": "nx:run-commands", + "options": { + "commands": "ts-node ./scripts/publish.ts --path ./dist/{projectName} --dry-run {args.dry-run} --customVersion {args.customVersion} --customTag {args.customTag}" + }, + "dependsOn": [ + { + "target": "prepublish", + "params": "ignore", + "dependencies": false + } + ] } } }