Skip to content

Commit a90be00

Browse files
andrey-gitfabaff
authored andcommitted
Update frontend development instructions (home-assistant#3912)
* Update frontend development instructions * Update frontend.markdown
1 parent b105b22 commit a90be00

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

source/developers/frontend.markdown

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,24 @@ $ git push -u <remote name> HEAD
7979

8080
## {% linkable_title Development %}
8181

82-
While you are developing, you need to have gulp running to watch the source files for changes and build when necessary.
82+
If you are changing `html` files under `/src` or `/panels` - just reload the page in your browser to see changes.
83+
If you are changing javascript files under `/js` you need to have gulp running to watch the source files for changes and build when necessary.
8384

8485
```bash
8586
$ yarn run dev-watch
8687
```
8788

88-
The source code for the frontend can be found in two different directories:
89+
The source code for the frontend can be found in different directories:
8990

9091
- UI: `/home-assistant-polymer/src/`
9192
- Panels: `/home-assistant-polymer/panels/`
93+
- Javascript code: `/home-assistant-polymer/js/`
9294

9395
# {% linkable_title Building the Polymer frontend %}
9496

95-
Building a new version of the frontend is as simple as running `script/build_frontend`.
97+
Building a new version of the frontend is as simple as running `script/build_frontend`.
98+
To use a built version package it: `python setup.py sdist`
99+
Install it: `pip3 install dist/home-assistant-frontend-xxxxxxxx.0.tar.gz --upgrade`
100+
Run Home Assistant without trying to reinstall production package: `hass --skip-pip`
96101

97102
[hass-polymer]: https://github.com/home-assistant/home-assistant-polymer

0 commit comments

Comments
 (0)