Skip to content

Commit

Permalink
[v2] mime dependencies (#5602)
Browse files Browse the repository at this point in the history
* Recreate lockfile

* Update dependencies that depend on mime

* Move less to a peer dependency

* Move node-sass to a peer dependency

* Update lockfile

* Update README.md

* Include node-sass in the sass example site
  • Loading branch information
m-allanson authored May 31, 2018
1 parent 82daa26 commit e5f9d8b
Show file tree
Hide file tree
Showing 8 changed files with 1,000 additions and 1,116 deletions.
1 change: 1 addition & 0 deletions examples/using-sass/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"gatsby-plugin-google-analytics": "next",
"gatsby-plugin-offline": "next",
"gatsby-plugin-sass": "next",
"node-sass": "^4.9.0",
"react": "^16.3.0",
"react-dom": "^16.3.0",
"tachyons-sass": "^4.7.1"
Expand Down
9 changes: 7 additions & 2 deletions packages/gatsby-plugin-less/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Provides drop-in support for Less stylesheets

## Install

`yarn add gatsby-plugin-less`
`npm install --save less gatsby-plugin-less`

## How to use

Expand Down Expand Up @@ -61,7 +61,12 @@ plugins: [

### v2.0.0

`theme` option has been removed. You can pass configuration object to less-loader:
- `less` is moved to a peer dependency. Installing the package
alongside `gatsby-plugin-less` is now required. Use `npm install --save less`

- support Gatsby v2 only

- `theme` option has been removed. You can pass configuration object to less-loader:

```diff
plugins: [
Expand Down
4 changes: 2 additions & 2 deletions packages/gatsby-plugin-less/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
},
"dependencies": {
"@babel/runtime": "7.0.0-beta.47",
"less": "^2.7.2",
"less-loader": "^4.1.0"
},
"devDependencies": {
Expand All @@ -25,7 +24,8 @@
"license": "MIT",
"main": "index.js",
"peerDependencies": {
"gatsby": ">1.0.0 || >2.0.0-alpha"
"gatsby": ">2.0.0",
"less": ">=3.0.0"
},
"repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-less",
"scripts": {
Expand Down
14 changes: 13 additions & 1 deletion packages/gatsby-plugin-sass/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Provides drop-in support for SASS/SCSS stylesheets

## Install

`npm install --save gatsby-plugin-sass`
`npm install --save node-sass gatsby-plugin-sass`

## How to use

Expand Down Expand Up @@ -59,3 +59,15 @@ plugins: [
},
]
```


## Breaking changes history

<!-- Please keep the breaking changes list ordered with the newest change at the top -->

### v2.0.0

- `node-sass` is moved to a peer dependency. Installing the package
alongside `gatsby-plugin-sass` is now required. Use `npm install --save node-sass`

- support Gatsby v2 only
6 changes: 3 additions & 3 deletions packages/gatsby-plugin-sass/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
},
"dependencies": {
"@babel/runtime": "7.0.0-beta.47",
"node-sass": "^4.5.2",
"sass-loader": "^6.0.7"
"sass-loader": "^7.0.1"
},
"devDependencies": {
"@babel/cli": "7.0.0-beta.47",
Expand All @@ -26,7 +25,8 @@
"license": "MIT",
"main": "index.js",
"peerDependencies": {
"gatsby": "^2.0.0-0"
"gatsby": "^2.0.0-0",
"node-sass": "^4.9.0"
},
"readme": "README.md",
"repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-sass",
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-transformer-documentationjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"dependencies": {
"@babel/runtime": "7.0.0-beta.47",
"documentation": "^4.0.0-rc.1"
"documentation": "^7.1.0"
},
"devDependencies": {
"@babel/cli": "7.0.0-beta.47",
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"style-loader": "^0.19.1",
"type-of": "^2.0.1",
"uglifyjs-webpack-plugin": "^1.2.4",
"url-loader": "^0.6.2",
"url-loader": "^1.0.1",
"uuid": "^3.1.0",
"v8-compile-cache": "^1.1.0",
"webpack": "^4.4.1",
Expand Down
Loading

0 comments on commit e5f9d8b

Please sign in to comment.