WebApp: Starting to split the app in multiple projects

This commit is contained in:
Zoe Roux 2021-11-21 17:26:11 +01:00
parent 2f25b59a69
commit 41d323bbd7
No known key found for this signature in database
GPG Key ID: 8BB9CF5EF72AE933
172 changed files with 74 additions and 57 deletions

View File

@ -1,2 +0,0 @@
# Kyoo.WebApp
The Angular web app for Kyoo.

View File

@ -1,32 +1,34 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"cli": {
"packageManager": "yarn",
"analytics": false
},
"newProjectRoot": "projects",
"projects": {
"kyoo": {
"host": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "",
"sourceRoot": "src",
"root": "projects/host",
"sourceRoot": "projects/host/src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.json",
"aot": false,
"buildOptimizer": false,
"outputPath": "dist/host",
"index": "projects/host/src/index.html",
"main": "projects/host/src/main.ts",
"polyfills": "projects/host/src/polyfills.ts",
"tsConfig": "projects/host/tsconfig.json",
"preserveSymlinks": true,
"assets": [
"src/assets",
"projects/host/src/assets",
{
"input": "node_modules/libass-wasm/dist/js",
"glob": "subtitles-octopus-worker*",
@ -34,23 +36,20 @@
}
],
"styles": [
"src/styles.scss"
"projects/host/src/styles.scss"
],
"scripts": [
"./node_modules/jquery/dist/jquery.min.js",
"./node_modules/bootstrap/dist/js/bootstrap.bundle.min.js",
"./node_modules/hls.js/dist/hls.js"
],
"stylePreprocessorOptions": {
"includePaths": ["src"]
}
]
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
"replace": "projects/host/src/environments/environment.ts",
"with": "projects/host/src/environments/environment.prod.ts"
}
],
"optimization": true,
@ -73,24 +72,33 @@
"maximumError": "10kb"
}
]
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
}
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "kyoo:build"
"browserTarget": "host:build"
},
"configurations": {
"production": {
"browserTarget": "kyoo:build:production"
"browserTarget": "host:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "kyoo:build"
"browserTarget": "host:build"
}
},
"lint": {
@ -106,8 +114,5 @@
}
}
},
"defaultProject": "kyoo",
"cli": {
"analytics": false
}
"defaultProject": "host"
}

Some files were not shown because too many files have changed in this diff Show More