|
|
@@ -7,52 +7,35 @@
|
|
|
},
|
|
|
"newProjectRoot": "projects",
|
|
|
"projects": {
|
|
|
- "xiaoshu-angular": {
|
|
|
+ "xiaoshu-mobile": {
|
|
|
"projectType": "application",
|
|
|
"schematics": {
|
|
|
"@schematics/angular:component": {
|
|
|
"style": "scss"
|
|
|
}
|
|
|
},
|
|
|
- "root": "",
|
|
|
- "sourceRoot": "src",
|
|
|
+ "root": "projects/xiaoshu-mobile",
|
|
|
+ "sourceRoot": "projects/xiaoshu-mobile/src",
|
|
|
"prefix": "app",
|
|
|
"architect": {
|
|
|
"build": {
|
|
|
"builder": "@angular-devkit/build-angular:application",
|
|
|
"options": {
|
|
|
- "outputPath": "dist/xiaoshu-angular",
|
|
|
- "index": "src/index.html",
|
|
|
- "browser": "src/main.ts",
|
|
|
- "polyfills": [
|
|
|
- "zone.js"
|
|
|
- ],
|
|
|
- "tsConfig": "tsconfig.app.json",
|
|
|
+ "outputPath": "dist/xiaoshu-mobile",
|
|
|
+ "index": "projects/xiaoshu-mobile/src/index.html",
|
|
|
+ "browser": "projects/xiaoshu-mobile/src/main.ts",
|
|
|
+ "polyfills": ["zone.js"],
|
|
|
+ "tsConfig": "projects/xiaoshu-mobile/tsconfig.app.json",
|
|
|
"inlineStyleLanguage": "scss",
|
|
|
- "assets": [
|
|
|
- {
|
|
|
- "glob": "**/*",
|
|
|
- "input": "public"
|
|
|
- }
|
|
|
- ],
|
|
|
- "styles": [
|
|
|
- "src/styles.scss"
|
|
|
- ],
|
|
|
+ "assets": [{ "glob": "**/*", "input": "public" }],
|
|
|
+ "styles": ["projects/xiaoshu-mobile/src/styles.scss"],
|
|
|
"scripts": []
|
|
|
},
|
|
|
"configurations": {
|
|
|
"production": {
|
|
|
"budgets": [
|
|
|
- {
|
|
|
- "type": "initial",
|
|
|
- "maximumWarning": "500kB",
|
|
|
- "maximumError": "1MB"
|
|
|
- },
|
|
|
- {
|
|
|
- "type": "anyComponentStyle",
|
|
|
- "maximumWarning": "8kB",
|
|
|
- "maximumError": "20kB"
|
|
|
- }
|
|
|
+ { "type": "initial", "maximumWarning": "500kB", "maximumError": "1MB" },
|
|
|
+ { "type": "anyComponentStyle", "maximumWarning": "8kB", "maximumError": "20kB" }
|
|
|
],
|
|
|
"outputHashing": "all"
|
|
|
},
|
|
|
@@ -66,14 +49,74 @@
|
|
|
},
|
|
|
"serve": {
|
|
|
"builder": "@angular-devkit/build-angular:dev-server",
|
|
|
+ "configurations": {
|
|
|
+ "production": { "buildTarget": "xiaoshu-mobile:build:production" },
|
|
|
+ "development": { "buildTarget": "xiaoshu-mobile:build:development" }
|
|
|
+ },
|
|
|
+ "defaultConfiguration": "development"
|
|
|
+ },
|
|
|
+ "extract-i18n": {
|
|
|
+ "builder": "@angular-devkit/build-angular:extract-i18n"
|
|
|
+ },
|
|
|
+ "test": {
|
|
|
+ "builder": "@angular-devkit/build-angular:karma",
|
|
|
+ "options": {
|
|
|
+ "polyfills": ["zone.js", "zone.js/testing"],
|
|
|
+ "tsConfig": "projects/xiaoshu-mobile/tsconfig.spec.json",
|
|
|
+ "inlineStyleLanguage": "scss",
|
|
|
+ "assets": [{ "glob": "**/*", "input": "public" }],
|
|
|
+ "styles": ["projects/xiaoshu-mobile/src/styles.scss"],
|
|
|
+ "scripts": []
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "xiaoshu-admin": {
|
|
|
+ "projectType": "application",
|
|
|
+ "schematics": {
|
|
|
+ "@schematics/angular:component": {
|
|
|
+ "style": "scss"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "root": "projects/xiaoshu-admin",
|
|
|
+ "sourceRoot": "projects/xiaoshu-admin/src",
|
|
|
+ "prefix": "app",
|
|
|
+ "architect": {
|
|
|
+ "build": {
|
|
|
+ "builder": "@angular-devkit/build-angular:application",
|
|
|
+ "options": {
|
|
|
+ "outputPath": "dist/xiaoshu-admin",
|
|
|
+ "index": "projects/xiaoshu-admin/src/index.html",
|
|
|
+ "browser": "projects/xiaoshu-admin/src/main.ts",
|
|
|
+ "polyfills": ["zone.js"],
|
|
|
+ "tsConfig": "projects/xiaoshu-admin/tsconfig.app.json",
|
|
|
+ "inlineStyleLanguage": "scss",
|
|
|
+ "assets": [{ "glob": "**/*", "input": "public" }],
|
|
|
+ "styles": ["projects/xiaoshu-admin/src/styles.scss"],
|
|
|
+ "scripts": []
|
|
|
+ },
|
|
|
"configurations": {
|
|
|
"production": {
|
|
|
- "buildTarget": "xiaoshu-angular:build:production"
|
|
|
+ "budgets": [
|
|
|
+ { "type": "initial", "maximumWarning": "500kB", "maximumError": "1MB" },
|
|
|
+ { "type": "anyComponentStyle", "maximumWarning": "8kB", "maximumError": "20kB" }
|
|
|
+ ],
|
|
|
+ "outputHashing": "all"
|
|
|
},
|
|
|
"development": {
|
|
|
- "buildTarget": "xiaoshu-angular:build:development"
|
|
|
+ "optimization": false,
|
|
|
+ "extractLicenses": false,
|
|
|
+ "sourceMap": true
|
|
|
}
|
|
|
},
|
|
|
+ "defaultConfiguration": "production"
|
|
|
+ },
|
|
|
+ "serve": {
|
|
|
+ "builder": "@angular-devkit/build-angular:dev-server",
|
|
|
+ "configurations": {
|
|
|
+ "production": { "buildTarget": "xiaoshu-admin:build:production" },
|
|
|
+ "development": { "buildTarget": "xiaoshu-admin:build:development" }
|
|
|
+ },
|
|
|
"defaultConfiguration": "development"
|
|
|
},
|
|
|
"extract-i18n": {
|
|
|
@@ -82,21 +125,11 @@
|
|
|
"test": {
|
|
|
"builder": "@angular-devkit/build-angular:karma",
|
|
|
"options": {
|
|
|
- "polyfills": [
|
|
|
- "zone.js",
|
|
|
- "zone.js/testing"
|
|
|
- ],
|
|
|
- "tsConfig": "tsconfig.spec.json",
|
|
|
+ "polyfills": ["zone.js", "zone.js/testing"],
|
|
|
+ "tsConfig": "projects/xiaoshu-admin/tsconfig.spec.json",
|
|
|
"inlineStyleLanguage": "scss",
|
|
|
- "assets": [
|
|
|
- {
|
|
|
- "glob": "**/*",
|
|
|
- "input": "public"
|
|
|
- }
|
|
|
- ],
|
|
|
- "styles": [
|
|
|
- "src/styles.scss"
|
|
|
- ],
|
|
|
+ "assets": [{ "glob": "**/*", "input": "public" }],
|
|
|
+ "styles": ["projects/xiaoshu-admin/src/styles.scss"],
|
|
|
"scripts": []
|
|
|
}
|
|
|
}
|