mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build: initial dashboard project (#5148)
This commit is contained in:
@@ -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": {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
# Sub Gitignore file for the Dashboard project.
|
||||
dist/
|
||||
node_modules/
|
||||
package-lock.json
|
||||
@@ -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>
|
||||
@@ -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 {}
|
||||
@@ -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 |
@@ -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>
|
||||
@@ -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);
|
||||
@@ -0,0 +1,3 @@
|
||||
import 'core-js/es6/reflect';
|
||||
import 'core-js/es7/reflect';
|
||||
import 'zone.js/dist/zone';
|
||||
@@ -0,0 +1 @@
|
||||
/* You can add global styles to this file, and also import other style files */
|
||||
@@ -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": []
|
||||
}
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
/* SystemJS module definition */
|
||||
declare var module: NodeModule;
|
||||
interface NodeModule {
|
||||
id: string;
|
||||
}
|
||||
Reference in New Issue
Block a user