Skip to content

Commit

Permalink
chore: 🤖 migrate to project configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
shaharkazaz committed Nov 19, 2021
1 parent fcd7627 commit 1b3b0f8
Show file tree
Hide file tree
Showing 15 changed files with 614 additions and 603 deletions.
616 changes: 14 additions & 602 deletions angular.json

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions apps/transloco-playground-e2e/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"root": "apps/transloco-playground-e2e",
"sourceRoot": "apps/transloco-playground-e2e/src",
"projectType": "application",
"targets": {
"e2e": {
"executor": "@nrwl/cypress:cypress",
"options": {
"cypressConfig": "apps/transloco-playground-e2e/cypress.json",
"tsConfig": "apps/transloco-playground-e2e/tsconfig.e2e.json",
"devServerTarget": "transloco-playground:serve:development",
"watch": true
},
"configurations": {
"ci": {
"watch": false,
"devServerTarget": "transloco-playground:serve:production"
}
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"options": {
"lintFilePatterns": ["apps/transloco-playground-e2e/**/*.{js,ts}"]
},
"outputs": ["{options.outputFile}"]
}
},
"tags": [],
"implicitDependencies": ["transloco-playground"]
}
98 changes: 98 additions & 0 deletions apps/transloco-playground/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"projectType": "application",
"root": "apps/transloco-playground",
"sourceRoot": "apps/transloco-playground/src",
"prefix": "transloco-nx-shell",
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:browser",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/apps/transloco-playground",
"index": "apps/transloco-playground/src/index.html",
"main": "apps/transloco-playground/src/main.ts",
"polyfills": "apps/transloco-playground/src/polyfills.ts",
"tsConfig": "apps/transloco-playground/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
"apps/transloco-playground/src/favicon.ico",
"apps/transloco-playground/src/assets"
],
"styles": [
"apps/transloco-playground/src/styles.scss",
"node_modules/bootstrap/dist/css/bootstrap.min.css"
],
"scripts": ["node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"]
},
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
}
],
"fileReplacements": [
{
"replace": "apps/transloco-playground/src/environments/environment.ts",
"with": "apps/transloco-playground/src/environments/environment.prod.ts"
}
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
}
},
"defaultConfiguration": "production"
},
"serve": {
"executor": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "transloco-playground:build:production"
},
"development": {
"browserTarget": "transloco-playground:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"executor": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "transloco-playground:build"
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"options": {
"lintFilePatterns": [
"apps/transloco-playground/src/**/*.ts",
"apps/transloco-playground/src/**/*.html"
]
},
"outputs": ["{options.outputFile}"]
},
"test": {
"executor": "@angular-devkit/build-angular:karma",
"options": {
"main": "apps/transloco-playground/src/test-setup.ts",
"tsConfig": "apps/transloco-playground/tsconfig.spec.json",
"karmaConfig": "apps/transloco-playground/karma.conf.js"
}
}
},
"tags": []
}
47 changes: 47 additions & 0 deletions libs/transloco-locale/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"projectType": "library",
"root": "libs/transloco-locale",
"sourceRoot": "libs/transloco-locale/src",
"prefix": "transloco-nx-shell",
"targets": {
"build": {
"executor": "@nrwl/angular:package",
"outputs": ["dist/libs/transloco-locale"],
"options": {
"updateBuildableProjectDepsInPackageJson": false,
"project": "libs/transloco-locale/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "libs/transloco-locale/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "libs/transloco-locale/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"test": {
"executor": "@angular-devkit/build-angular:karma",
"options": {
"main": "libs/transloco-locale/src/test-setup.ts",
"tsConfig": "libs/transloco-locale/tsconfig.spec.json",
"karmaConfig": "libs/transloco-locale/karma.conf.js"
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"options": {
"lintFilePatterns": [
"libs/transloco-locale/src/**/*.ts",
"libs/transloco-locale/src/**/*.html"
]
},
"outputs": ["{options.outputFile}"]
},
"version": {
"executor": "@jscutlery/semver:version"
}
},
"tags": []
}
47 changes: 47 additions & 0 deletions libs/transloco-messageformat/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"projectType": "library",
"root": "libs/transloco-messageformat",
"sourceRoot": "libs/transloco-messageformat/src",
"prefix": "transloco-nx-shell",
"targets": {
"build": {
"executor": "@nrwl/angular:package",
"outputs": ["dist/libs/transloco-messageformat"],
"options": {
"updateBuildableProjectDepsInPackageJson": false,
"project": "libs/transloco-messageformat/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "libs/transloco-messageformat/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "libs/transloco-messageformat/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"test": {
"executor": "@angular-devkit/build-angular:karma",
"options": {
"main": "libs/transloco-messageformat/src/test-setup.ts",
"tsConfig": "libs/transloco-messageformat/tsconfig.spec.json",
"karmaConfig": "libs/transloco-messageformat/karma.conf.js"
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"options": {
"lintFilePatterns": [
"libs/transloco-messageformat/src/**/*.ts",
"libs/transloco-messageformat/src/**/*.html"
]
},
"outputs": ["{options.outputFile}"]
},
"version": {
"executor": "@jscutlery/semver:version"
}
},
"tags": []
}
36 changes: 36 additions & 0 deletions libs/transloco-optimize/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"root": "libs/transloco-optimize",
"sourceRoot": "libs/transloco-optimize/src",
"projectType": "library",
"targets": {
"build": {
"executor": "@nrwl/workspace:tsc",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/libs/transloco-optimize",
"main": "libs/transloco-optimize/src/index.ts",
"tsConfig": "libs/transloco-optimize/tsconfig.lib.json",
"assets": ["libs/transloco-optimize/*.md"]
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"options": {
"lintFilePatterns": ["libs/transloco-optimize/**/*.ts"]
},
"outputs": ["{options.outputFile}"]
},
"test": {
"executor": "@angular-devkit/build-angular:karma",
"options": {
"main": "libs/transloco-optimize/src/test-setup.ts",
"tsConfig": "libs/transloco-optimize/tsconfig.spec.json",
"karmaConfig": "libs/transloco-optimize/karma.conf.js"
}
},
"version": {
"executor": "@jscutlery/semver:version"
}
},
"tags": []
}
47 changes: 47 additions & 0 deletions libs/transloco-persist-lang/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"projectType": "library",
"root": "libs/transloco-persist-lang",
"sourceRoot": "libs/transloco-persist-lang/src",
"prefix": "transloco-nx-shell",
"targets": {
"build": {
"executor": "@nrwl/angular:package",
"outputs": ["dist/libs/transloco-persist-lang"],
"options": {
"updateBuildableProjectDepsInPackageJson": false,
"project": "libs/transloco-persist-lang/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "libs/transloco-persist-lang/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "libs/transloco-persist-lang/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"test": {
"executor": "@angular-devkit/build-angular:karma",
"options": {
"main": "libs/transloco-persist-lang/src/test-setup.ts",
"tsConfig": "libs/transloco-persist-lang/tsconfig.spec.json",
"karmaConfig": "libs/transloco-persist-lang/karma.conf.js"
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"options": {
"lintFilePatterns": [
"libs/transloco-persist-lang/src/**/*.ts",
"libs/transloco-persist-lang/src/**/*.html"
]
},
"outputs": ["{options.outputFile}"]
},
"version": {
"executor": "@jscutlery/semver:version"
}
},
"tags": []
}
47 changes: 47 additions & 0 deletions libs/transloco-persist-translations/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"projectType": "library",
"root": "libs/transloco-persist-translations",
"sourceRoot": "libs/transloco-persist-translations/src",
"prefix": "transloco-nx-shell",
"targets": {
"build": {
"executor": "@nrwl/angular:package",
"outputs": ["dist/libs/transloco-persist-translations"],
"options": {
"updateBuildableProjectDepsInPackageJson": false,
"project": "libs/transloco-persist-translations/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "libs/transloco-persist-translations/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "libs/transloco-persist-translations/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"test": {
"executor": "@angular-devkit/build-angular:karma",
"options": {
"main": "libs/transloco-persist-translations/src/test-setup.ts",
"tsConfig": "libs/transloco-persist-translations/tsconfig.spec.json",
"karmaConfig": "libs/transloco-persist-translations/karma.conf.js"
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"options": {
"lintFilePatterns": [
"libs/transloco-persist-translations/src/**/*.ts",
"libs/transloco-persist-translations/src/**/*.html"
]
},
"outputs": ["{options.outputFile}"]
},
"version": {
"executor": "@jscutlery/semver:version"
}
},
"tags": []
}
Loading

0 comments on commit 1b3b0f8

Please sign in to comment.