build: initial dashboard project (#5148)

This commit is contained in:
Paul Gschwendtner
2017-06-16 19:22:33 +02:00
committed by Kara
parent f579ea130f
commit c8e56b535e
19 changed files with 193 additions and 24 deletions
+37
View File
@@ -0,0 +1,37 @@
{
"$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.css"
],
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}
}
],
"e2e": {},
"lint": [],
"test": {},
"defaults": {
"styleExt": "css",
"component": {}
}
}
+4
View File
@@ -0,0 +1,4 @@
# Sub Gitignore file for the Dashboard project.
dist/
node_modules/
package-lock.json
+37
View File
@@ -0,0 +1,37 @@
{
"name": "material2-board",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"build-production": "ng build --aot -prod"
},
"private": true,
"dependencies": {
"@angular/animations": "^4.2.2",
"@angular/common": "^4.2.2",
"@angular/compiler": "^4.2.2",
"@angular/core": "^4.2.2",
"@angular/forms": "^4.2.2",
"@angular/http": "^4.2.2",
"@angular/platform-browser": "^4.2.2",
"@angular/platform-browser-dynamic": "^4.2.2",
"@angular/router": "^4.2.2",
"core-js": "^2.4.1",
"rxjs": "^5.1.0",
"zone.js": "^0.8.12"
},
"devDependencies": {
"@angular/cli": "1.1.1",
"@angular/compiler-cli": "^4.2.2",
"@angular/language-service": "^4.2.2",
"@types/jasmine": "2.5.45",
"@types/node": "~6.0.60",
"firebase-tools": "^3.9.1",
"ts-node": "~3.0.4",
"tslint": "~5.3.2",
"typescript": "~2.3.3"
}
}
@@ -0,0 +1 @@
<h1>Angular Material - Board</h1>
+8
View File
@@ -0,0 +1,8 @@
import {Component} from '@angular/core';
@Component({
selector: 'dashboard-app',
templateUrl: './dashboard-app.html',
styleUrls: ['./dashboard-app.css']
})
export class DashboardApp {}
@@ -0,0 +1,15 @@
import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {DashboardApp} from './dashboard-app';
@NgModule({
declarations: [
DashboardApp
],
imports: [
BrowserModule
],
providers: [],
bootstrap: [DashboardApp]
})
export class DashboardModule {}
View File
@@ -0,0 +1,3 @@
export const environment = {
production: true
};
@@ -0,0 +1,3 @@
export const environment = {
production: false
};
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

+14
View File
@@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Angular Material - Board</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<dashboard-app></dashboard-app>
</body>
</html>
+11
View File
@@ -0,0 +1,11 @@
import {enableProdMode} from '@angular/core';
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
import {environment} from './environments/environment';
import {DashboardModule} from './app/dashboard-module';
if (environment.production) {
enableProdMode();
}
platformBrowserDynamic().bootstrapModule(DashboardModule);
+3
View File
@@ -0,0 +1,3 @@
import 'core-js/es6/reflect';
import 'core-js/es7/reflect';
import 'zone.js/dist/zone';
+1
View File
@@ -0,0 +1 @@
/* You can add global styles to this file, and also import other style files */
+17
View File
@@ -0,0 +1,17 @@
{
"compilerOptions": {
"outDir": "../dist",
"baseUrl": ".",
"lib": ["es2016", "dom"],
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"noImplicitAny": true,
"target": "es5",
"module": "es2015",
"typeRoots": ["node_modules/@types"],
"types": []
}
}
+5
View File
@@ -0,0 +1,5 @@
/* SystemJS module definition */
declare var module: NodeModule;
interface NodeModule {
id: string;
}