angular.json 3.73 KB
Newer Older
François Agneray's avatar
François Agneray committed
1
2
3
4
5
{
  "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  "version": 1,
  "newProjectRoot": "projects",
  "projects": {
François Agneray's avatar
François Agneray committed
6
    "anis-client": {
7
8
      "projectType": "application",
      "schematics": {},
François Agneray's avatar
François Agneray committed
9
10
      "root": "",
      "sourceRoot": "src",
11
      "prefix": "app",
François Agneray's avatar
François Agneray committed
12
13
14
15
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:browser",
          "options": {
François Agneray's avatar
François Agneray committed
16
            "outputPath": "dist/anis-client",
François Agneray's avatar
François Agneray committed
17
18
19
            "index": "src/index.html",
            "main": "src/main.ts",
            "polyfills": "src/polyfills.ts",
20
21
            "tsConfig": "tsconfig.app.json",
            "aot": false,
François Agneray's avatar
François Agneray committed
22
            "assets": [
23
24
              "src/favicon.ico",
              "src/assets"
François Agneray's avatar
François Agneray committed
25
26
27
28
29
30
31
32
33
34
35
36
37
38
            ],
            "styles": [
              "node_modules/bootstrap/dist/css/bootstrap.min.css",
              "node_modules/ngx-toastr/toastr.css",
              "node_modules/@fortawesome/fontawesome-free/css/all.css",
              "node_modules/@ng-select/ng-select/themes/default.theme.css",
              "src/styles.css"
            ],
            "scripts": [
              "node_modules/@fortawesome/fontawesome-free/js/all.js"
            ]
          },
          "configurations": {
            "production": {
39
40
41
42
43
44
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
                  "with": "src/environments/environment.prod.ts"
                }
              ],
François Agneray's avatar
François Agneray committed
45
46
47
48
49
50
51
52
53
              "optimization": true,
              "outputHashing": "all",
              "sourceMap": false,
              "extractCss": true,
              "namedChunks": false,
              "aot": true,
              "extractLicenses": true,
              "vendorChunk": false,
              "buildOptimizer": true,
54
              "budgets": [
François Agneray's avatar
François Agneray committed
55
                {
56
57
58
                  "type": "initial",
                  "maximumWarning": "2mb",
                  "maximumError": "5mb"
François Agneray's avatar
François Agneray committed
59
60
61
62
63
64
65
66
                }
              ]
            }
          }
        },
        "serve": {
          "builder": "@angular-devkit/build-angular:dev-server",
          "options": {
François Agneray's avatar
François Agneray committed
67
            "browserTarget": "anis-client:build"
François Agneray's avatar
François Agneray committed
68
69
70
          },
          "configurations": {
            "production": {
François Agneray's avatar
François Agneray committed
71
              "browserTarget": "anis-client:build:production"
François Agneray's avatar
François Agneray committed
72
73
74
75
76
77
            }
          }
        },
        "extract-i18n": {
          "builder": "@angular-devkit/build-angular:extract-i18n",
          "options": {
François Agneray's avatar
François Agneray committed
78
            "browserTarget": "anis-client:build"
François Agneray's avatar
François Agneray committed
79
80
81
82
83
84
85
          }
        },
        "test": {
          "builder": "@angular-devkit/build-angular:karma",
          "options": {
            "main": "src/test.ts",
            "polyfills": "src/polyfills.ts",
86
87
88
89
90
91
            "tsConfig": "tsconfig.spec.json",
            "karmaConfig": "karma.conf.js",
            "assets": [
              "src/favicon.ico",
              "src/assets"
            ],
François Agneray's avatar
François Agneray committed
92
93
94
            "styles": [
              "src/styles.css"
            ],
95
            "scripts": []
François Agneray's avatar
François Agneray committed
96
97
98
99
100
101
          }
        },
        "lint": {
          "builder": "@angular-devkit/build-angular:tslint",
          "options": {
            "tsConfig": [
102
103
104
              "tsconfig.app.json",
              "tsconfig.spec.json",
              "e2e/tsconfig.json"
François Agneray's avatar
François Agneray committed
105
106
107
108
109
            ],
            "exclude": [
              "**/node_modules/**"
            ]
          }
110
        },
François Agneray's avatar
François Agneray committed
111
112
113
        "e2e": {
          "builder": "@angular-devkit/build-angular:protractor",
          "options": {
114
            "protractorConfig": "e2e/protractor.conf.js",
François Agneray's avatar
François Agneray committed
115
            "devServerTarget": "anis-client:serve"
116
117
118
          },
          "configurations": {
            "production": {
François Agneray's avatar
François Agneray committed
119
              "devServerTarget": "anis-client:serve:production"
120
            }
François Agneray's avatar
François Agneray committed
121
122
123
          }
        }
      }
124
    }},
François Agneray's avatar
François Agneray committed
125
  "defaultProject": "anis-client"
126
}