Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
0a477a6
docs: Add more funding options
sapegin Oct 13, 2021
77a2a2e
fix: Remove `is-directory`, use `fs` module directly (#1897)
visualfanatic Jan 10, 2022
48e98b8
chore: Add npm 'cache' to Node.js workflow (#1898)
oscard0m Jan 10, 2022
54be33b
chore: Add npm 'cache' to 'release' workflow (#1901)
oscard0m Jan 10, 2022
9114b4a
docs: Fix code block formatting in Maintenance.md (#1908)
andrewkshim Jan 10, 2022
7d62618
chore: Add npm 'cache' to 'danger' workflow (#1900)
oscard0m Jan 10, 2022
6ca3c4c
chore: Add npm 'cache' to 'release' workflow (#1899)
oscard0m Jan 10, 2022
6415cb6
Build(deps): Bump url-parse from 1.4.7 to 1.5.3 (#1896)
dependabot[bot] Jan 10, 2022
92518df
feat: Webpack 5 support (#1903)
juanca Jan 27, 2022
c66b152
Build(deps): Bump prismjs in /examples/styled-components (#1913)
dependabot[bot] Jan 27, 2022
6d4c1e7
Build(deps): Bump follow-redirects in /examples/basic (#1916)
dependabot[bot] Jan 27, 2022
abfc18e
Build(deps): Bump follow-redirects in /examples/sections (#1917)
dependabot[bot] Jan 27, 2022
4861363
Build(deps): Bump follow-redirects in /examples/express (#1919)
dependabot[bot] Jan 27, 2022
d486074
Build(deps): Bump follow-redirects in /examples/customised (#1920)
dependabot[bot] Jan 27, 2022
7f4d1fa
Build(deps): Bump follow-redirects in /examples/preact (#1921)
dependabot[bot] Jan 27, 2022
2c855fa
Build(deps): Bump follow-redirects in /examples/react-native (#1924)
dependabot[bot] Jan 27, 2022
e630725
Build(deps): Bump browserslist in /examples/webpack (#1927)
dependabot[bot] Jan 27, 2022
4c55077
Build(deps): Bump ua-parser-js in /examples/webpack (#1928)
dependabot[bot] Jan 27, 2022
a460fcc
feat: Upgrade to Webpack 5 (#1996)
ThomasRoest Sep 5, 2022
51db5e1
docs: Move ads to the top of the sidebar, fix refreshing on navigation 📢
sapegin Sep 15, 2022
cfd8458
chore: Update lock files
sapegin Sep 15, 2022
80b5e84
chore: Try to remove Netlify config to fix the site build
sapegin Sep 15, 2022
f1a0c21
fix: ensure devserver client options are configurable (#2034)
dannobytes Oct 6, 2022
374acc5
Upgrade to React 17 (#2037)
ThomasRoest Oct 14, 2022
5e6f5cf
docs: Update link to commit convention
sapegin Oct 18, 2022
2ba612a
Replace enzyme with React testing library (#2086)
ThomasRoest Dec 13, 2022
310b08a
Upgrade to React 18 (#2087) (#2110)
ThomasRoest Feb 10, 2023
a31450e
update node version release workflow step (#2123)
ThomasRoest Feb 12, 2023
9e37850
feat: upgrade types and create release React 18 upgrade (#2124)
ThomasRoest Feb 13, 2023
0802ffb
fix: update peer deps (#2125)
ThomasRoest Feb 13, 2023
540f00e
Fix preview error handling (#2158)
ThomasRoest Jan 19, 2024
e81b3da
Bump node (#2159)
ThomasRoest Jan 19, 2024
5574044
fix: remove some unnecessary ignores (#2160)
ThomasRoest Jan 19, 2024
9886b64
fix: replace deprecated defaultProps
ThomasRoest Jun 20, 2024
3ae63b6
docs: Add book link
sapegin Oct 30, 2024
c223f9a
fix: prevent unnecessary wrapping of single line jsx elements (#2183)
ThomasRoest Jan 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
open_collective: styleguidist
github: sapegin
ko_fi: sapegin
custom: https://www.buymeacoffee.com/sapegin
1 change: 1 addition & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: npm

- run: npm ci
- run: npm run test:coverage -- --runInBand
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/danger-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: npm
- uses: danger/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: npm

- run: npm ci
- run: npm run lint
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
node-version: '20'
cache: npm

- run: npm ci

Expand Down
2 changes: 2 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ React Styleguidist is a component development environment with hot reloaded dev

![React Styleguidist in action](https://user-images.githubusercontent.com/1703219/74945569-51c6ad00-543b-11ea-8351-f4d86860893a.gif)

[![Washing your code. A book on clean code for frontend developers](https://sapegin.me/images/washing-code-github.jpg)](https://sapegin.me/book/)

## Usage

- **[Getting Started](https://react-styleguidist.js.org/docs/getting-started): install and run Styleguidist**
Expand Down
7 changes: 4 additions & 3 deletions docs/Development.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Because of isolation and theming you need to explicitly declare `fontFamily`, `f

## Testing

We’re using [Jest with Enzyme](http://blog.sapegin.me/all/react-jest) for testing. Put your component tests into `Component.spec.js` file in the same folder and all other tests into `__tests__/filename.spec.js`.
We’re using [Jest with React Test Renderer](https://reactjs.org/docs/test-renderer.html) for testing. Put your component tests into `Component.spec.js` file in the same folder and all other tests into `__tests__/filename.spec.js`.

To test particular class names use `classes` function (available in the global namespace in tests):

Expand All @@ -113,11 +113,12 @@ const props = {
}

it('should render active styles', () => {
const actual = shallow(
const renderer = createRenderer()
renderer.render(
<TabButtonRenderer {...props} active>
pizza
</TabButtonRenderer>
)
expect(actual).toMatchSnapshot()
expect(actual.toJson()).toMatchSnapshot()
})
```
8 changes: 4 additions & 4 deletions docs/Maintenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Help us develop and maintain Styleguidist:

## Commit message conventions

We use a simplified [Angular commit message conventions](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#commit). This makes automated releases with [semantic-release](https://github.com/semantic-release/semantic-release) possible.
We use a simplified [Angular commit message conventions](https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit). This makes automated releases with [semantic-release](https://github.com/semantic-release/semantic-release) possible.

\*\*The main differences with the Angular convention is that all messages are capitalized. Commit messages are written for humans to read, so we should use text convention for humans, not for machines.

Expand Down Expand Up @@ -120,15 +120,15 @@ export default function renderExtra(prop: PropDescriptorWithFlow): React.ReactNo
if (!prop.type || !type) {
return null;
}
````
```

Unfortunately, this extra condition has resulted in this method always returning `null` for a Flow typed prop as `prop.type` is always `null` as `prop.type` is never set.

This commit reverts the condition to what it was before the migration to TypeScript.

Fixes #1234

```
````

## Pull requests

Expand Down Expand Up @@ -178,4 +178,4 @@ Here’s a [good example of a changelog](https://github.com/styleguidist/react-s

- Information about pull request authors:<br> `(#1040 by @rafaesc)`
- Open Collective link at the very top:<br> `👋 **[Support Styleguidist](https://opencollective.com/styleguidist) on Open Collective** 👋`
```

24 changes: 3 additions & 21 deletions examples/basic/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions examples/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@
"dog-names": "^2.0.0",
"lodash": "^4.17.19",
"prop-types": "^15.7.2",
"react": "^16.13.0",
"react-dom": "^16.13.0",
"react-styleguidist": "^11.0.0"
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-styleguidist": "^12.0.1"
},
"devDependencies": {
"@babel/core": "^7.6.4",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/preset-env": "^7.6.3",
"@babel/preset-react": "^7.6.3",
"babel-loader": "^8.0.6",
"css-loader": "^3.2.0",
"file-loader": "^4.2.0",
"style-loader": "^1.0.0",
"url-loader": "^2.2.0",
"webpack": "^4.41.1"
"@babel/core": "^7.9.0",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/preset-env": "^7.9.0",
"@babel/preset-react": "^7.18.6",
"babel-loader": "^8.1.0",
"css-loader": "^6.7.1",
"file-loader": "^6.2.0",
"style-loader": "^3.3.1",
"url-loader": "^4.1.1",
"webpack": "^5.72.0"
}
}
22 changes: 4 additions & 18 deletions examples/customised/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 4 additions & 18 deletions examples/express/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 4 additions & 18 deletions examples/preact/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 4 additions & 18 deletions examples/react-native/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 4 additions & 18 deletions examples/sections/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading