2bcab5d098
- moved all server related things into the folder `server`, so this configuration is parallel to the client. - All main "services" are now folders in the root directory - Added Dockerfiles to each service (currently server and client) - Added a docker compose configuration to start everything together. Currently there are heavy dependencies into https://github.com/OpenSlides/openslides-docker-compose - Resturctured the .gitignore. If someone needs something excluded, please add it to the right section. - Added initial build setup with Docker and docker-compose. - removed setup.py. We won't deliver OpenSlides via pip anymore.
159 lines
6.5 KiB
JSON
159 lines
6.5 KiB
JSON
{
|
|
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
"version": 1,
|
|
"newProjectRoot": "projects",
|
|
"projects": {
|
|
"client": {
|
|
"projectType": "application",
|
|
"schematics": {
|
|
"@schematics/angular:component": {
|
|
"style": "scss"
|
|
}
|
|
},
|
|
"root": "",
|
|
"sourceRoot": "src",
|
|
"prefix": "os",
|
|
"architect": {
|
|
"build": {
|
|
"builder": "@angular-devkit/build-angular:browser",
|
|
"options": {
|
|
"outputPath": "static",
|
|
"index": "src/index.html",
|
|
"main": "src/main.ts",
|
|
"polyfills": "src/polyfills.ts",
|
|
"tsConfig": "tsconfig.app.json",
|
|
"aot": true,
|
|
"assets": [
|
|
"src/assets",
|
|
"src/manifest.json",
|
|
{
|
|
"glob": "**/*",
|
|
"input": "node_modules/tinymce",
|
|
"output": "/tinymce/"
|
|
}
|
|
],
|
|
"styles": ["src/styles.scss"],
|
|
"scripts": [
|
|
"node_modules/tinymce/tinymce.min.js",
|
|
"node_modules/video.js/dist/video.min.js",
|
|
"src/assets/jitsi/external_api.js"
|
|
],
|
|
"webWorkerTsConfig": "tsconfig.worker.json"
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"fileReplacements": [
|
|
{
|
|
"replace": "src/environments/environment.ts",
|
|
"with": "src/environments/environment.prod.ts"
|
|
}
|
|
],
|
|
"optimization": true,
|
|
"outputHashing": "all",
|
|
"sourceMap": false,
|
|
"extractCss": true,
|
|
"namedChunks": false,
|
|
"aot": true,
|
|
"extractLicenses": true,
|
|
"vendorChunk": false,
|
|
"buildOptimizer": true,
|
|
"serviceWorker": true,
|
|
"budgets": [
|
|
{
|
|
"type": "initial",
|
|
"maximumWarning": "5mb",
|
|
"maximumError": "10mb"
|
|
},
|
|
{
|
|
"type": "anyComponentStyle",
|
|
"maximumWarning": "6kb"
|
|
}
|
|
]
|
|
},
|
|
"es5": {
|
|
"budgets": [
|
|
{
|
|
"type": "anyComponentStyle",
|
|
"maximumWarning": "6kb"
|
|
}
|
|
],
|
|
"tsConfig": "./tsconfig-es5.app.json"
|
|
}
|
|
}
|
|
},
|
|
"serve": {
|
|
"builder": "@angular-devkit/build-angular:dev-server",
|
|
"options": {
|
|
"browserTarget": "client:build"
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"browserTarget": "client:build:production"
|
|
},
|
|
"es5": {
|
|
"browserTarget": "client:build:es5"
|
|
}
|
|
}
|
|
},
|
|
"extract-i18n": {
|
|
"builder": "@angular-devkit/build-angular:extract-i18n",
|
|
"options": {
|
|
"browserTarget": "client:build"
|
|
}
|
|
},
|
|
"test": {
|
|
"builder": "@angular-devkit/build-angular:karma",
|
|
"options": {
|
|
"main": "src/test.ts",
|
|
"polyfills": "src/polyfills.ts",
|
|
"tsConfig": "tsconfig.spec.json",
|
|
"karmaConfig": "karma.conf.js",
|
|
"styles": ["src/styles.scss"],
|
|
"scripts": ["node_modules/tinymce/tinymce.min.js"],
|
|
"assets": [
|
|
"src/assets",
|
|
"src/manifest.json",
|
|
{
|
|
"glob": "**/*",
|
|
"input": "node_modules/tinymce/skins",
|
|
"output": "/tinymce/skins/"
|
|
},
|
|
{
|
|
"glob": "**/*",
|
|
"input": "node_modules/tinymce/themes",
|
|
"output": "/tinymce/themes/"
|
|
},
|
|
{
|
|
"glob": "**/*",
|
|
"input": "node_modules/tinymce/plugins",
|
|
"output": "/tinymce/plugins/"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"lint": {
|
|
"builder": "@angular-devkit/build-angular:tslint",
|
|
"options": {
|
|
"tsConfig": "tsconfig.spec.json",
|
|
"format": "stylish",
|
|
"exclude": ["**/node_modules/**"]
|
|
}
|
|
},
|
|
"e2e": {
|
|
"builder": "@angular-devkit/build-angular:protractor",
|
|
"options": {
|
|
"protractorConfig": "e2e/protractor.conf.js",
|
|
"devServerTarget": "client:serve"
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"devServerTarget": "client:serve:production"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"defaultProject": "client"
|
|
}
|