Merge pull request #128 from lbryio/update-readme-webpack
Update setup instructions and watch.sh for Webpack
This commit is contained in:
commit
b78b644826
2 changed files with 4 additions and 5 deletions
|
@ -8,11 +8,10 @@ These steps will get you to change-reload-see:
|
||||||
|
|
||||||
- Install [LBRY](https://github.com/lbryio/lbry/releases)
|
- Install [LBRY](https://github.com/lbryio/lbry/releases)
|
||||||
- Install node and npm ([this gist may be useful](https://gist.github.com/isaacs/579814))
|
- Install node and npm ([this gist may be useful](https://gist.github.com/isaacs/579814))
|
||||||
- Run `./watch.sh` (this will `npm install` dependencies)
|
- Run `./watch.sh` (this will `npm install` dependencies). Changes made in `sass` and `js` will be auto compiled to `dist`
|
||||||
- Run `lbrynet-daemon --ui=/full/path/to/dist/`
|
- Run `lbrynet-daemon --ui=/full/path/to/dist/` to start LBRY
|
||||||
- Changes made in `js` and `sass` will be auto compiled to `dist`
|
- `lbry.call('configure_ui', {path: '/path/to/ui'})` can be used in JS console on web ui to switch ui path. This is also needed to trigger a reload after making changes to the UI.
|
||||||
- `lbrynet-daemon --branch=branchname` can be used to test remote branches
|
- `lbrynet-daemon --branch=branchname` can be used to test remote branches
|
||||||
- `lbry.call('configure_ui', {path: '/path/to/ui'})` can be used in JS console on web ui to switch ui path
|
|
||||||
- Occasionally refreshing the cache may be necessary for changes to show up in browser
|
- Occasionally refreshing the cache may be necessary for changes to show up in browser
|
||||||
|
|
||||||
## Common Issues
|
## Common Issues
|
||||||
|
|
2
watch.sh
2
watch.sh
|
@ -19,4 +19,4 @@ fi
|
||||||
$DIR/node_modules/.bin/node-sass --output $DIR/dist/css --sourcemap=none $DIR/scss/
|
$DIR/node_modules/.bin/node-sass --output $DIR/dist/css --sourcemap=none $DIR/scss/
|
||||||
$DIR/node_modules/.bin/node-sass --output $DIR/dist/css --sourcemap=none --watch $DIR/scss/ &
|
$DIR/node_modules/.bin/node-sass --output $DIR/dist/css --sourcemap=none --watch $DIR/scss/ &
|
||||||
|
|
||||||
$DIR/node_modules/.bin/babel --presets es2015,react --out-dir $DIR/dist/js/ --watch $DIR/js/
|
node_modules/.bin/webpack --progress --colors --watch
|
||||||
|
|
Loading…
Reference in a new issue