Skip to content

Commit 1b3b0f8

Browse files
committed
chore: 🤖 migrate to project configuration
1 parent fcd7627 commit 1b3b0f8

File tree

15 files changed

+614
-603
lines changed

15 files changed

+614
-603
lines changed

angular.json

Lines changed: 14 additions & 602 deletions
Large diffs are not rendered by default.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"root": "apps/transloco-playground-e2e",
3+
"sourceRoot": "apps/transloco-playground-e2e/src",
4+
"projectType": "application",
5+
"targets": {
6+
"e2e": {
7+
"executor": "@nrwl/cypress:cypress",
8+
"options": {
9+
"cypressConfig": "apps/transloco-playground-e2e/cypress.json",
10+
"tsConfig": "apps/transloco-playground-e2e/tsconfig.e2e.json",
11+
"devServerTarget": "transloco-playground:serve:development",
12+
"watch": true
13+
},
14+
"configurations": {
15+
"ci": {
16+
"watch": false,
17+
"devServerTarget": "transloco-playground:serve:production"
18+
}
19+
}
20+
},
21+
"lint": {
22+
"executor": "@nrwl/linter:eslint",
23+
"options": {
24+
"lintFilePatterns": ["apps/transloco-playground-e2e/**/*.{js,ts}"]
25+
},
26+
"outputs": ["{options.outputFile}"]
27+
}
28+
},
29+
"tags": [],
30+
"implicitDependencies": ["transloco-playground"]
31+
}
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
{
2+
"projectType": "application",
3+
"root": "apps/transloco-playground",
4+
"sourceRoot": "apps/transloco-playground/src",
5+
"prefix": "transloco-nx-shell",
6+
"targets": {
7+
"build": {
8+
"executor": "@angular-devkit/build-angular:browser",
9+
"outputs": ["{options.outputPath}"],
10+
"options": {
11+
"outputPath": "dist/apps/transloco-playground",
12+
"index": "apps/transloco-playground/src/index.html",
13+
"main": "apps/transloco-playground/src/main.ts",
14+
"polyfills": "apps/transloco-playground/src/polyfills.ts",
15+
"tsConfig": "apps/transloco-playground/tsconfig.app.json",
16+
"inlineStyleLanguage": "scss",
17+
"assets": [
18+
"apps/transloco-playground/src/favicon.ico",
19+
"apps/transloco-playground/src/assets"
20+
],
21+
"styles": [
22+
"apps/transloco-playground/src/styles.scss",
23+
"node_modules/bootstrap/dist/css/bootstrap.min.css"
24+
],
25+
"scripts": ["node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"]
26+
},
27+
"configurations": {
28+
"production": {
29+
"budgets": [
30+
{
31+
"type": "initial",
32+
"maximumWarning": "500kb",
33+
"maximumError": "1mb"
34+
},
35+
{
36+
"type": "anyComponentStyle",
37+
"maximumWarning": "2kb",
38+
"maximumError": "4kb"
39+
}
40+
],
41+
"fileReplacements": [
42+
{
43+
"replace": "apps/transloco-playground/src/environments/environment.ts",
44+
"with": "apps/transloco-playground/src/environments/environment.prod.ts"
45+
}
46+
],
47+
"outputHashing": "all"
48+
},
49+
"development": {
50+
"buildOptimizer": false,
51+
"optimization": false,
52+
"vendorChunk": true,
53+
"extractLicenses": false,
54+
"sourceMap": true,
55+
"namedChunks": true
56+
}
57+
},
58+
"defaultConfiguration": "production"
59+
},
60+
"serve": {
61+
"executor": "@angular-devkit/build-angular:dev-server",
62+
"configurations": {
63+
"production": {
64+
"browserTarget": "transloco-playground:build:production"
65+
},
66+
"development": {
67+
"browserTarget": "transloco-playground:build:development"
68+
}
69+
},
70+
"defaultConfiguration": "development"
71+
},
72+
"extract-i18n": {
73+
"executor": "@angular-devkit/build-angular:extract-i18n",
74+
"options": {
75+
"browserTarget": "transloco-playground:build"
76+
}
77+
},
78+
"lint": {
79+
"executor": "@nrwl/linter:eslint",
80+
"options": {
81+
"lintFilePatterns": [
82+
"apps/transloco-playground/src/**/*.ts",
83+
"apps/transloco-playground/src/**/*.html"
84+
]
85+
},
86+
"outputs": ["{options.outputFile}"]
87+
},
88+
"test": {
89+
"executor": "@angular-devkit/build-angular:karma",
90+
"options": {
91+
"main": "apps/transloco-playground/src/test-setup.ts",
92+
"tsConfig": "apps/transloco-playground/tsconfig.spec.json",
93+
"karmaConfig": "apps/transloco-playground/karma.conf.js"
94+
}
95+
}
96+
},
97+
"tags": []
98+
}

