Skip to content

Commit 4e8e9c0

Browse files
committed
docs: add some steps for configuring a new static app
1 parent e3090d9 commit 4e8e9c0

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,24 @@ The app will automatically reload if you change any of the source files.
1313
Run `npm run build` to build the project.
1414
The build artifacts will be stored in the `dist/` directory.
1515
run `npm run build:prod` flag for a production build.
16+
17+
## Key Configuration Steps
18+
19+
1. Create a workspace without an app:
20+
```shell script
21+
ng new --create-application=false angular-cli-static
22+
```
23+
1. Create a minimal app:
24+
```shell script
25+
ng g app --style=scss --minimal=true --routing=false --skip-tests=true static-html
26+
```
27+
1. Comment out `zone.js` import in [polyfills.ts](polyfills.ts)
28+
1. In [angular.json](angular.json) clear out `"fileReplacements": []`
29+
1. Remove `app/`, `environments/`
30+
1. Remove most of the Angular dependencies from [package.json](package.json)'s `dependencies`
31+
other than `@angular/core`, `@angular/compiler`, and `rxjs`
32+
1. Remove `codelyzer` and `@angular/language-service` from [package.json](package.json)'s `devDependencies`
33+
1. Remove `codelyzer` from `rulesDirectory` and remove all of the Codelyzer rules from
34+
the workspace [tslint.json](tslint.json)
35+
1. Remove `directive-selector` and `component-selector` rules
36+
from your app's [tslint.json](projects/static-html/tslint.json)

0 commit comments

Comments
 (0)