Skip to content

Commit 70bcd85

Browse files
committed
switch to npm
1 parent bdff259 commit 70bcd85

2 files changed

Lines changed: 6 additions & 9347 deletions

File tree

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Mac:
1313

1414
```bash
1515
$ brew install node
16-
$ brew install yarn # optional, you can also use npm
1716
```
1817

1918
Linux:
@@ -31,7 +30,7 @@ You can download node from http://nodejs.org
3130
### Install dependancies
3231

3332
```
34-
$ yarn install
33+
$ npm install
3534
```
3635

3736
## Configure
@@ -45,13 +44,13 @@ You can create a `config/local.js` file to point to the corpus service you want
4544
To turn on the server:
4645

4746
```bash
48-
$ yarn watch
47+
$ npm run watch
4948
```
5049

5150
To develop offline with fixture data:
5251

5352
```bash
54-
$ OFFLINE=true yarn start --offline
53+
$ OFFLINE=true npm start --offline
5554
```
5655

5756
Then open https://localhost:3182 and accept the security certificate warning since you are developing locally with a self signed certificate.
@@ -126,7 +125,7 @@ Redux server side render is based on from [mz026](https://github.com/mz026/unive
126125
- [Webpack](https://webpack.github.io/)@2.2
127126
- [Babel](https://babeljs.io/)@6
128127
- Express as isomorphic server
129-
- `yarn` as package manager
128+
- `npm` as package manager
130129

131130

132131
### Testing:
@@ -152,14 +151,14 @@ To test your production build:
152151

153152
```bash
154153
$ gulp build
155-
$ NODE_ENV=production yarn start
154+
$ NODE_ENV=production npm start
156155
```
157156

158157
## Deployment:
159158

160159
To deploy this app to production environment:
161160

162-
- Run `$ NODE_ENV=production yarn install` on server
161+
- Run `$ NODE_ENV=production npm install` on server
163162
- After the installation above, `postinstall` script will run automatically, building front-end related assets and rev-ed server code under `dist/` folder.
164163

165164
- Kick off the server with:

0 commit comments

Comments
 (0)