Skip to content

Commit

Permalink
feat: add app that is mostly just static HTML and SCSS
Browse files Browse the repository at this point in the history
added just a little bit of TS to keep existing functionality
without using Angular
  • Loading branch information
Splaktar committed Sep 22, 2019
1 parent 0d07119 commit 8f38b3c
Show file tree
Hide file tree
Showing 17 changed files with 8,177 additions and 2,160 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12
26 changes: 7 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,15 @@
# AngularCliStatic
# Angular CLI Static

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.0.0-next.5.

## 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`.
Run `npm start` for a dev server.
Navigate to `http://localhost:4200/`.
The app will automatically reload if you change any of the source files.

## 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).
Run `npm run build` to build the project.
The build artifacts will be stored in the `dist/` directory.
run `npm run build:prod` flag for a production build.
93 changes: 91 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,94 @@
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {}
}
"projects": {
"static-html": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "projects/static-html",
"sourceRoot": "projects/static-html/src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/static-html",
"index": "projects/static-html/src/index.html",
"main": "projects/static-html/src/main.ts",
"polyfills": "projects/static-html/src/polyfills.ts",
"tsConfig": "projects/static-html/tsconfig.app.json",
"aot": true,
"assets": [
"projects/static-html/src/favicon.ico",
"projects/static-html/src/assets"
],
"styles": [
"projects/static-html/src/styles.scss"
],
"scripts": []
},
"configurations": {
"production": {
"fileReplacements": [],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
}
]
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "static-html:build"
},
"configurations": {
"production": {
"browserTarget": "static-html:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "static-html:build"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/static-html/tsconfig.app.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
}},
"cli": {
"analytics": "fc7225a9-dc2b-4b2a-a9a7-ad4d6246ca26"
},
"defaultProject": "static-html"
}
Loading

0 comments on commit 8f38b3c

Please sign in to comment.