Skip to content

Commit 8d4f6b5

Browse files
committed
added broccoli-timepiece watcher
1 parent 570d1bb commit 8d4f6b5

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

README.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,34 @@ bower install
2222

2323
## Usage
2424

25+
26+
* fast processing in memory:
27+
2528
```
26-
$ broccoli serve
29+
broccoli serve
2730
```
2831

29-
Open `http://localhost:4200`
32+
* with additional [LiveReload](https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei):
33+
34+
```
35+
broccoli serve --live-reload-port 35729
36+
```
3037

31-
If you like to generate mangled, compressed, production build
38+
* with watcher and generating files:
3239

3340
```
34-
$ BROCCOLI_ENV=production broccoli build dist
35-
$ http-server dist/
41+
broccoli-timepiece dist
42+
http-server dist/ -p 4200
3643
```
3744

38-
and open `http://localhost:8080`
45+
Open `http://localhost:4200`
46+
47+
48+
* building files for production (minified, mangled and compressed):
49+
50+
```
51+
BROCCOLI_ENV=production broccoli build dist
52+
```
3953

4054
Test:
4155

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-es7",
3-
"version": "0.0.9",
3+
"version": "0.0.10",
44
"description": "Example of using React + Reflux + router + ES6 with experimental ES7 syntax + Jest + Semantic-UI",
55
"main": "src/index.js",
66
"scripts": {
@@ -36,6 +36,7 @@
3636
"broccoli-gzip": "^0.2.0",
3737
"broccoli-merge-trees": "^0.2.1",
3838
"broccoli-sass": "^0.3.3",
39+
"broccoli-timepiece": "^0.3.0",
3940
"broccoli-uglify-js": "^0.1.3",
4041
"browserify": "^8.0.1",
4142
"http-server": "^0.7.4",

0 commit comments

Comments
 (0)