Replace npm with yarn commands

This commit is contained in:
Vincent Taverna 2021-01-02 13:21:13 -05:00
parent c506420aae
commit afc4d32661
2 changed files with 7 additions and 7 deletions

View File

@ -83,7 +83,7 @@ To deploy to github pages, simply do the following:
- Run the standard deploy command
```sh
npm run deploy
yarn deploy
```
@ -92,11 +92,11 @@ npm run deploy
$ git clone https://github.com/[GITHUB_USERNAME]/[REPO_NAME].git
$ cd [REPO_NAME]
$ yarn
$ npm run develop
$ yarn develop
```
To test the CMS locally, you'll need run a production build of the site:
```
$ npm run build
$ yarn build
$ gatsby serve
```

View File

@ -4,14 +4,14 @@
"description": "A minimal, lightweight and mobile-first starter for creating blazing-fast static blogs",
"main": "n/a",
"scripts": {
"develop": "yarn run clean && gatsby develop",
"build": "yarn run clean && gatsby build",
"deploy": "yarn run clean && gatsby build --prefix-paths && gh-pages -d public",
"develop": "yarn clean && gatsby develop",
"build": "yarn clean && gatsby build",
"deploy": "yarn clean && gatsby build --prefix-paths && gh-pages -d public",
"clean": "rimraf .cache public",
"flow": "flow",
"lint:js": "eslint --cache --ext .js,.jsx .",
"lint:scss": "stylelint \"src/**/*.scss\"",
"lint": "concurrently \"yarn run lint:js\" \"yarn run lint:scss\" \"yarn flow\"",
"lint": "concurrently \"yarn lint:js\" \"yarn lint:scss\" \"yarn flow\"",
"test": "jest --config ./jest/jest-config.js",
"test:coverage": "jest --coverage --config ./jest/jest-config.js",
"test:watch": "jest --watch --config ./jest/jest-config.js"