Skip to content

Commit 34e1232

Browse files
committed
ref/ move how to install with ng add in HOW_TO.md
1 parent d533e49 commit 34e1232

File tree

1 file changed

+5
-26
lines changed

1 file changed

+5
-26
lines changed

Diff for: README.md

+5-26
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ This sample project runs in both modes (web and electron). To make this work, **
8282
3rd party libraries used in electron's renderer process (like angular) have to be added in `dependencies` of `package.json`. \
8383
Please check `providers/electron.service.ts` to watch how conditional import of libraries has to be done when using NodeJS / 3rd party libraries in renderer context (i.e. Angular).
8484

85+
## Add a dependency with ng-add
86+
87+
You may encounter some difficulties with `ng-add` because this project doesn't use the defaults `@angular-builders`. \
88+
For example you can find [here](HOW_TO.md) how to install Angular-Material with `ng-add`.
89+
8590
## Browser mode
8691

8792
Maybe you only want to execute the application in the browser with hot reload? Just run `npm run ng:serve:web`.
@@ -115,32 +120,6 @@ E2E Test scripts can be found in `e2e` folder.
115120
Note: To make it work behind a proxy, you can add this proxy exception in your terminal
116121
`export {no_proxy,NO_PROXY}="127.0.0.1,localhost"`
117122

118-
## How to install Angular Material
119-
120-
First add Angular Material using `ng add` command:
121-
122-
``` bash
123-
ng add @angular/material
124-
```
125-
You will get the following questions:
126-
127-
``` bash
128-
? Choose a prebuilt theme name, or "custom" for a custom theme: *Choose any theme you like here*
129-
? Set up global Angular Material typography styles? *Yes*
130-
? Set up browser animations for Angular Material? *Yes*
131-
```
132-
Angular Material will start installing, but you will get the following error after installation:
133-
134-
``` bash
135-
Your project is not using the default builders for "build". The Angular Material schematics cannot add a theme to the workspace configuration if the builder has been changed.
136-
```
137-
*No need to Panic!* Just add your desired theme in style.scss:
138-
139-
``` bash
140-
import '@angular/material/prebuilt-themes/indigo-pink.css'
141-
```
142-
Angular Material Library is now installed in your project.
143-
144123
## Debug with VsCode
145124

146125
[VsCode](https://code.visualstudio.com/) debug configuration is available! In order to use it, you need the extension [Debugger for Chrome](https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome).

0 commit comments

Comments
 (0)