Skip to content
Snippets Groups Projects
angular.json 9.5 KiB
Newer Older
  • Learn to ignore specific revisions
  • rhenck's avatar
    rhenck committed
    {
      "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
      "version": 1,
      "newProjectRoot": "projects",
      "projects": {
    
        "editor": {
          "projectType": "application",
          "schematics": {
            "@schematics/angular:application": {
              "strict": true
            }
          },
          "root": "projects/editor",
          "sourceRoot": "projects/editor/src",
          "prefix": "app",
          "architect": {
            "build": {
              "builder": "@angular-devkit/build-angular:browser",
              "options": {
                "outputPath": "dist/editor",
                "index": "projects/editor/src/index.html",
                "main": "projects/editor/src/main.ts",
                "polyfills": "projects/editor/src/polyfills.ts",
                "tsConfig": "projects/editor/tsconfig.app.json",
                "assets": [
                  "projects/editor/src/favicon.ico",
    
                  "projects/editor/src/assets",
                  {
                    "glob": "**/*",
                    "input": "./projects/common/assets",
                    "output": "assets"
    
    rhenck's avatar
    rhenck committed
                  },
                  {
                    "glob": "**/*",
                    "input": "./projects/common/assets/fonts/mathlive",
                    "output": "fonts"
    
    rhenck's avatar
    rhenck committed
                  "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
    
                  "projects/editor/src/styles.css",
    
                  "projects/common/assets/customTheme.scss"
    
                ],
                "scripts": []
              },
              "configurations": {
                "production": {
                  "budgets": [
                    {
                      "type": "initial",
    
                      "maximumWarning": "3mb",
                      "maximumError": "3.5mb"
    
                    },
                    {
                      "type": "anyComponentStyle",
                      "maximumWarning": "2kb",
                      "maximumError": "4kb"
                    }
                  ],
                  "fileReplacements": [
                    {
                      "replace": "projects/editor/src/environments/environment.ts",
                      "with": "projects/editor/src/environments/environment.prod.ts"
    
    rhenck's avatar
    rhenck committed
                    },
                    {
                      "replace": "projects/common/environment.ts",
                      "with": "projects/editor/src/environments/environment.ts"
    
                    }
                  ],
                  "outputHashing": "all"
                },
                "development": {
                  "buildOptimizer": false,
                  "optimization": false,
                  "vendorChunk": true,
                  "extractLicenses": false,
                  "sourceMap": true,
    
    rhenck's avatar
    rhenck committed
                  "namedChunks": true,
                  "fileReplacements": [
                    {
                      "replace": "projects/common/environment.ts",
                      "with": "projects/editor/src/environments/environment.ts"
                    }
                  ]
    
                }
              },
              "defaultConfiguration": "production"
            },
            "serve": {
              "builder": "@angular-devkit/build-angular:dev-server",
              "configurations": {
                "production": {
                  "browserTarget": "editor:build:production"
                },
                "development": {
                  "browserTarget": "editor:build:development"
                }
              },
              "defaultConfiguration": "development"
            },
            "extract-i18n": {
              "builder": "@angular-devkit/build-angular:extract-i18n",
              "options": {
                "browserTarget": "editor:build"
              }
            },
            "test": {
              "builder": "@angular-devkit/build-angular:karma",
              "options": {
                "main": "projects/editor/src/test.ts",
                "polyfills": "projects/editor/src/polyfills.ts",
                "tsConfig": "projects/editor/tsconfig.spec.json",
                "karmaConfig": "projects/editor/karma.conf.js",
                "assets": [
                  "projects/editor/src/favicon.ico",
    
                  "projects/editor/src/assets",
                  {
                    "glob": "**/*",
                    "input": "./projects/common/assets",
                    "output": "assets"
                  }
    
                  "projects/editor/src/styles.css",
    
                  "projects/common/assets/customTheme.scss"
    
    rhenck's avatar
    rhenck committed
                "scripts": [],
                "fileReplacements": [
                  {
                    "replace": "projects/common/environment.ts",
                    "with": "projects/editor/src/environments/environment.ts"
                  }
                ]
    
              }
            }
          }
        },
        "player": {
          "projectType": "application",
          "schematics": {
            "@schematics/angular:application": {
              "strict": true
            }
          },
          "root": "projects/player",
          "sourceRoot": "projects/player/src",
          "prefix": "app",
          "architect": {
            "build": {
              "builder": "@angular-devkit/build-angular:browser",
              "options": {
                "outputPath": "dist/player",
                "index": "projects/player/src/index.html",
                "main": "projects/player/src/main.ts",
                "polyfills": "projects/player/src/polyfills.ts",
                "tsConfig": "projects/player/tsconfig.app.json",
                "assets": [
                  "projects/player/src/favicon.ico",
    
                  "projects/player/src/assets",
                  {
                    "glob": "**/*",
                    "input": "./projects/common/assets",
                    "output": "assets"
    
                  },
                  {
                    "glob": "**/*",
                    "input": "./projects/common/assets/fonts/mathlive",
                    "output": "fonts"
    
    rhenck's avatar
    rhenck committed
                  "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
    
                  "projects/player/src/styles.css",
    
                  "projects/common/assets/customTheme.scss"
    
                ],
                "scripts": []
              },
              "configurations": {
                "production": {
                  "budgets": [
                    {
                      "type": "initial",
    
                      "maximumWarning": "2.5mb",
                      "maximumError": "3mb"
    
                    },
                    {
                      "type": "anyComponentStyle",
                      "maximumWarning": "2kb",
                      "maximumError": "4kb"
                    }
                  ],
                  "fileReplacements": [
                    {
                      "replace": "projects/player/src/environments/environment.ts",
                      "with": "projects/player/src/environments/environment.prod.ts"
                    }
                  ],
                  "outputHashing": "all"
                },
                "development": {
                  "buildOptimizer": false,
                  "optimization": false,
                  "vendorChunk": true,
                  "extractLicenses": false,
                  "sourceMap": true,
                  "namedChunks": true
                }
              },
              "defaultConfiguration": "production"
            },
            "serve": {
              "builder": "@angular-devkit/build-angular:dev-server",
              "configurations": {
                "production": {
                  "browserTarget": "player:build:production"
                },
                "development": {
                  "browserTarget": "player:build:development"
                }
              },
              "defaultConfiguration": "development"
            },
            "extract-i18n": {
              "builder": "@angular-devkit/build-angular:extract-i18n",
              "options": {
                "browserTarget": "player:build"
              }
            },
            "test": {
              "builder": "@angular-devkit/build-angular:karma",
              "options": {
                "main": "projects/player/src/test.ts",
                "polyfills": "projects/player/src/polyfills.ts",
                "tsConfig": "projects/player/tsconfig.spec.json",
                "karmaConfig": "projects/player/karma.conf.js",
                "assets": [
                  "projects/player/src/favicon.ico",
    
                  "projects/player/src/assets",
                  {
                    "glob": "**/*",
                    "input": "./projects/common/assets",
                    "output": "assets"
                  }
    
                ],
                "styles": [
                  "projects/player/src/styles.css"
                ],
    
    rhenck's avatar
    rhenck committed
                "scripts": [],
                "fileReplacements": [
                  {
                    "replace": "projects/common/environment.ts",
                    "with": "projects/editor/src/environments/environment.ts"
                  }
                ]
    
        },
        "common": {
          "projectType": "application",
          "root": "projects/common",
          "sourceRoot": "projects/common",
          "architect": {
            "test": {
              "builder": "@angular-devkit/build-angular:karma",
              "options": {
                "main": "projects/common/test.ts",
                "tsConfig": "projects/common/tsconfig.spec.json",
                "karmaConfig": "projects/common/karma.conf.js",
                "polyfills": "projects/common/polyfills.ts"
              }
            }
          }
    
        },
        "playerModules": {
          "projectType": "application",
          "root": "projects/player/modules",
          "sourceRoot": "projects/player/modules",
          "architect": {
            "test": {
              "builder": "@angular-devkit/build-angular:karma",
              "options": {
                "main": "projects/player/modules/test.ts",
                "tsConfig": "projects/player/modules/tsconfig.spec.json",
                "karmaConfig": "projects/player/modules/karma.conf.js",
                "polyfills": "projects/player/modules/polyfills.ts"
              }
            }
          }
    
      "schematics": {
        "@schematics/angular:component": {
          "style": "scss"
        }
    
    rhenck's avatar
    rhenck committed
    }