Merge pull request #240 from Wick/package.json-updates
Package.json updates: Windows & yarn
This commit is contained in:
commit
fd85cd5b60
3 changed files with 7469 additions and 4 deletions
17
README.md
17
README.md
|
@ -32,8 +32,21 @@
|
||||||
- **This repo will not run locally if you do not also have the LBRY app/daemon and the [web-daemon](https://github.com/lbryio/web-daemon) running.**
|
- **This repo will not run locally if you do not also have the LBRY app/daemon and the [web-daemon](https://github.com/lbryio/web-daemon) running.**
|
||||||
- When running locally and completing the tipping example in Playground, the LBC donated to a creator comes from _your_ LBC balance. Otherwise, the example will fail. On production, the donated LBC comes from LBRY.
|
- When running locally and completing the tipping example in Playground, the LBC donated to a creator comes from _your_ LBC balance. Otherwise, the example will fail. On production, the donated LBC comes from LBRY.
|
||||||
|
|
||||||
## Installation
|
## Local Installation
|
||||||
`npm i`
|
|
||||||
|
### npm
|
||||||
|
```bash
|
||||||
|
npm install
|
||||||
|
```
|
||||||
|
|
||||||
|
### Yarn
|
||||||
|
|
||||||
|
There is a yarn.lock file, you can thus use yarn to install a guaranteed working configuration of packages. This is generally a lot faster to install and more stable. Yarn as a CLI is not necessarily more stable than npm and as such, it's optional. Install yarn here: https://yarnpkg.com/en/docs/install
|
||||||
|
|
||||||
|
Then
|
||||||
|
```bash
|
||||||
|
yarn install
|
||||||
|
```
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
`npm run watch` and visit [localhost:8080](http://localhost:8080)
|
`npm run watch` and visit [localhost:8080](http://localhost:8080)
|
||||||
|
|
|
@ -69,7 +69,7 @@
|
||||||
"updates": "^6.2.1"
|
"updates": "^6.2.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "10.2.x"
|
"node": ">=10.2 <10.15.1"
|
||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
"hooks": {
|
"hooks": {
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"css": "sass --load-path=node_modules --update app/sass:app/dist --style compressed",
|
"css": "sass --load-path=node_modules --update app/sass:app/dist --style compressed",
|
||||||
"format": "eslint '**/*.js' --fix --ignore-pattern '/app/dist/'",
|
"format": "eslint \"**/*.js\" --fix --ignore-pattern '/app/dist/'",
|
||||||
"start": "npm run css && npm i && NODE_ENV=production node index.js",
|
"start": "npm run css && npm i && NODE_ENV=production node index.js",
|
||||||
"test": "run-s test:*",
|
"test": "run-s test:*",
|
||||||
"test:dependencies": "updates --update ./ --exclude fastify,prismjs",
|
"test:dependencies": "updates --update ./ --exclude fastify,prismjs",
|
||||||
|
|
Loading…
Reference in a new issue