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 # System Files
.DS_Store .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, "version": 1,
"newProjectRoot": "projects", "newProjectRoot": "projects",
"projects": { "projects": {
"NewBridge": { "Bridge": {
"projectType": "application", "projectType": "application",
"schematics": { "schematics": {
"@schematics/angular:component": { "@schematics/angular:component": {
@@ -36,7 +36,7 @@
"build": { "build": {
"builder": "@angular-devkit/build-angular:browser", "builder": "@angular-devkit/build-angular:browser",
"options": { "options": {
"outputPath": "dist/NewBridge", "outputPath": "dist/Bridge",
"index": "src/index.html", "index": "src/index.html",
"main": "src/main.ts", "main": "src/main.ts",
"polyfills": "src/polyfills.ts", "polyfills": "src/polyfills.ts",
@@ -86,21 +86,15 @@
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",
"options": { "options": {
"browserTarget": "NewBridge:build" "browserTarget": "Bridge:build"
}, },
"configurations": { "configurations": {
"production": { "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", "version": "0.0.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,

View File

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

View File

@@ -1,11 +1,11 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core'
import { Routes, RouterModule } from '@angular/router'; import { Routes, RouterModule } from '@angular/router'
const routes: Routes = []; const routes: Routes = []
@NgModule({ @NgModule({
imports: [RouterModule.forRoot(routes)], imports: [RouterModule.forRoot(routes)],
exports: [RouterModule] 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({ @Component({
selector: 'app-root', selector: 'app-root',
@@ -28,5 +28,5 @@ import { Component } from '@angular/core';
styles: [] styles: []
}) })
export class AppComponent { export class AppComponent {
title = 'NewBridge'; title = 'NewBridge'
} }

View File

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

View File

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

View File

@@ -4,7 +4,7 @@
export const environment = { export const environment = {
production: false production: false
}; }
/* /*
* For easier debugging in development mode, you can import the following file * 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 * This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown. * 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> <body>
<app-root></app-root> <app-root></app-root>
</body> </body>
</html> </html>

View File

@@ -1,12 +1,12 @@
import { enableProdMode } from '@angular/core'; import { enableProdMode } from '@angular/core'
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'
import { AppModule } from './app/app.module'; import { AppModule } from './app/app.module'
import { environment } from './environments/environment'; import { environment } from './environments/environment'
if (environment.production) { if (environment.production) {
enableProdMode(); enableProdMode()
} }
platformBrowserDynamic().bootstrapModule(AppModule) 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. * 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 * 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" "src/**/*.ts"
], ],
"exclude": [ "exclude": [
"src/test.ts", "src/test.ts"
"src/**/*.spec.ts"
] ]
} }

View File

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