Initial Angular project

This commit is contained in:
Geomitron
2020-02-02 19:26:14 -05:00
parent 09cb5d2c5c
commit 66038d9e76
16 changed files with 38 additions and 74 deletions

2
.gitignore vendored
View File

@@ -43,4 +43,4 @@ testem.log
# System Files
.DS_Store
Thumbs.db
Thumbs.db

View File

@@ -1,27 +0,0 @@
# NewBridge
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.3.24.
## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
## Code scaffolding
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
## Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
## Running unit tests
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Running end-to-end tests
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

View File

@@ -3,7 +3,7 @@
"version": 1,
"newProjectRoot": "projects",
"projects": {
"NewBridge": {
"Bridge": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
@@ -36,7 +36,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/NewBridge",
"outputPath": "dist/Bridge",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
@@ -86,21 +86,15 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "NewBridge:build"
"browserTarget": "Bridge:build"
},
"configurations": {
"production": {
"browserTarget": "NewBridge:build:production"
"browserTarget": "Bridge:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "NewBridge:build"
}
}
}
}},
"defaultProject": "NewBridge"
"defaultProject": "Bridge"
}

2
package-lock.json generated
View File

@@ -1,5 +1,5 @@
{
"name": "new-bridge",
"name": "bridge",
"version": "0.0.0",
"lockfileVersion": 1,
"requires": true,

View File

@@ -1,13 +1,11 @@
{
"name": "new-bridge",
"name": "bridge",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
"lint": "ng lint"
},
"private": true,
"dependencies": {
@@ -33,4 +31,4 @@
"tslint": "~5.15.0",
"typescript": "~3.5.3"
}
}
}

View File

@@ -1,11 +1,11 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { NgModule } from '@angular/core'
import { Routes, RouterModule } from '@angular/router'
const routes: Routes = [];
const routes: Routes = []
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }
export class AppRoutingModule { }

View File

@@ -1,4 +1,4 @@
import { Component } from '@angular/core';
import { Component } from '@angular/core'
@Component({
selector: 'app-root',
@@ -28,5 +28,5 @@ import { Component } from '@angular/core';
styles: []
})
export class AppComponent {
title = 'NewBridge';
}
title = 'NewBridge'
}

View File

@@ -1,8 +1,8 @@
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser'
import { NgModule } from '@angular/core'
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module'
import { AppComponent } from './app.component'
@NgModule({
declarations: [
@@ -15,4 +15,4 @@ import { AppComponent } from './app.component';
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
export class AppModule { }

View File

@@ -1,3 +1,3 @@
export const environment = {
production: true
};
}

View File

@@ -4,7 +4,7 @@
export const environment = {
production: false
};
}
/*
* For easier debugging in development mode, you can import the following file
@@ -13,4 +13,4 @@ export const environment = {
* This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown.
*/
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.

View File

@@ -10,4 +10,4 @@
<body>
<app-root></app-root>
</body>
</html>
</html>

View File

@@ -1,12 +1,12 @@
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { enableProdMode } from '@angular/core'
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
import { AppModule } from './app/app.module'
import { environment } from './environments/environment'
if (environment.production) {
enableProdMode();
enableProdMode()
}
platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.error(err));
.catch(err => console.error(err))

View File

@@ -55,9 +55,9 @@
/***************************************************************************************************
* Zone JS is required by default for Angular itself.
*/
import 'zone.js/dist/zone'; // Included with Angular CLI.
import 'zone.js/dist/zone' // Included with Angular CLI.
/***************************************************************************************************
* APPLICATION IMPORTS
*/
*/

View File

@@ -1 +1 @@
/* You can add global styles to this file, and also import other style files */
/* You can add global styles to this file, and also import other style files */

View File

@@ -12,7 +12,6 @@
"src/**/*.ts"
],
"exclude": [
"src/test.ts",
"src/**/*.spec.ts"
"src/test.ts"
]
}
}

View File

@@ -23,4 +23,4 @@
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true
}
}
}