Skip to content

Commit 8437b65

Browse files
yashintsLekoArts
andauthored
chore(docs): Remove --save from READMEs (#27032)
Co-authored-by: Lennart <[email protected]>
1 parent 52c69bd commit 8437b65

File tree

99 files changed

+112
-112
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+112
-112
lines changed

docs/blog/2017-02-21-1-0-progress-update-where-came-from-where-going/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ Themes (like plugins) will be published on npm. So soon, starting a new Gatsby
230230
blog will be as simple as:
231231

232232
```shell
233-
npm install --save gatsby-super-cool-theme
233+
npm install gatsby-super-cool-theme
234234
gatsby build --theme gatsby-super-cool-theme
235235
```
236236

docs/blog/2017-07-19-creating-a-blog-with-gatsby/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ with the following command:
8484
yarn add gatsby-plugin-catch-links gatsby-plugin-react-helmet
8585
```
8686

87-
You will be using [yarn][yarn], but npm can just as easily be used with `npm i --save [deps]`.
87+
You will be using [yarn][yarn], but npm can just as easily be used with `npm install [deps]`.
8888

8989
After installing each of these functional plugins, edit
9090
`gatsby-config.js`, which Gatsby loads at build-time to implement the exposed

docs/blog/2017-10-01-migrating-my-blog-from-hexo-to-gatsby/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ Let's fix that. We need to teach Gatsby how to query the file system. Luckily
181181
this is so common it's been done for you. Install the file system source plugin:
182182

183183
```shell
184-
npm i --save gatsby-source-filesystem
184+
npm install gatsby-source-filesystem
185185
```
186186

187187
Now modify `gatsby-config.js` to both use the plugin and tell it what directory
@@ -230,7 +230,7 @@ files this is all you will need. But if you want to render markdown files as
230230
HTML you will need another plugin. Let's add that now:
231231

232232
```shell
233-
npm i --save gatsby-transformer-remark
233+
npm install gatsby-transformer-remark
234234
```
235235

236236
As before, add it to the `plugins` field in `gatsby-config.js`:

docs/blog/2017-10-17-building-i18n-with-gatsby/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ implementation in other projects.
7474

7575
To get started, you'll need to install a few packages:
7676

77-
`npm i -S i18next i18next-xhr-backend i18next-browser-languagedetector react-i18next`
77+
`npm install i18next i18next-xhr-backend i18next-browser-languagedetector react-i18next`
7878

7979
## Setting up
8080

docs/blog/2018-06-07-build-a-gatsby-blog-using-the-cosmic-js-source-plugin/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ In our case, we are using [Cosmic](https://cosmicjs.com). We need a source plugi
6969
Install the source plugin with the following command:
7070

7171
```shell
72-
npm install --save gatsby-source-cosmicjs
72+
npm install gatsby-source-cosmicjs
7373
```
7474

7575
We're going to use a couple other plugins later, so let's install them here:
7676

7777
```shell
78-
npm install --save gatsby-plugin-offline gatsby-source-filesystem
78+
npm install gatsby-plugin-offline gatsby-source-filesystem
7979
```
8080

8181
These plugins need some configuration, so let's replace the content of `gatsby-config.js` with:
@@ -424,7 +424,7 @@ Restart the Gatsby server, then visit the detail page by clicking on URLs displa
424424

425425
In addition to the code covered in this tutorial, we also implemented `src/components/bio.js` to display author information & `src/layouts/index.js` to [create a generic layout](/tutorial/part-three/#our-first-layout-component) for the blog.
426426

427-
The source code for this tutorial is available [on GitHub](https://github.com/cosmicjs/gatsby-blog-cosmicjs). To see it live, clone the repository, and run (`cd gatsby-blog-cosmicjs && npm i && npm run develop`) or check out the [demo on Netlify](https://gatsby-blog-cosmicjs.netlify.app/).
427+
The source code for this tutorial is available [on GitHub](https://github.com/cosmicjs/gatsby-blog-cosmicjs). To see it live, clone the repository, and run (`cd gatsby-blog-cosmicjs && npm install && npm run develop`) or check out the [demo on Netlify](https://gatsby-blog-cosmicjs.netlify.app/).
428428

429429
The static website generated by Gatsby can easily be published on services like Netlify, S3/CloudFront, GitHub Pages, GitLab Pages, Heroku, etc.
430430

docs/blog/2018-1-18-strapi-and-gatsby/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ _Requirements: please make sure [Node 10](https://nodejs.org/en/download/) (or h
100100
Install Strapi using npm:
101101

102102
```shell
103-
npm i strapi@alpha -g
103+
npm install strapi@alpha -g
104104
```
105105

106106
_Note: Strapi v3 is still an alpha version, but it will be fine for this tutorial._
@@ -256,7 +256,7 @@ In this example, we are using Strapi. Obviously, we are going to need a source p
256256
Let's install it:
257257

258258
```shell
259-
npm install --save gatsby-source-strapi
259+
npm install gatsby-source-strapi
260260
```
261261

262262
This plugin needs to be configured. Replace the content of `gatsby-config.js` with:

docs/blog/2018-10-26-export-a-drupal-site-to-gatsby/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ To do this yourself, you'll build a simple blog using the excellent [gatsby-star
2121
```shell
2222
gatsby new gatsby-blog https://github.com/gatsbyjs/gatsby-starter-blog
2323
git init # so you can keep track of the changes
24-
npm i # to install regular gastby requirements
25-
npm i --save-dev better-sqlite3 # to add an sqlite javascript client
24+
npm install # to install regular gastby requirements
25+
npm install --save-dev better-sqlite3 # to add an sqlite javascript client
2626
```
2727

2828
The useful commands on a sqlite3 command line to explore are `.tables` to see all tables :) and `.schema table_name` to see information about a specific table. Oh! and `.help` to know more.

docs/blog/2018-12-19-kentico-cloud-and-gatsby-take-you-beyond-static-websites/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Kentico Cloud also makes it easy for editors to understand the hierarchical stru
3838
For us developers, the headless CMS tools are very important. Apart from great technical documentation and many SDKs (including [JavaScript](http://bit.ly/2Gsq0Tb)), Kentico Cloud has a [source plugin for Gatsby](http://bit.ly/2S8ZzTO). If you decide to build a static site like I did, it's just another package that you install via npm.
3939

4040
```shell
41-
npm install --save gatsby-source-kentico-cloud
41+
npm install gatsby-source-kentico-cloud
4242
```
4343

4444
which updates packages.json

docs/blog/2019-01-25-blazing-fast-development-with-gatsby-and-sanity-io/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The Gatsby source plugin for Sanity comes with the ability to easily overlay dra
2424
Add the source plugin to your Gatsby project:
2525

2626
```shell
27-
npm install --save gatsby-source-sanity
27+
npm install gatsby-source-sanity
2828
```
2929

3030
The source plugin gives you a comprehensive GraphQL API in Gatsby for your structured content from Sanity. We strongly recommend using the [GraphiQL explorer](/docs/running-queries-with-graphiql/) to test queries and familiarize yourself with the schema documentation. It's super useful!

docs/blog/2019-03-18-releasing-new-schema-customization/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Two weeks ago, we announced our plans for a [new schema customization API](/blog
1111
First, install the latest and greatest version of `gatsby`, like so:
1212

1313
```shell
14-
npm install gatsby --save
14+
npm install gatsby
1515
```
1616

1717
Next, continue reading below to see if any of the great, new features we've enabled scratch a particular itch. We feel very confident they will 💜

0 commit comments

Comments
 (0)