X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=angular.json;h=1a6d042024a3f93a0a2e222fa217a2325b1f3593;hb=382448fed3f9d4d4cf9ac614e1275208d18b752f;hp=5420910fa26af1be28f2b7125c87cb401e5edc88;hpb=3b4814aa2d3dec621dadb52f058ba95a3dc3a86a;p=osm%2FNG-UI.git diff --git a/angular.json b/angular.json index 5420910..1a6d042 100644 --- a/angular.json +++ b/angular.json @@ -10,7 +10,7 @@ "prefix": "app", "schematics": { "@schematics/angular:component": { - "styleext": "scss" + "style": "scss" } }, "architect": { @@ -22,6 +22,20 @@ "main": "src/main.ts", "polyfills": "src/polyfills.ts", "tsConfig": "src/tsconfig.app.json", + "allowedCommonJsDependencies": [ + "chart.js", + "ng-sidebar", + "@ctrl/ngx-codemirror", + "rbush", + "lodash", + "jsonpath", + "codemirror", + "pako", + "js-untar", + "util", + "http-status-codes", + "js-yaml" + ], "assets": [ "src/favicon.ico", "src/assets" @@ -34,7 +48,11 @@ "scripts": [ "src/assets/js/tar.js" ], - "es5BrowserSupport": true + "stylePreprocessorOptions": { + "includePaths": [ + "node_modules/" + ] + } }, "configurations": { "production": { @@ -47,7 +65,6 @@ "optimization": true, "outputHashing": "all", "sourceMap": false, - "extractCss": true, "namedChunks": false, "aot": true, "extractLicenses": true, @@ -60,8 +77,17 @@ "maximumError": "5mb" } ] + }, + "development": { + "buildOptimizer": false, + "optimization": false, + "vendorChunk": true, + "extractLicenses": false, + "sourceMap": true, + "namedChunks": true } - } + }, + "defaultConfiguration": "production" }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", @@ -71,8 +97,12 @@ "configurations": { "production": { "browserTarget": "osm:build:production" + }, + "development": { + "browserTarget": "osm:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", @@ -98,15 +128,26 @@ ] } }, + "e2e": { + "builder": "@cypress/schematic:cypress", + "options": { + "devServerTarget": "osm:serve", + "watch": true, + "headless": false, + "configFile": "e2e//cypress.config.js" + }, + "configurations": { + "production": { + "devServerTarget": "osm:serve:production" + } + } + }, "lint": { - "builder": "@angular-devkit/build-angular:tslint", + "builder": "@angular-eslint/builder:lint", "options": { - "tsConfig": [ - "src/tsconfig.app.json", - "src/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" + "lintFilePatterns": [ + "src/**/*.ts", + "src/**/*.html" ] } } @@ -118,28 +159,26 @@ "prefix": "", "architect": { "e2e": { - "builder": "@angular-devkit/build-angular:protractor", + "builder": "@cypress/schematic:cypress", "options": { - "protractorConfig": "e2e/protractor.conf.js", - "devServerTarget": "osm:serve" + "devServerTarget": "osm-e2e:serve", + "watch": true, + "headless": false, + "configFile": "e2e//cypress.config.js" }, "configurations": { "production": { - "devServerTarget": "osm:serve:production" + "devServerTarget": "osm-e2e:serve:production" } } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": "e2e/tsconfig.e2e.json", - "exclude": [ - "**/node_modules/**" - ] - } } } } }, - "defaultProject": "osm" + "cli": { + "schematicCollections": [ + "@angular-eslint/schematics" + ], + "analytics": "bc7a21d3-c008-4362-b213-866be7e71063" + } } \ No newline at end of file