Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

6.0 KB
Raw Blame
{
  "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  "version": 1,
  "newProjectRoot": "projects",
  "projects": {
    "OpenProject": {
      "projectType": "application",
      "schematics": {
        "@schematics/angular:component": {
          "style": "sass"
        }
      },
      "root": "",
      "sourceRoot": "src",
      "architect": {
        "build": {
          "builder": "@angular-builders/custom-esbuild:application",
          "options": {
            "plugins": ["./esbuild/plugins.ts"],
            "allowedCommonJsDependencies": [
              "dom-plane",
              "pako",
              "moment-timezone",
              "observable-array",
              "dragula",
              "jquery",
              "contra/emitter",
              "crossvent",
              "create-point-cb",
              "core-vendor/enjoyhint",
              "tablesorter"
            ],
            "preserveSymlinks": true,
            "outputPath": {
              "base": "../public/assets/frontend",
              "browser": ""
            },
            "index": false,
            "browser": "src/main.ts",
            "polyfills": ["src/polyfills.ts"],
            "tsConfig": "tsconfig.app.json",
            "inlineStyleLanguage": "sass",
            "assets": [
              "src/assets"
            ],
            "styles": [
              {
                "input": "src/spot.scss",
                "bundleName": "spot"
              },
              {
                "input": "src/backlogs.scss",
                "bundleName": "backlogs"
              },
              "src/styles.scss",
              "node_modules/@blocknote/mantine/dist/style.css",
              "node_modules/codemirror/lib/codemirror.css",
              "src/vendor/jquery-ui-1.14.1/jquery-ui.css",
              "src/vendor/jquery-ui-1.14.1/jquery-ui.structure.css",
              "src/vendor/jquery-ui-1.14.1/jquery-ui.theme.css",
              "node_modules/flatpickr/dist/flatpickr.min.css"
            ],
            "stylePreprocessorOptions": {
              "includePaths": [
                "src/assets/sass"
              ],
              "sass": {
                "silenceDeprecations": [
                  "color-functions",
                  "global-builtin",
                  "import",
                  "mixed-decls"
                ]
              }
            },
            "scripts": [
              {
                "input": "node_modules/jquery/dist/jquery.min.js",
                "inject": false,
                "bundleName": "jquery"
              }
            ]
          },
          "configurations": {
            "production": {
              "budgets": [
                {
                  "type": "anyComponentStyle",
                  "maximumWarning": "6kB"
                }
              ],
              "preserveSymlinks": true,
              "optimization": {
                "scripts" : false,
                "styles" : true,
                "fonts" : true
              },
              "outputHashing": "all",
              "sourceMap": false,
              "namedChunks": false,
              "extractLicenses": true,
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
                  "with": "src/environments/environment.prod.ts"
                }
              ],
              "define": { "process.env.NODE_ENV": "'production'" }
            },
            "development": {
              "optimization": false,
              "extractLicenses": false,
              "sourceMap": true,
              "define": { "process.env.NODE_ENV": "'development'" }
            }
          },
          "defaultConfiguration": "production"
        },
        "serve": {
          "builder": "@angular-builders/custom-esbuild:dev-server",
          "options": {
            "servePath": "/assets/frontend"
          },
          "configurations": {
            "production": {
              "buildTarget": "OpenProject:build:production"
            },
            "development": {
              "buildTarget": "OpenProject:build:development",
              "proxyConfig": "src/proxy.conf.mjs",
              "headers": {
                "Access-Control-Allow-Origin": "*"
              }
            }
          },
          "defaultConfiguration": "development"
        },
        "extract-i18n": {
          "builder": "@angular-devkit/build-angular:extract-i18n",
          "options": {
            "buildTarget": "OpenProject:build"
          }
        },
        "test": {
          "builder": "@angular-devkit/build-angular:karma",
          "options": {
            "preserveSymlinks": true,
            "main": "src/test.ts",
            "karmaConfig": "./karma.conf.js",
            "tsConfig": "tsconfig.spec.json",
            "scripts": [],
            "styles": [],
            "stylePreprocessorOptions": {
              "includePaths": [
                "src/assets/sass/"
              ]
            },
            "assets": []
          }
        },
        "lint": {
          "builder": "@angular-eslint/builder:lint",
          "options": {
            "lintFilePatterns": [
              "src/**/*.ts",
              "src/**/*.html"
            ]
          }
        }
      }
    }
  },
  "schematics": {
    "@schematics/angular:component": {
      "prefix": "op",
      "style": "sass",
      "changeDetection": "OnPush",
      "skipTests": true,
      "flat": true,
      "type": "component"
    },
    "@schematics/angular:directive": {
      "prefix": "op",
      "skipTests": true,
      "type": "directive"
    },
    "@schematics/angular:service": {
      "type": "service"
    },
    "@schematics/angular:guard": {
      "typeSeparator": "."
    },
    "@schematics/angular:interceptor": {
      "typeSeparator": "."
    },
    "@schematics/angular:module": {
      "typeSeparator": "."
    },
    "@schematics/angular:pipe": {
      "typeSeparator": "."
    },
    "@schematics/angular:resolver": {
      "typeSeparator": "."
    }
  },
  "cli": {
    "analytics": false,
    "cache": {
      "environment": "all"
    }
  }
}