Skip to content

Commit 8f38b3c

Browse files
committed
feat: add app that is mostly just static HTML and SCSS
added just a little bit of TS to keep existing functionality without using Angular
1 parent 0d07119 commit 8f38b3c

17 files changed

+8177
-2160
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
12

README.md

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,15 @@
1-
# AngularCliStatic
1+
# Angular CLI Static
22

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

55
## Development server
66

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

1311
## Build
1412

15-
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.
16-
17-
## Running unit tests
18-
19-
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20-
21-
## Running end-to-end tests
22-
23-
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
24-
25-
## Further help
26-
27-
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).
13+
Run `npm run build` to build the project.
14+
The build artifacts will be stored in the `dist/` directory.
15+
run `npm run build:prod` flag for a production build.

angular.json

Lines changed: 91 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,94 @@
22
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
33
"version": 1,
44
"newProjectRoot": "projects",
5-
"projects": {}
6-
}
5+
"projects": {
6+
"static-html": {
7+
"projectType": "application",
8+
"schematics": {
9+
"@schematics/angular:component": {
10+
"style": "scss"
11+
}
12+
},
13+
"root": "projects/static-html",
14+
"sourceRoot": "projects/static-html/src",
15+
"prefix": "app",
16+
"architect": {
17+
"build": {
18+
"builder": "@angular-devkit/build-angular:browser",
19+
"options": {
20+
"outputPath": "dist/static-html",
21+
"index": "projects/static-html/src/index.html",
22+
"main": "projects/static-html/src/main.ts",
23+
"polyfills": "projects/static-html/src/polyfills.ts",
24+
"tsConfig": "projects/static-html/tsconfig.app.json",
25+
"aot": true,
26+
"assets": [
27+
"projects/static-html/src/favicon.ico",
28+
"projects/static-html/src/assets"
29+
],
30+
"styles": [
31+
"projects/static-html/src/styles.scss"
32+
],
33+
"scripts": []
34+
},
35+
"configurations": {
36+
"production": {
37+
"fileReplacements": [],
38+
"optimization": true,
39+
"outputHashing": "all",
40+
"sourceMap": false,
41+
"extractCss": true,
42+
"namedChunks": false,
43+
"extractLicenses": true,
44+
"vendorChunk": false,
45+
"buildOptimizer": true,
46+
"budgets": [
47+
{
48+
"type": "initial",
49+
"maximumWarning": "2mb",
50+
"maximumError": "5mb"
51+
},
52+
{
53+
"type": "anyComponentStyle",
54+
"maximumWarning": "6kb",
55+
"maximumError": "10kb"
56+
}
57+
]
58+
}
59+
}
60+
},
61+
"serve": {
62+
"builder": "@angular-devkit/build-angular:dev-server",
63+
"options": {
64+
"browserTarget": "static-html:build"
65+
},
66+
"configurations": {
67+
"production": {
68+
"browserTarget": "static-html:build:production"
69+
}
70+
}
71+
},
72+
"extract-i18n": {
73+
"builder": "@angular-devkit/build-angular:extract-i18n",
74+
"options": {
75+
"browserTarget": "static-html:build"
76+
}
77+
},
78+
"lint": {
79+
"builder": "@angular-devkit/build-angular:tslint",
80+
"options": {
81+
"tsConfig": [
82+
"projects/static-html/tsconfig.app.json"
83+
],
84+
"exclude": [
85+
"**/node_modules/**"
86+
]
87+
}
88+
}
89+
}
90+
}},
91+
"cli": {
92+
"analytics": "fc7225a9-dc2b-4b2a-a9a7-ad4d6246ca26"
93+
},
94+
"defaultProject": "static-html"
95+
}

0 commit comments

Comments
 (0)