Skip to content

Commit 7491c0d

Browse files
author
Dimitri Kopriwa
committed
feat(react-styleguidist): Upgrade react-styleguidist v8 to v9
Due to styleguidist/react-styleguidist#1278 , we had to set in dependencies [email protected] and [email protected] due to peer dependency issue with npm BREAKING CHANGE: CodeMirror context is unique per example, see https://github.com/styleguidist/react-styleguidist/releases/tag/v9.0.0 for more info BREAKING CHANGE: We do not need to list react-styleguidist in our dependency
1 parent 37ca04a commit 7491c0d

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

.ncurc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
const { createConfig } = require('@rollup-umd/ncu');
2+
module.exports = createConfig();

.travis.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,8 @@ jobs:
7070
node_js:
7171
- 'lts/*'
7272
script:
73-
- git fetch --tags
74-
- git checkout refs/tags/$(git describe --tags `git rev-list --tags --max-count=1`)
75-
- npm install
76-
- chmod +x styleguide/prepare.sh
77-
- styleguide/prepare.sh
78-
- npm run styleguide:build
73+
- targetVersion=$(git describe --tags `git rev-list --tags --max-count=1`)
74+
- npx @rollup-umd/deploy --target-version ${targetVersion}
7975
deploy:
8076
- provider: pages
8177
skip_cleanup: true

docs/getting-started/configuration/setup.js.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ It is automatically used during styleguide documentation startup.
44

55
For example, you can make `<Table />`, `<Tr />`, `<Td />` available in your examples by having in your `styleguide/setup.js`:
66

7-
```js static
7+
```javascript
88
import Table from '@bootstrap-styled/v4/lib/Table';
99
import Tr from '@bootstrap-styled/v4/lib/Table/Tr';
1010
import Td from '@bootstrap-styled/v4/lib/Table/Td';

docs/getting-started/documenting/jsdoc-demo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
This is how we have generated the [createConfig](#configuration) documentation:
22

3-
```js static
3+
```javascript
44
/**
55
* @public
66
* @description You need to import `createConfig` into your styleguidist configuration file (generally `styleguide.config.js`).

docs/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[![Build Status](https://travis-ci.org/rollup-umd/documentation.svg?branch=master)](https://travis-ci.org/rollup-umd/documentation) [![npm Version](https://img.shields.io/npm/v/@rollup-umd/documentation.svg?style=flat)](https://www.npmjs.com/package/@rollup-umd/documentation) [![License](https://img.shields.io/npm/l/@rollup-umd/documentation.svg?style=flat)](https://www.npmjs.com/package/@rollup-umd/documentation) [![npm Version](https://img.shields.io/node/v/@rollup-umd/documentation.svg?style=flat)](https://www.npmjs.com/package/@rollup-umd/documentation) [![Module formats](https://img.shields.io/badge/module%20formats-umd%2C%20cjs%2C%20esm-green.svg?style=flat)](https://www.npmjs.com/package/@rollup-umd/documentation)
22

3-
Extension for react-styleguidist, Featured generated react-documentation, generated jsdom documentation, default react-styleguidist configuration, layout package with auto-configuration, internals layouts, configured CI
3+
$PACKAGE_DESCRIPTION

docs/layout-theme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ We use [Bootstrap Styled chart](https://bootstrap-styled.github.io/bootstrap-sty
22

33
You can change the theme by wrapping any Layout with:
44

5-
```js static
5+
```javascript
66
const theme = require('$PACKAGE_NAME/lib/theme');
77

88
export default (props) => (

package.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"jsdoc": "npm run jsdoc-documentation -- --file",
3535
"prestyleguide": "npm run build && npm run jsdoc",
3636
"styleguide": "styleguidist server",
37-
"prestyleguide:build": "npm run build && npm run jsdoc",
37+
"prestyleguide:build": "npm run build",
3838
"styleguide:build": "styleguidist build"
3939
},
4040
"repository": {
@@ -176,12 +176,13 @@
176176
"@babel/plugin-transform-runtime": "^7.3.4",
177177
"@babel/preset-env": "^7.3.4",
178178
"@babel/preset-react": "^7.0.0",
179+
"@rollup-umd/ncu": "^1.0.5",
179180
"@semantic-release/changelog": "^3.0.2",
180181
"@semantic-release/git": "^7.0.8",
181182
"@semantic-release/github": "^5.2.10",
182183
"@semantic-release/npm": "^5.1.4",
183184
"babel-eslint": "^10.0.1",
184-
"babel-jest": "^24.1.0",
185+
"babel-jest": "^24.3.1",
185186
"babel-loader": "^8.0.5",
186187
"babel-merge": "^2.0.1",
187188
"babel-plugin-add-module-exports": "^1.0.0",
@@ -197,23 +198,24 @@
197198
"eslint-plugin-import": "^2.16.0",
198199
"eslint-plugin-jsx-a11y": "^6.2.1",
199200
"eslint-plugin-react": "^7.12.4",
200-
"istanbul-api": "2.1.1",
201-
"istanbul-reports": "2.1.1",
202-
"jest-cli": "^24.1.0",
201+
"istanbul-api": "^2.1.1",
202+
"istanbul-reports": "^2.1.1",
203+
"jest-cli": "^24.3.1",
203204
"jest-sonar-reporter": "^2.0.0",
204205
"lint-staged": "^8.1.5",
205206
"pre-commit": "^1.2.2",
206207
"raf": "^3.4.1",
207-
"react-styleguidist": "^9.0.3",
208208
"react-test-renderer": "^16.8.4",
209209
"semantic-release": "^15.13.3",
210-
"terser": "3.16.1",
211210
"toctoc": "^0.3.2",
212211
"webpack": "^4.29.6"
213212
},
214213
"dependencies": {
215214
"@babel/runtime": "^7.3.4",
216-
"@bootstrap-styled/rsg-components": "^2.0.3",
215+
"acorn": "^6.0.2",
216+
"acorn-jsx": "^5.0.0",
217+
"react-styleguidist": "^9.0.4",
218+
"@bootstrap-styled/rsg-components": "^2.0.4",
217219
"css-loader": "^2.1.1",
218220
"documentation": "^9.3.0",
219221
"exports-loader": "^0.7.0",

0 commit comments

Comments
 (0)