diff options
| author | Fuwn <[email protected]> | 2020-12-14 23:21:39 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2020-12-14 23:21:39 -0800 |
| commit | 823344c19094680e80e2b56449a243e183db8b06 (patch) | |
| tree | 92277700547ea671331828caa258ace7aaaa46d5 /angular.json | |
| parent | repo: angular (diff) | |
| download | me-823344c19094680e80e2b56449a243e183db8b06.tar.xz me-823344c19094680e80e2b56449a243e183db8b06.zip | |
:star:
Diffstat (limited to 'angular.json')
| -rw-r--r-- | angular.json | 69 |
1 files changed, 43 insertions, 26 deletions
diff --git a/angular.json b/angular.json index 7d8ccdf..176bfca 100644 --- a/angular.json +++ b/angular.json @@ -1,7 +1,7 @@ { "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "version": 1, - "newProjectRoot": "projects", + "newProjectRoot": "", "projects": { "me": { "projectType": "application", @@ -10,34 +10,37 @@ "style": "scss" } }, - "root": "", - "sourceRoot": "src", + "root": "apps/me", + "sourceRoot": "apps/me/src", "prefix": "app", "architect": { "build": { "builder": "@angular-devkit/build-angular:browser", "options": { - "outputPath": "dist/me", - "index": "src/index.html", - "main": "src/main.ts", - "polyfills": "src/polyfills.ts", - "tsConfig": "tsconfig.app.json", + "outputPath": "dist/apps/me", + "index": "apps/me/src/index.html", + "main": "apps/me/src/main.ts", + "polyfills": "apps/me/src/polyfills.ts", + "tsConfig": "apps/me/tsconfig.app.json", "aot": true, "assets": [ - "src/favicon.ico", - "src/assets" + "apps/me/src/favicon.ico", + "apps/me/src/assets" ], "styles": [ - "src/styles.scss" + "semantic/dist/semantic.min.css", + "apps/me/src/styles.scss" ], - "scripts": [] + "scripts": [ + "semantic/dist/semantic.min.js" + ] }, "configurations": { "production": { "fileReplacements": [ { - "replace": "src/environments/environment.ts", - "with": "src/environments/environment.prod.ts" + "replace": "apps/me/src/environments/environment.ts", + "with": "apps/me/src/environments/environment.prod.ts" } ], "optimization": true, @@ -83,16 +86,16 @@ "test": { "builder": "@angular-devkit/build-angular:karma", "options": { - "main": "src/test.ts", - "polyfills": "src/polyfills.ts", - "tsConfig": "tsconfig.spec.json", - "karmaConfig": "karma.conf.js", + "main": "apps/me/src/test.ts", + "polyfills": "apps/me/src/polyfills.ts", + "tsConfig": "apps/me/tsconfig.spec.json", + "karmaConfig": "apps/me/karma.conf.js", "assets": [ - "src/favicon.ico", - "src/assets" + "apps/me/src/favicon.ico", + "apps/me/src/assets" ], "styles": [ - "src/styles.scss" + "apps/me/src/styles.scss" ], "scripts": [] } @@ -101,19 +104,24 @@ "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": [ - "tsconfig.app.json", - "tsconfig.spec.json", - "e2e/tsconfig.json" + "apps/me/tsconfig.app.json", + "apps/me/tsconfig.spec.json" ], "exclude": [ "**/node_modules/**" ] } - }, + } + } + }, + "me-e2e": { + "projectType": "application", + "root": "apps/me-e2e", + "architect": { "e2e": { "builder": "@angular-devkit/build-angular:protractor", "options": { - "protractorConfig": "e2e/protractor.conf.js", + "protractorConfig": "apps/me-e2e/protractor.conf.js", "devServerTarget": "me:serve" }, "configurations": { @@ -121,6 +129,15 @@ "devServerTarget": "me:serve:production" } } + }, + "lint": { + "builder": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": "apps/me-e2e/tsconfig.json", + "exclude": [ + "**/node_modules/**" + ] + } } } }}, |