Merge pull request #856 from vinnymac/feature/simplify

Replace npm with yarn commands
This commit is contained in:
Alexander Shelepenok 2021-01-10 03:05:51 +03:00 committed by GitHub
commit d27a96db21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 - Run the standard deploy command
```sh ```sh
npm run deploy yarn deploy
``` ```
@ -92,11 +92,11 @@ npm run deploy
$ git clone https://github.com/[GITHUB_USERNAME]/[REPO_NAME].git $ git clone https://github.com/[GITHUB_USERNAME]/[REPO_NAME].git
$ cd [REPO_NAME] $ cd [REPO_NAME]
$ yarn $ yarn
$ npm run develop $ yarn develop
``` ```
To test the CMS locally, you'll need run a production build of the site: To test the CMS locally, you'll need run a production build of the site:
``` ```
$ npm run build $ yarn build
$ gatsby serve $ gatsby serve
``` ```

View File

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