mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build: fix dashboard deployment (#12293)
This commit is contained in:
committed by
Joey Perrott
parent
e13bfe08c7
commit
f9b9e25d61
@@ -25,7 +25,7 @@ firebaseBin=$(npm bin)/firebase
|
||||
cd ${dashboardFolder}
|
||||
|
||||
# Install node_modules for the dashboard and afterwards build the dashboard app in production.
|
||||
(npm install; $(npm bin)/ng build --aot -prod) &
|
||||
(npm install; npm run build-production) &
|
||||
|
||||
# Install node modules for dashboard functions. Firebase CLI needs to execute the functions
|
||||
# to collect all function names before it can deploy them.
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
{
|
||||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
||||
"project": {
|
||||
"name": "material2-board"
|
||||
},
|
||||
"apps": [
|
||||
{
|
||||
"root": "src",
|
||||
"outDir": "./dist",
|
||||
"assets": [
|
||||
"assets",
|
||||
"favicon.ico"
|
||||
],
|
||||
"index": "index.html",
|
||||
"main": "main.ts",
|
||||
"polyfills": "polyfills.ts",
|
||||
"tsconfig": "tsconfig.json",
|
||||
"prefix": "app",
|
||||
"styles": [
|
||||
"styles.scss",
|
||||
"theme.scss"
|
||||
],
|
||||
"scripts": [],
|
||||
"environmentSource": "environments/environment.ts",
|
||||
"environments": {
|
||||
"dev": "environments/environment.ts",
|
||||
"prod": "environments/environment.prod.ts"
|
||||
}
|
||||
}
|
||||
],
|
||||
"e2e": {},
|
||||
"lint": [],
|
||||
"test": {},
|
||||
"defaults": {
|
||||
"styleExt": "css",
|
||||
"component": {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
{
|
||||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
||||
"version": 1,
|
||||
"newProjectRoot": "projects",
|
||||
"projects": {
|
||||
"material2-board": {
|
||||
"root": "",
|
||||
"sourceRoot": "src",
|
||||
"projectType": "application",
|
||||
"prefix": "app",
|
||||
"schematics": {},
|
||||
"architect": {
|
||||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:browser",
|
||||
"options": {
|
||||
"outputPath": "dist/",
|
||||
"index": "src/index.html",
|
||||
"main": "src/main.ts",
|
||||
"polyfills": "src/polyfills.ts",
|
||||
"tsConfig": "src/tsconfig.json",
|
||||
"assets": [
|
||||
"src/favicon.ico",
|
||||
"src/assets"
|
||||
],
|
||||
"styles": [
|
||||
"src/styles.scss",
|
||||
"src/theme.scss"
|
||||
],
|
||||
"scripts": []
|
||||
},
|
||||
"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
|
||||
}
|
||||
}
|
||||
},
|
||||
"serve": {
|
||||
"builder": "@angular-devkit/build-angular:dev-server",
|
||||
"options": {
|
||||
"browserTarget": "material2-board:build"
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"browserTarget": "material2-board:build:production"
|
||||
}
|
||||
}
|
||||
},
|
||||
"extract-i18n": {
|
||||
"builder": "@angular-devkit/build-angular:extract-i18n",
|
||||
"options": {
|
||||
"browserTarget": "material2-board:build"
|
||||
}
|
||||
},
|
||||
"test": {
|
||||
"builder": "@angular-devkit/build-angular:karma",
|
||||
"options": {
|
||||
"main": "src/test.ts",
|
||||
"polyfills": "src/polyfills.ts",
|
||||
"tsConfig": "src/tsconfig.spec.json",
|
||||
"karmaConfig": "src/karma.conf.js",
|
||||
"styles": [
|
||||
"src/styles.css"
|
||||
],
|
||||
"scripts": [],
|
||||
"assets": [
|
||||
"src/favicon.ico",
|
||||
"src/assets"
|
||||
]
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"builder": "@angular-devkit/build-angular:tslint",
|
||||
"options": {
|
||||
"tsConfig": [
|
||||
"src/tsconfig.app.json",
|
||||
"src/tsconfig.spec.json"
|
||||
],
|
||||
"exclude": [
|
||||
"**/node_modules/**"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"defaultProject": "material2-board"
|
||||
}
|
||||
@@ -3,14 +3,14 @@
|
||||
"version": "0.0.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@firebase/app-types": "^0.1.1",
|
||||
"@octokit/rest": "^14.0.4",
|
||||
"@types/jsonwebtoken": "^7.2.5",
|
||||
"firebase-admin": "^5.8.1",
|
||||
"firebase-functions": "^0.8.1",
|
||||
"jsonwebtoken": "^8.1.0",
|
||||
"request": "^2.83.0",
|
||||
"ts-node": "^4.1.0",
|
||||
"typescript": "^2.6.2"
|
||||
"@firebase/app-types": "^0.3.2",
|
||||
"@octokit/rest": "^15.9.4",
|
||||
"@types/jsonwebtoken": "^7.2.8",
|
||||
"firebase-admin": "^5.13.0",
|
||||
"firebase-functions": "^1.1.0",
|
||||
"jsonwebtoken": "^8.3.0",
|
||||
"request": "^2.87.0",
|
||||
"ts-node": "^7.0.0",
|
||||
"typescript": "^2.9.2"
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+4820
-4644
File diff suppressed because it is too large
Load Diff
@@ -6,35 +6,34 @@
|
||||
"ng": "ng",
|
||||
"start": "ng serve",
|
||||
"build": "ng build",
|
||||
"build-production": "ng build --aot -prod"
|
||||
"build-production": "ng build --aot --prod"
|
||||
},
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@angular/animations": "^5.0.0",
|
||||
"@angular/cdk": "^5.0.0",
|
||||
"@angular/common": "^5.0.0",
|
||||
"@angular/compiler": "^5.0.0",
|
||||
"@angular/core": "^5.0.0",
|
||||
"@angular/forms": "^5.0.0",
|
||||
"@angular/material": "^5.0.0",
|
||||
"@angular/platform-browser": "^5.0.0",
|
||||
"@angular/platform-browser-dynamic": "^5.0.0",
|
||||
"@angular/router": "^5.0.0",
|
||||
"@swimlane/ngx-charts": "^7.0.1",
|
||||
"angularfire2": "^5.0.0-rc.7",
|
||||
"core-js": "^2.4.1",
|
||||
"d3": "^4.9.1",
|
||||
"firebase": "5.0.2",
|
||||
"rxjs": "^5.4.2",
|
||||
"zone.js": "^0.8.12"
|
||||
"@angular/animations": "^6.0.9",
|
||||
"@angular/cdk": "^6.4.0",
|
||||
"@angular/common": "^6.0.9",
|
||||
"@angular/compiler": "^6.0.9",
|
||||
"@angular/core": "^6.0.9",
|
||||
"@angular/forms": "^5.0",
|
||||
"@angular/material": "^6.4.0",
|
||||
"@angular/platform-browser": "^6.0.9",
|
||||
"@angular/platform-browser-dynamic": "^6.0.9",
|
||||
"@angular/router": "^6.0.9",
|
||||
"@swimlane/ngx-charts": "^9.0.0",
|
||||
"angularfire2": "^5.0.0-rc.11",
|
||||
"core-js": "^2.5.7",
|
||||
"d3": "^5.5.0",
|
||||
"firebase": "^5.2.0",
|
||||
"rxjs": "^5.6.0-forward-compat.5",
|
||||
"zone.js": "^0.8.26"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular/cli": "^1.2.0",
|
||||
"@angular/compiler-cli": "^5.0.0",
|
||||
"@angular/language-service": "^5.0.0",
|
||||
"@types/jasmine": "2.5.45",
|
||||
"@types/node": "~6.0.60",
|
||||
"ts-node": "~3.0.4",
|
||||
"typescript": "~2.4.2"
|
||||
"@angular-devkit/build-angular": "^0.6.8",
|
||||
"@angular/cli": "^6.0.8",
|
||||
"@angular/compiler-cli": "^6.0.9",
|
||||
"@angular/language-service": "^6.0.9",
|
||||
"@types/node": "^10.5.2",
|
||||
"typescript": ">=2.7.0 <2.8.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user