-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #276 from geonetwork/upgrade-ng-14
Migrate to nx 14 and angular 14
- Loading branch information
Showing
149 changed files
with
22,264 additions
and
34,862 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"sourceRoot": "apps/datafeeder-e2e/src", | ||
"projectType": "application", | ||
"targets": { | ||
"e2e": { | ||
"executor": "@nrwl/cypress:cypress", | ||
"options": { | ||
"cypressConfig": "apps/datafeeder-e2e/cypress.json", | ||
"tsConfig": "apps/datafeeder-e2e/tsconfig.e2e.json", | ||
"devServerTarget": "datafeeder:serve:development" | ||
}, | ||
"configurations": { | ||
"production": { | ||
"devServerTarget": "datafeeder:serve:production" | ||
} | ||
} | ||
}, | ||
"lint": { | ||
"executor": "@nrwl/linter:eslint", | ||
"options": { | ||
"lintFilePatterns": ["apps/datafeeder-e2e/**/*.{js,ts}"] | ||
}, | ||
"outputs": ["{options.outputFile}"] | ||
} | ||
}, | ||
"tags": [], | ||
"implicitDependencies": ["datafeeder"] | ||
} |
3 changes: 2 additions & 1 deletion
3
apps/datafeeder/jest.config.js → apps/datafeeder/jest.config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
{ | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"projectType": "application", | ||
"sourceRoot": "apps/datafeeder/src", | ||
"prefix": "gn-ui", | ||
"targets": { | ||
"build": { | ||
"executor": "@angular-devkit/build-angular:browser", | ||
"outputs": ["{options.outputPath}"], | ||
"options": { | ||
"outputPath": "dist/apps/datafeeder", | ||
"index": "apps/datafeeder/src/index.html", | ||
"main": "apps/datafeeder/src/main.ts", | ||
"polyfills": "apps/datafeeder/src/polyfills.ts", | ||
"tsConfig": "apps/datafeeder/tsconfig.app.json", | ||
"aot": true, | ||
"assets": [ | ||
"apps/datafeeder/src/favicon.ico", | ||
"apps/datafeeder/src/assets", | ||
{ | ||
"glob": "*", | ||
"input": "translations", | ||
"output": "assets/i18n/" | ||
} | ||
], | ||
"styles": [ | ||
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css", | ||
"apps/datafeeder/src/styles.css" | ||
], | ||
"scripts": [] | ||
}, | ||
"configurations": { | ||
"production": { | ||
"budgets": [ | ||
{ | ||
"type": "initial", | ||
"maximumWarning": "1mb", | ||
"maximumError": "8mb" | ||
}, | ||
{ | ||
"type": "anyComponentStyle", | ||
"maximumWarning": "2kb", | ||
"maximumError": "4kb" | ||
} | ||
], | ||
"fileReplacements": [ | ||
{ | ||
"replace": "apps/datafeeder/src/environments/environment.ts", | ||
"with": "apps/datafeeder/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": "datafeeder:build:production" | ||
}, | ||
"development": { | ||
"browserTarget": "datafeeder:build:development", | ||
"proxyConfig": "proxy-config.js" | ||
} | ||
}, | ||
"defaultConfiguration": "development" | ||
}, | ||
"extract-i18n": { | ||
"executor": "@angular-devkit/build-angular:extract-i18n", | ||
"options": { | ||
"browserTarget": "datafeeder:build" | ||
} | ||
}, | ||
"lint": { | ||
"executor": "@nrwl/linter:eslint", | ||
"options": { | ||
"lintFilePatterns": [ | ||
"apps/datafeeder/src/**/*.ts", | ||
"apps/datafeeder/src/**/*.html" | ||
] | ||
}, | ||
"outputs": ["{options.outputFile}"] | ||
}, | ||
"test": { | ||
"executor": "@nrwl/jest:jest", | ||
"outputs": ["coverage/apps/datafeeder"], | ||
"options": { | ||
"jestConfig": "apps/datafeeder/jest.config.ts", | ||
"passWithNoTests": true | ||
} | ||
} | ||
}, | ||
"tags": ["type:app"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,6 @@ | |
"include": ["**/*.ts"], | ||
"compilerOptions": { | ||
"types": ["jest", "node"] | ||
} | ||
}, | ||
"exclude": ["jest.config.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"sourceRoot": "apps/datahub-e2e/src", | ||
"projectType": "application", | ||
"targets": { | ||
"e2e": { | ||
"executor": "@nrwl/cypress:cypress", | ||
"options": { | ||
"cypressConfig": "apps/datahub-e2e/cypress.json", | ||
"tsConfig": "apps/datahub-e2e/tsconfig.e2e.json", | ||
"devServerTarget": "datahub:serve:development" | ||
}, | ||
"configurations": { | ||
"production": { | ||
"devServerTarget": "datahub:serve:production" | ||
} | ||
} | ||
}, | ||
"lint": { | ||
"executor": "@nrwl/linter:eslint", | ||
"options": { | ||
"lintFilePatterns": ["apps/datahub-e2e/**/*.{js,ts}"] | ||
}, | ||
"outputs": ["{options.outputFile}"] | ||
} | ||
}, | ||
"tags": [], | ||
"implicitDependencies": ["datahub"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
{ | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"projectType": "application", | ||
"sourceRoot": "apps/datahub/src", | ||
"prefix": "datahub", | ||
"targets": { | ||
"build": { | ||
"executor": "@angular-devkit/build-angular:browser", | ||
"outputs": ["{options.outputPath}"], | ||
"options": { | ||
"outputPath": "dist/apps/datahub", | ||
"index": "apps/datahub/src/index.html", | ||
"main": "apps/datahub/src/main.ts", | ||
"polyfills": "apps/datahub/src/polyfills.ts", | ||
"tsConfig": "apps/datahub/tsconfig.app.json", | ||
"assets": [ | ||
"apps/datahub/src/favicon.ico", | ||
"apps/datahub/src/assets", | ||
{ | ||
"glob": "*", | ||
"input": "translations", | ||
"output": "assets/i18n/" | ||
}, | ||
{ | ||
"glob": "*", | ||
"input": "conf", | ||
"output": "assets/configuration/" | ||
} | ||
], | ||
"styles": [ | ||
"apps/datahub/src/styles.css", | ||
"node_modules/ol/ol.css", | ||
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css" | ||
], | ||
"scripts": [] | ||
}, | ||
"configurations": { | ||
"production": { | ||
"budgets": [ | ||
{ | ||
"type": "initial", | ||
"maximumWarning": "2mb", | ||
"maximumError": "5mb" | ||
}, | ||
{ | ||
"type": "anyComponentStyle", | ||
"maximumWarning": "10kb", | ||
"maximumError": "20kb" | ||
} | ||
], | ||
"fileReplacements": [ | ||
{ | ||
"replace": "apps/datahub/src/environments/environment.ts", | ||
"with": "apps/datahub/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": "datahub:build:production" | ||
}, | ||
"development": { | ||
"browserTarget": "datahub:build:development", | ||
"proxyConfig": "proxy-config.js" | ||
} | ||
}, | ||
"defaultConfiguration": "development" | ||
}, | ||
"extract-i18n": { | ||
"executor": "@angular-devkit/build-angular:extract-i18n", | ||
"options": { | ||
"browserTarget": "datahub:build" | ||
} | ||
}, | ||
"lint": { | ||
"executor": "@nrwl/linter:eslint", | ||
"options": { | ||
"lintFilePatterns": [ | ||
"apps/datahub/src/**/*.ts", | ||
"apps/datahub/src/**/*.html" | ||
] | ||
}, | ||
"outputs": ["{options.outputFile}"] | ||
}, | ||
"test": { | ||
"executor": "@nrwl/jest:jest", | ||
"outputs": ["coverage/apps/datahub"], | ||
"options": { | ||
"jestConfig": "apps/datahub/jest.config.ts", | ||
"passWithNoTests": true | ||
} | ||
}, | ||
"docker-build": { | ||
"executor": "@nrwl/workspace:run-commands", | ||
"options": { | ||
"commands": [ | ||
{ | ||
"command": "nx build datahub --base-href='/datahub/'", | ||
"forwardAllArgs": false | ||
}, | ||
"docker build --build-arg APP_NAME=datahub -f ./tools/docker/Dockerfile.apps . -t {args.tag}" | ||
], | ||
"parallel": false | ||
} | ||
} | ||
}, | ||
"tags": ["type:app"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,6 @@ | |
"include": ["**/*.ts"], | ||
"compilerOptions": { | ||
"types": ["jest", "node"] | ||
} | ||
}, | ||
"exclude": ["jest.config.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"sourceRoot": "apps/demo-e2e/src", | ||
"projectType": "application", | ||
"targets": { | ||
"e2e": { | ||
"executor": "@nrwl/cypress:cypress", | ||
"options": { | ||
"cypressConfig": "apps/demo-e2e/cypress.json", | ||
"tsConfig": "apps/demo-e2e/tsconfig.e2e.json", | ||
"devServerTarget": "demo:serve:development" | ||
}, | ||
"configurations": { | ||
"production": { | ||
"devServerTarget": "demo:serve:production" | ||
} | ||
} | ||
}, | ||
"lint": { | ||
"executor": "@nrwl/linter:eslint", | ||
"options": { | ||
"lintFilePatterns": ["apps/demo-e2e/**/*.{js,ts}"] | ||
}, | ||
"outputs": ["{options.outputFile}"] | ||
} | ||
}, | ||
"tags": [], | ||
"implicitDependencies": ["demo"] | ||
} |
Oops, something went wrong.