added linter config to build image, linter README

This commit is contained in:
David Kaltschmidt
2015-05-29 13:55:07 +02:00
parent a2d9f60f66
commit 3a79dbb02a
2 changed files with 11 additions and 4 deletions

View File

@@ -14,6 +14,6 @@ RUN npm install -g gulp
ADD package.json /home/weave/
RUN npm install
ADD gulpfile.js webpack.config.js /home/weave/
ADD gulpfile.js webpack.config.js .eslintrc /home/weave/
# For instructions on running this container, consult the toplevel Makefile

View File

@@ -2,7 +2,14 @@
## Getting Started
- Install: `npm install`
- Run `gulp` for building to the `dist` directory or `gulp serve` to serve the UI via a webserver
- Develop using `gulp watch` for automatic code reload
- Setup: `npm install`
- Build: `gulp build --release`, output will be in `build/`
- Develop: `gulp sync` and then open `http://localhost:3000/`
To see a topology, `../app/app` needs to be running, as well as a probe.
## Coding
This directory has a `.eslintrc`, make sure your editor supports linter hints.
To run a linter, you also run `gulp lint`.