Skip to content

Commit 78bda84

Browse files
committed
feat(package): allow end-user to specify netlify-cms version
BREAKING CHANGE: Move `netlify-cms` from dependencies to devDependencies and peerDependencies Update readme
1 parent 4ed9bc8 commit 78bda84

File tree

3 files changed

+45
-14
lines changed

3 files changed

+45
-14
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
- [Meant to be used with nuxtent-module](https://github.com/nuxt-community/nuxtent-module), that allows nuxt to work with static content files
2323

2424
## Setup
25-
- Add `nuxt-netlify-cms` devDependency using yarn or npm to your project
25+
- Add `nuxt-netlify-cms` and `netlify-cms` devDependencies using yarn or npm to your project
2626

27-
`npm i -D nuxt-netlify-cms` OR `yarn add -D nuxt-netlify-cms`
27+
`npm i -D nuxt-netlify-cms netlify-cms` OR `yarn add -D nuxt-netlify-cms netlify-cms`
2828

2929
- Require `nuxt-netlify-cms` at the start of `nuxt.config.js`
3030

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@
2424
],
2525
"dependencies": {
2626
"js-yaml": "^3.9.1",
27-
"netlify-cms": "^0.5.0-beta.1",
2827
"style-loader": "^0.18.2"
2928
},
29+
"peerDependencies": {
30+
"netlify-cms": ">=0.4.0"
31+
},
3032
"devDependencies": {
3133
"babel-cli": "^6.26.0",
3234
"babel-eslint": "^7.2.3",
@@ -44,6 +46,7 @@
4446
"husky": "^0.14.3",
4547
"jest": "^20.0.4",
4648
"lint-staged": "^4.0.4",
49+
"netlify-cms": "^0.5.0-beta.1",
4750
"nuxt": "^1.0.0-rc8",
4851
"prettier": "^1.6.1",
4952
"request-promise-native": "^1.0.4",

yarn.lock

Lines changed: 39 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,8 +1175,8 @@ babel-preset-stage-3@^6.24.1:
11751175
babel-plugin-transform-object-rest-spread "^6.22.0"
11761176

11771177
babel-preset-vue-app@^1.2.1:
1178-
version "1.2.1"
1179-
resolved "https://registry.yarnpkg.com/babel-preset-vue-app/-/babel-preset-vue-app-1.2.1.tgz#2f6b71890a21a675019ca1db8d0da15bf017ba24"
1178+
version "1.3.0"
1179+
resolved "https://registry.yarnpkg.com/babel-preset-vue-app/-/babel-preset-vue-app-1.3.0.tgz#4b31f690a353c8735963e06927a072a0bb82126f"
11801180
dependencies:
11811181
babel-plugin-syntax-dynamic-import "^6.18.0"
11821182
babel-plugin-transform-object-rest-spread "^6.26.0"
@@ -1644,8 +1644,8 @@ chownr@~1.0.1:
16441644
resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.0.1.tgz#e2a75042a9551908bebd25b8523d5f9769d79181"
16451645

16461646
ci-info@^1.0.0:
1647-
version "1.0.0"
1648-
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.0.0.tgz#dc5285f2b4e251821683681c381c3388f46ec534"
1647+
version "1.0.1"
1648+
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.0.1.tgz#e5913b63f7e1fda8db99a3125d45cbabcde55ba9"
16491649

16501650
cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3:
16511651
version "1.0.4"
@@ -2806,8 +2806,8 @@ error-stack-parser@^2.0.0:
28062806
stackframe "^1.0.3"
28072807

28082808
es-abstract@^1.4.3, es-abstract@^1.5.1, es-abstract@^1.6.1, es-abstract@^1.7.0:
2809-
version "1.8.1"
2810-
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.8.1.tgz#fd85a3bdfa67786ce7be7e1584678e119cd70c04"
2809+
version "1.8.2"
2810+
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.8.2.tgz#25103263dc4decbda60e0c737ca32313518027ee"
28112811
dependencies:
28122812
es-to-primitive "^1.1.1"
28132813
function-bind "^1.1.1"
@@ -4002,7 +4002,11 @@ home-or-tmp@^2.0.0:
40024002
os-homedir "^1.0.0"
40034003
os-tmpdir "^1.0.1"
40044004

4005-
hosted-git-info@^2.1.4, hosted-git-info@^2.1.5, hosted-git-info@~2.4.2:
4005+
hosted-git-info@^2.1.4, hosted-git-info@^2.1.5, hosted-git-info@^2.4.2:
4006+
version "2.5.0"
4007+
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.5.0.tgz#6d60e34b3abbc8313062c3b798ef8d901a07af3c"
4008+
4009+
hosted-git-info@~2.4.2:
40064010
version "2.4.2"
40074011
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.4.2.tgz#0076b9f46a270506ddbaaea56496897460612a67"
40084012

@@ -5604,14 +5608,18 @@ minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.3, minimatch@^3.0.4:
56045608
dependencies:
56055609
brace-expansion "^1.1.7"
56065610

5607-
minimist@0.0.8, minimist@~0.0.1:
5611+
minimist@0.0.8:
56085612
version "0.0.8"
56095613
resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"
56105614

56115615
minimist@1.2.0, minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0:
56125616
version "1.2.0"
56135617
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
56145618

5619+
minimist@~0.0.1:
5620+
version "0.0.10"
5621+
resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf"
5622+
56155623
mississippi@~1.3.0:
56165624
version "1.3.0"
56175625
resolved "https://registry.yarnpkg.com/mississippi/-/mississippi-1.3.0.tgz#d201583eb12327e3c5c1642a404a9cacf94e34f5"
@@ -5782,13 +5790,20 @@ no-case@^2.2.0:
57825790
dependencies:
57835791
lower-case "^1.1.1"
57845792

5785-
node-fetch@1.6.3, node-fetch@^1.0.1:
5793+
node-fetch@1.6.3:
57865794
version "1.6.3"
57875795
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.6.3.tgz#dc234edd6489982d58e8f0db4f695029abcd8c04"
57885796
dependencies:
57895797
encoding "^0.1.11"
57905798
is-stream "^1.0.1"
57915799

5800+
node-fetch@^1.0.1:
5801+
version "1.7.2"
5802+
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.2.tgz#c54e9aac57e432875233525f3c891c4159ffefd7"
5803+
dependencies:
5804+
encoding "^0.1.11"
5805+
is-stream "^1.0.1"
5806+
57925807
node-gyp@~3.6.0:
57935808
version "3.6.2"
57945809
resolved "https://registry.yarnpkg.com/node-gyp/-/node-gyp-3.6.2.tgz#9bfbe54562286284838e750eac05295853fa1c60"
@@ -5974,13 +5989,22 @@ npm-install-checks@~3.0.0:
59745989
dependencies:
59755990
semver "^2.3.0 || 3.x || 4 || 5"
59765991

5977-
"npm-package-arg@^3.0.0 || ^4.0.0", "npm-package-arg@^3.0.0 || ^4.0.0 || ^5.0.0", "npm-package-arg@^4.0.0 || ^5.0.0", npm-package-arg@^4.1.1, npm-package-arg@~4.2.1:
5992+
"npm-package-arg@^3.0.0 || ^4.0.0", npm-package-arg@^4.1.1, npm-package-arg@~4.2.1:
59785993
version "4.2.1"
59795994
resolved "https://registry.yarnpkg.com/npm-package-arg/-/npm-package-arg-4.2.1.tgz#593303fdea85f7c422775f17f9eb7670f680e3ec"
59805995
dependencies:
59815996
hosted-git-info "^2.1.5"
59825997
semver "^5.1.0"
59835998

5999+
"npm-package-arg@^3.0.0 || ^4.0.0 || ^5.0.0", "npm-package-arg@^4.0.0 || ^5.0.0":
6000+
version "5.1.2"
6001+
resolved "https://registry.yarnpkg.com/npm-package-arg/-/npm-package-arg-5.1.2.tgz#fb18d17bb61e60900d6312619919bd753755ab37"
6002+
dependencies:
6003+
hosted-git-info "^2.4.2"
6004+
osenv "^0.1.4"
6005+
semver "^5.1.0"
6006+
validate-npm-package-name "^3.0.0"
6007+
59846008
npm-path@^2.0.2:
59856009
version "2.0.3"
59866010
resolved "https://registry.yarnpkg.com/npm-path/-/npm-path-2.0.3.tgz#15cff4e1c89a38da77f56f6055b24f975dfb2bbe"
@@ -9720,7 +9744,11 @@ whatwg-encoding@^1.0.1:
97209744
dependencies:
97219745
iconv-lite "0.4.13"
97229746

9723-
whatwg-fetch@>=0.10.0, whatwg-fetch@^1.0.0:
9747+
whatwg-fetch@>=0.10.0:
9748+
version "2.0.3"
9749+
resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.3.tgz#9c84ec2dcf68187ff00bc64e1274b442176e1c84"
9750+
9751+
whatwg-fetch@^1.0.0:
97249752
version "1.1.1"
97259753
resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-1.1.1.tgz#ac3c9d39f320c6dce5339969d054ef43dd333319"
97269754

0 commit comments

Comments
 (0)