libs/transloco-locale/project.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"projectType": "library",
3+
"root": "libs/transloco-locale",
4+
"sourceRoot": "libs/transloco-locale/src",
5+
"prefix": "transloco-nx-shell",
6+
"targets": {
7+
"build": {
8+
"executor": "@nrwl/angular:package",
9+
"outputs": ["dist/libs/transloco-locale"],
10+
"options": {
11+
"updateBuildableProjectDepsInPackageJson": false,
12+
"project": "libs/transloco-locale/ng-package.json"
13+
},
14+
"configurations": {
15+
"production": {
16+
"tsConfig": "libs/transloco-locale/tsconfig.lib.prod.json"
17+
},
18+
"development": {
19+
"tsConfig": "libs/transloco-locale/tsconfig.lib.json"
20+
}
21+
},
22+
"defaultConfiguration": "production"
23+
},
24+
"test": {
25+
"executor": "@angular-devkit/build-angular:karma",
26+
"options": {
27+
"main": "libs/transloco-locale/src/test-setup.ts",
28+
"tsConfig": "libs/transloco-locale/tsconfig.spec.json",
29+
"karmaConfig": "libs/transloco-locale/karma.conf.js"
30+
}
31+
},
32+
"lint": {
33+
"executor": "@nrwl/linter:eslint",
34+
"options": {
35+
"lintFilePatterns": [
36+
"libs/transloco-locale/src/**/*.ts",
37+
"libs/transloco-locale/src/**/*.html"
38+
]
39+
},
40+
"outputs": ["{options.outputFile}"]
41+
},
42+
"version": {
43+
"executor": "@jscutlery/semver:version"
44+
}
45+
},
46+
"tags": []
47+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"projectType": "library",
3+
"root": "libs/transloco-messageformat",
4+
"sourceRoot": "libs/transloco-messageformat/src",
5+
"prefix": "transloco-nx-shell",
6+
"targets": {
7+
"build": {
8+
"executor": "@nrwl/angular:package",
9+
"outputs": ["dist/libs/transloco-messageformat"],
10+
"options": {
11+
"updateBuildableProjectDepsInPackageJson": false,
12+
"project": "libs/transloco-messageformat/ng-package.json"
13+
},
14+
"configurations": {
15+
"production": {
16+
"tsConfig": "libs/transloco-messageformat/tsconfig.lib.prod.json"
17+
},
18+
"development": {
19+
"tsConfig": "libs/transloco-messageformat/tsconfig.lib.json"
20+
}
21+
},
22+
"defaultConfiguration": "production"
23+
},
24+
"test": {
25+
"executor": "@angular-devkit/build-angular:karma",
26+
"options": {
27+
"main": "libs/transloco-messageformat/src/test-setup.ts",
28+
"tsConfig": "libs/transloco-messageformat/tsconfig.spec.json",
29+
"karmaConfig": "libs/transloco-messageformat/karma.conf.js"
30+
}
31+
},
32+
"lint": {
33+
"executor": "@nrwl/linter:eslint",
34+
"options": {
35+
"lintFilePatterns": [
36+
"libs/transloco-messageformat/src/**/*.ts",
37+
"libs/transloco-messageformat/src/**/*.html"
38+
]
39+
},
40+
"outputs": ["{options.outputFile}"]
41+
},
42+
"version": {
43+
"executor": "@jscutlery/semver:version"
44+
}
45+
},
46+
"tags": []
47+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"root": "libs/transloco-optimize",
3+
"sourceRoot": "libs/transloco-optimize/src",
4+
"projectType": "library",
5+
"targets": {
6+
"build": {
7+
"executor": "@nrwl/workspace:tsc",
8+
"outputs": ["{options.outputPath}"],
9+
"options": {
10+
"outputPath": "dist/libs/transloco-optimize",
11+
"main": "libs/transloco-optimize/src/index.ts",
12+
"tsConfig": "libs/transloco-optimize/tsconfig.lib.json",
13+
"assets": ["libs/transloco-optimize/*.md"]
14+
}
15+
},
16+
"lint": {
17+
"executor": "@nrwl/linter:eslint",
18+
"options": {
19+
"lintFilePatterns": ["libs/transloco-optimize/**/*.ts"]
20+
},
21+
"outputs": ["{options.outputFile}"]
22+
},
23+
"test": {
24+
"executor": "@angular-devkit/build-angular:karma",
25+
"options": {
26+
"main": "libs/transloco-optimize/src/test-setup.ts",
27+
"tsConfig": "libs/transloco-optimize/tsconfig.spec.json",
28+
"karmaConfig": "libs/transloco-optimize/karma.conf.js"
29+
}
30+
},
31+
"version": {
32+
"executor": "@jscutlery/semver:version"
33+
}
34+
},
35+
"tags": []
36+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"projectType": "library",
3+
"root": "libs/transloco-persist-lang",
4+
"sourceRoot": "libs/transloco-persist-lang/src",
5+
"prefix": "transloco-nx-shell",
6+
"targets": {
7+
"build": {
8+
"executor": "@nrwl/angular:package",
9+
"outputs": ["dist/libs/transloco-persist-lang"],
10+
"options": {
11+
"updateBuildableProjectDepsInPackageJson": false,
12+
"project": "libs/transloco-persist-lang/ng-package.json"
13+
},
14+
"configurations": {
15+
"production": {
16+
"tsConfig": "libs/transloco-persist-lang/tsconfig.lib.prod.json"
17+
},
18+
"development": {
19+
"tsConfig": "libs/transloco-persist-lang/tsconfig.lib.json"
20+
}
21+
},
22+
"defaultConfiguration": "production"
23+
},
24+
"test": {
25+
"executor": "@angular-devkit/build-angular:karma",
26+
"options": {
27+
"main": "libs/transloco-persist-lang/src/test-setup.ts",
28+
"tsConfig": "libs/transloco-persist-lang/tsconfig.spec.json",
29+
"karmaConfig": "libs/transloco-persist-lang/karma.conf.js"
30+
}
31+
},
32+
"lint": {
33+
"executor": "@nrwl/linter:eslint",
34+
"options": {
35+
"lintFilePatterns": [
36+
"libs/transloco-persist-lang/src/**/*.ts",
37+
"libs/transloco-persist-lang/src/**/*.html"
38+
]
39+
},
40+
"outputs": ["{options.outputFile}"]
41+
},
42+
"version": {
43+
"executor": "@jscutlery/semver:version"
44+
}
45+
},
46+
"tags": []
47+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"projectType": "library",
3+
"root": "libs/transloco-persist-translations",
4+
"sourceRoot": "libs/transloco-persist-translations/src",
5+
"prefix": "transloco-nx-shell",
6+
"targets": {
7+
"build": {
8+
"executor": "@nrwl/angular:package",
9+
"outputs": ["dist/libs/transloco-persist-translations"],
10+
"options": {
11+
"updateBuildableProjectDepsInPackageJson": false,
12+
"project": "libs/transloco-persist-translations/ng-package.json"
13+
},
14+
"configurations": {
15+
"production": {
16+
"tsConfig": "libs/transloco-persist-translations/tsconfig.lib.prod.json"
17+
},
18+
"development": {
19+
"tsConfig": "libs/transloco-persist-translations/tsconfig.lib.json"
20+
}
21+
},
22+
"defaultConfiguration": "production"
23+
},
24+
"test": {
25+
"executor": "@angular-devkit/build-angular:karma",
26+
"options": {
27+
"main": "libs/transloco-persist-translations/src/test-setup.ts",
28+
"tsConfig": "libs/transloco-persist-translations/tsconfig.spec.json",
29+
"karmaConfig": "libs/transloco-persist-translations/karma.conf.js"
30+
}
31+
},
32+
"lint": {
33+
"executor": "@nrwl/linter:eslint",
34+
"options": {
35+
"lintFilePatterns": [
36+
"libs/transloco-persist-translations/src/**/*.ts",
37+
"libs/transloco-persist-translations/src/**/*.html"
38+
]
39+
},
40+
"outputs": ["{options.outputFile}"]
41+
},
42+
"version": {
43+
"executor": "@jscutlery/semver:version"
44+
}
45+
},
46+
"tags": []
47+
}

0 commit comments

Comments
 (0)