From 3a79dbb02aa1e15e31f63170bdf3251f89a76f2c Mon Sep 17 00:00:00 2001 From: David Kaltschmidt Date: Fri, 29 May 2015 13:55:07 +0200 Subject: [PATCH] added linter config to build image, linter README --- client/Dockerfile | 2 +- client/README.md | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/client/Dockerfile b/client/Dockerfile index deac74957..8efe53933 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -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 diff --git a/client/README.md b/client/README.md index c4ed8e4c6..6b1bd9b09 100644 --- a/client/README.md +++ b/client/README.md @@ -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`.