Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync updates from storycap upstream #7

Merged
merged 246 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
246 commits
Select commit Hold shift + click to select a range
c7e2a18
chore(deps): update reg-suit monorepo to v0.12.1
renovate[bot] Jul 1, 2022
bc2441f
feat: Drop Storybook v4 support
Quramy Mar 18, 2022
cf6c4a7
chore: Configure dual export
Quramy Mar 18, 2022
4946259
feat: Replace minimatch to nanomatch
Quramy Mar 18, 2022
a60c762
v4.0.0-alpha.0
Quramy Mar 18, 2022
db22bd5
fix: export register endpoint
Quramy Mar 18, 2022
5132a82
chore: Add engines field
Quramy Mar 18, 2022
d27d261
chore: Change serverTimeout default value
Quramy Mar 18, 2022
d8dcd85
v4.0.0-alpha.1
Quramy Mar 18, 2022
28d96e0
chore: Remove change log file
Quramy Mar 28, 2022
f5ccbed
v4.0.0-alpha.2
Quramy Jul 1, 2022
76fdb91
chore: Modify Node.js version range
Quramy Jul 1, 2022
83baf40
chore: Modify Node.js version range
Quramy Jul 1, 2022
5154987
chore(deps): update dependency ts-node to v10.9.1
renovate[bot] Jul 14, 2022
f28e7e8
ci(renovate): automerge non-breaking minor updates, update lockfile
dargmuesli Jul 15, 2022
b39364d
chore(deps): update dependency ts-jest to v28.0.8
renovate[bot] Aug 15, 2022
99d8a38
Use named export of @storybook/addons
inokawa Aug 30, 2022
6c80514
bug: Fixed exposeFunction not being awaited
Mike-Dax Oct 14, 2022
cbd8a51
feat: Sharding
Mike-Dax Oct 15, 2022
387c99b
chore: Removed console statement
Mike-Dax Oct 15, 2022
bbbb267
fix(deps): update dependency minimatch to v3.0.5 [security]
renovate[bot] Nov 20, 2022
390eb3c
Merge pull request #637 from reg-viz/renovate/npm-minimatch-vulnerabi…
Quramy Feb 2, 2023
89b5f4c
test: use v18
Quramy Feb 2, 2023
c218cbb
chore: use v3 action
Quramy Feb 2, 2023
2f2950c
test: Add e2e GHA yml
Quramy Feb 2, 2023
a82dfc4
temp change to 1 dir
Quramy Feb 2, 2023
aa3b8df
use v16
Quramy Feb 2, 2023
5a92c37
feat: Drop Storybook v4 support
Quramy Mar 18, 2022
ad04f82
parametrized
Quramy Feb 2, 2023
fa5eb64
add concurrency
Quramy Feb 2, 2023
bda8b42
chore: tweak
Quramy Feb 2, 2023
458d4f0
chore: Test only on linux
Quramy Feb 2, 2023
ce302b7
chore: Add deployment script
Quramy Feb 2, 2023
0adb2ef
chore: Remove CircleCI resources
Quramy Feb 2, 2023
7da3862
Merge pull request #639 from reg-viz/migrate-ci
Quramy Feb 2, 2023
e866429
Merge branch 'master' into next
Quramy Feb 2, 2023
07a879f
Merge pull request #629 from inokawa/addons
Quramy Feb 2, 2023
2016f40
feat: Drop to support Node.js v12
Quramy Feb 2, 2023
56b8eea
Merge pull request #640 from reg-viz/next
Quramy Feb 2, 2023
851caf1
chore(deps): update dependency minimist to v1.2.7
renovate[bot] Feb 2, 2023
62bcea3
Merge pull request #632 from Mike-Dax/fix-expose-function
Quramy Feb 2, 2023
ccf01c2
Merge branch 'master' into sharding
Quramy Feb 2, 2023
a2e346b
Merge pull request #633 from Mike-Dax/sharding
Quramy Feb 2, 2023
b11ebe5
v4.0.0
Quramy Feb 2, 2023
5e59aca
Merge pull request #641 from reg-viz/renovate/minimist-1.x
Quramy Feb 2, 2023
a38fcb4
Merge pull request #626 from reg-viz/renovate/ts-jest-28.x
Quramy Feb 2, 2023
8aad7e5
chore(deps): update dependency husky to v8.0.3
renovate[bot] Feb 2, 2023
4a95775
chore(deps): update dependency typedoc to v0.23.24
renovate[bot] Feb 2, 2023
bc751e8
chore(deps): update dependency puppeteer to v13.7.0
renovate[bot] Feb 2, 2023
4a109d4
Merge pull request #557 from reg-viz/renovate/puppeteer-13.x
Quramy Feb 2, 2023
123c3eb
Merge pull request #623 from reg-viz/renovate/ts-node-10.x
Quramy Feb 2, 2023
2cd8111
chore(deps): update jest monorepo
renovate[bot] Feb 2, 2023
ea27489
chore(deps): update dependency cpy-cli to v4.2.0
renovate[bot] Feb 2, 2023
3b63e95
Merge pull request #638 from reg-viz/renovate/husky-8.x
Quramy Feb 2, 2023
3bb1d64
Merge pull request #642 from reg-viz/renovate/typedoc-0.x
Quramy Feb 2, 2023
92da49f
Merge pull request #643 from reg-viz/renovate/jest-monorepo
Quramy Feb 2, 2023
adc3423
Merge pull request #616 from reg-viz/renovate/reg-suit-monorepo
Quramy Feb 2, 2023
922c13e
Merge pull request #644 from reg-viz/renovate/cpy-cli-4.x
Quramy Feb 2, 2023
81b62f8
Merge pull request #625 from dargmuesli/dargmuesli/renovate
Quramy Feb 2, 2023
a90c5a8
fix(deps): update dependency @types/node to v18
renovate[bot] Feb 2, 2023
2c407d6
fix(deps): update dependency wait-on to v7
renovate[bot] Feb 2, 2023
dc67e1b
Merge pull request #646 from reg-viz/renovate/wait-on-7.x
Quramy Feb 2, 2023
eb18e4f
Merge pull request #645 from reg-viz/renovate/node-18.x
Quramy Feb 2, 2023
2c8d02d
chore(deps): update dependency eslint to v8.33.0
renovate[bot] Feb 2, 2023
d4d9c02
chore(deps): update dependency gh-pages to v5
renovate[bot] Feb 2, 2023
0ec50cc
chore(deps): update dependency puppeteer to v19
renovate[bot] Feb 2, 2023
6906a4d
Merge pull request #648 from reg-viz/renovate/puppeteer-19.x
Quramy Feb 2, 2023
7444eb1
chore(deps): update jest monorepo to v29
renovate[bot] Feb 2, 2023
c3127a3
Merge pull request #649 from reg-viz/renovate/major-jest-monorepo
Quramy Feb 3, 2023
a30234d
fix(deps): update dependency mkdirp to v2
renovate[bot] Feb 3, 2023
cdfe999
Merge pull request #650 from reg-viz/renovate/mkdirp-2.x
Quramy Feb 3, 2023
c1e3c59
Merge pull request #647 from reg-viz/renovate/gh-pages-5.x
Quramy Feb 3, 2023
54e752e
fix(deps): update dependency rimraf to v4
renovate[bot] Feb 3, 2023
67ca397
Merge pull request #652 from reg-viz/renovate/rimraf-4.x
Quramy Feb 3, 2023
64d95f5
chore(deps): update dependency eslint-config-prettier to v8.6.0
renovate[bot] Feb 3, 2023
7f62a36
chore(deps): update dependency prettier to v2.8.3
renovate[bot] Feb 4, 2023
981acbd
chore(deps): update dependency typescript to v4.9.5
renovate[bot] Feb 4, 2023
047c6de
chore(deps): update typescript-eslint monorepo to v5.50.0
renovate[bot] Feb 4, 2023
a6230f6
Merge pull request #655 from reg-viz/renovate/typescript-4.x
Quramy Feb 6, 2023
b9ac381
Merge pull request #656 from reg-viz/renovate/typescript-eslint-monorepo
Quramy Feb 6, 2023
008c941
chore(deps): update typescript-eslint monorepo to v5.51.0
renovate[bot] Feb 6, 2023
7b4ebb8
chore(deps): update dependency jest to v29.4.2
renovate[bot] Feb 8, 2023
b19e999
chore(deps): update dependency prettier to v2.8.4
renovate[bot] Feb 9, 2023
2b56457
chore(deps): update dependency minimist to v1.2.8
renovate[bot] Feb 10, 2023
a88cabe
chore(deps): update dependency typedoc to v0.23.25
renovate[bot] Feb 11, 2023
6522cac
Merge pull request #661 from reg-viz/renovate/typedoc-0.x
Quramy Feb 12, 2023
f1945c0
chore(deps): update dependency eslint to v8.34.0
renovate[bot] Feb 12, 2023
ff56a9f
chore(deps): update dependency puppeteer to v19.7.0
renovate[bot] Feb 13, 2023
4191371
chore(deps): update typescript-eslint monorepo to v5.52.0
renovate[bot] Feb 14, 2023
12247d3
chore(deps): update dependency jest to v29.4.3
renovate[bot] Feb 16, 2023
5655a8b
chore(deps): update dependency puppeteer to v19.7.1
renovate[bot] Feb 17, 2023
1da7c1c
chore(deps): update dependency puppeteer to v19.7.2
renovate[bot] Feb 20, 2023
d2dfee5
chore(deps): update typescript-eslint monorepo to v5.53.0
renovate[bot] Feb 22, 2023
44cd8a3
chore(deps): update dependency eslint to v8.35.0
renovate[bot] Feb 26, 2023
873045f
chore(deps): update dependency typedoc to v0.23.26
renovate[bot] Feb 27, 2023
cb63489
chore(deps): update typescript-eslint monorepo to v5.54.0
renovate[bot] Mar 1, 2023
107c56b
chore(deps): update dependency puppeteer to v19.7.3
renovate[bot] Mar 6, 2023
17319e2
chore(deps): update dependency eslint-config-prettier to v8.7.0
renovate[bot] Mar 7, 2023
b915de1
chore(deps): update typescript-eslint monorepo to v5.54.1
renovate[bot] Mar 7, 2023
c08d498
chore(deps): update dependency jest to v29.5.0
renovate[bot] Mar 7, 2023
329a0d2
Merge pull request #677 from reg-viz/renovate/jest-monorepo
Quramy Mar 9, 2023
f18a957
Merge pull request #676 from reg-viz/renovate/typescript-eslint-monorepo
Quramy Mar 9, 2023
d1dca54
chore(deps): update dependency puppeteer to v19.7.4
renovate[bot] Mar 10, 2023
1c8cd03
chore(deps): update dependency eslint to v8.36.0
renovate[bot] Mar 11, 2023
3586e68
chore(deps): update typescript-eslint monorepo to v5.55.0
renovate[bot] Mar 13, 2023
acfaf62
chore(deps): update dependency puppeteer to v19.7.5
renovate[bot] Mar 15, 2023
1eaec73
chore(deps): update dependency typedoc to v0.23.27
renovate[bot] Mar 16, 2023
5022e84
fix(deps): update dependency @types/mkdirp to v1.0.2
renovate[bot] Mar 17, 2023
12c1788
fix(deps): update dependency @types/rimraf to v3.0.2
renovate[bot] Mar 17, 2023
5dee3aa
fix(deps): update dependency chalk to v2.4.2
renovate[bot] Mar 18, 2023
83753b4
chore(deps): update dependency @types/jest to v29.5.0
renovate[bot] Mar 18, 2023
b88e032
chore(deps): update dependency typedoc to v0.23.28
renovate[bot] Mar 19, 2023
757c82a
fix(deps): update dependency @types/wait-on to v5.3.1
renovate[bot] Mar 21, 2023
fa69d3f
chore(deps): update dependency eslint-config-prettier to v8.8.0
renovate[bot] Mar 21, 2023
4d329d7
fix(deps): update dependency @types/node to v18.15.5
renovate[bot] Mar 22, 2023
ad11687
chore(deps): update dependency prettier to v2.8.6
renovate[bot] Mar 22, 2023
d6e5505
chore(deps): update typescript-eslint monorepo to v5.56.0
renovate[bot] Mar 24, 2023
7b4274e
chore(deps): update dependency prettier to v2.8.7
renovate[bot] Mar 24, 2023
9f38017
fix(deps): update dependency @types/node to v18.15.9
renovate[bot] Mar 25, 2023
c8858e1
fix(deps): update dependency rimraf to v4.4.1
renovate[bot] Mar 25, 2023
6e1c715
fix(deps): update dependency yargs to v16.2.0
renovate[bot] Mar 26, 2023
6fc8928
fix(deps): update dependency @types/node to v18.15.10
renovate[bot] Mar 26, 2023
1428a60
chore(deps): update dependency puppeteer to v19.8.0
renovate[bot] Mar 27, 2023
d4f837b
chore(deps): update typescript-eslint monorepo to v5.57.0
renovate[bot] Mar 27, 2023
ae1ffbd
chore(deps): update dependency typescript-eslint-language-service to …
renovate[bot] Mar 29, 2023
7cd10b2
chore(deps): update dependency puppeteer to v19.8.2
renovate[bot] Mar 29, 2023
bf8814d
fix(deps): update dependency @types/node to v18.15.11
renovate[bot] Mar 30, 2023
01d2346
chore(deps): update dependency eslint to v8.37.0
renovate[bot] Mar 30, 2023
8b1e12f
fix(test): replace testURL options to testEnvironmentOptions.url
MH4GF Apr 2, 2023
0ddc67b
fix(jest): replace ts-jest config to transform
MH4GF Apr 2, 2023
d35673e
fix(jest): added files with .tsx extension to the transform target
MH4GF Apr 2, 2023
3c509e8
feat: copy example code from v6-managed-react
MH4GF Apr 3, 2023
7e20756
fix: change port to avoid conflicts
MH4GF Apr 3, 2023
4d36eb2
feat: execute `npx storybook@next upgrade --prerelease`
MH4GF Apr 3, 2023
bacc41d
fix: change port and storybook binary
MH4GF Apr 3, 2023
8f6633d
fix: replace @storybook/preset-create-react-app from babel config
MH4GF Apr 3, 2023
e6aefa9
fix: replace to @storybook/addon-essentials from addon-actions
MH4GF Apr 3, 2023
8f511f9
fix: @storybook/react/demo has been removed and a replacement compone…
MH4GF Apr 3, 2023
05adf1c
fix: migrate for testing-react is now deprecated
MH4GF Apr 3, 2023
f266deb
feat: upgrade latest versions
MH4GF Apr 3, 2023
c98af84
fix: remove @storybook/addon-mdx-gfm
MH4GF Apr 3, 2023
22c90f5
chore(deps): update dependency ts-jest to v29.1.0
renovate[bot] Apr 2, 2023
128ac69
fix: ignore import/no-anonymous-default-export rule
MH4GF Apr 4, 2023
235cddc
chore(deps): update dependency puppeteer to v19.8.3
renovate[bot] Apr 4, 2023
ed124db
Merge pull request #708 from MH4GF/test-in-v7
Quramy Apr 5, 2023
8cbfb9d
Merge pull request #707 from MH4GF/mh4gf/fix-jest-warning
Quramy Apr 5, 2023
d554696
chore(deps): update typescript-eslint monorepo to v5.57.1
renovate[bot] Apr 5, 2023
e344ff4
chore(deps): update dependency typescript-eslint-language-service to …
renovate[bot] Apr 5, 2023
eee3860
chore(deps): update dependency puppeteer to v19.8.5
renovate[bot] Apr 7, 2023
7c579a9
chore(deps): update dependency eslint to v8.38.0
renovate[bot] Apr 8, 2023
b4c51de
chore(deps): update dependency typedoc to v0.24.1
renovate[bot] Apr 9, 2023
552662a
chore(deps): update dependency typescript to v5
renovate[bot] Apr 10, 2023
7225249
Merge pull request #692 from reg-viz/renovate/typescript-5.x
Quramy Apr 11, 2023
ffab460
chore(deps): update typescript-eslint monorepo to v5.58.0
renovate[bot] Apr 11, 2023
c8b7678
Add the ability to screenshot a part of the screen
Jamie5 Apr 12, 2023
772aa9b
chore(deps): update dependency puppeteer to v19.9.0
renovate[bot] Apr 13, 2023
d8b02ab
chore(deps): update dependency typedoc to v0.24.4
renovate[bot] Apr 16, 2023
e91795d
fix(deps): update dependency rimraf to v5
renovate[bot] Apr 18, 2023
d014ec9
Merge pull request #722 from Jamie5/partialScreenshot
Quramy Apr 19, 2023
785a4b4
v4.1.0
Quramy Apr 19, 2023
4f987e0
Merge pull request #717 from reg-viz/renovate/rimraf-5.x
Quramy Apr 19, 2023
463cb8c
chore(CI): Run integrated test for SB v7
Quramy Apr 19, 2023
b19cc9f
fix: deps
Quramy Apr 19, 2023
89a634d
Merge pull request #726 from reg-viz/add-v7-gha
Quramy Apr 19, 2023
3471b5d
chore(deps): update dependency puppeteer to v19.9.1
renovate[bot] Apr 19, 2023
be5c13c
fix: Pass glob option to rimraf
Quramy Apr 20, 2023
d025ff4
Merge pull request #730 from reg-viz/fix/build_script
Quramy Apr 20, 2023
957d184
v4.1.1
Quramy Apr 20, 2023
dc2fd7e
chore(deps): update typescript-eslint monorepo to v5.59.0
renovate[bot] Apr 20, 2023
e8a4b6f
chore(deps): update dependency @types/jest to v29.5.1
renovate[bot] Apr 20, 2023
a01427a
chore(deps): update dependency eslint to v8.39.0
renovate[bot] Apr 22, 2023
946da1c
chore(deps): update dependency puppeteer to v19.10.1
renovate[bot] Apr 23, 2023
6f215c8
chore(deps): update dependency prettier to v2.8.8
renovate[bot] Apr 23, 2023
f9830ca
Merge pull request #734 from reg-viz/renovate/prettier-2.x
Quramy Apr 24, 2023
0b07fce
fix(deps): update dependency @types/node to v18.16.0
renovate[bot] Apr 24, 2023
83c6d4b
chore(deps): update dependency typedoc to v0.24.6
renovate[bot] Apr 24, 2023
ee6251c
chore(deps): update typescript-eslint monorepo to v5.59.1
renovate[bot] Apr 26, 2023
44d2081
fix(deps): update dependency @types/node to v18.16.2
renovate[bot] Apr 27, 2023
0133b62
chore(deps): update dependency puppeteer to v19.11.1
renovate[bot] Apr 28, 2023
bec58d4
chore(deps): update typescript-eslint monorepo to v5.59.2
renovate[bot] May 1, 2023
053cf49
fix(deps): update dependency @types/node to v18.16.3
renovate[bot] May 3, 2023
2b144eb
fix(deps): update dependency @types/node to v18.16.5
renovate[bot] May 6, 2023
06e332f
chore(deps): update dependency eslint to v8.40.0
renovate[bot] May 7, 2023
6aeb493
Correct localshot to localhost as it is a typo
no-yan May 8, 2023
97c3312
chore(deps): update dependency typedoc to v0.24.7
renovate[bot] May 8, 2023
11bd847
fix(deps): update dependency @types/node to v18.16.7
renovate[bot] May 10, 2023
ce527f5
fix(deps): update dependency @types/node to v18.16.8
renovate[bot] May 11, 2023
a3ddb25
chore(deps): update typescript-eslint monorepo to v5.59.5
renovate[bot] May 13, 2023
5eb54d6
fix(deps): update dependency @types/node to v18.16.9
renovate[bot] May 13, 2023
7b9022d
chore(deps): update typescript-eslint monorepo to v5.59.6
renovate[bot] May 15, 2023
96e81ab
fix(deps): update dependency @types/node to v18.16.13
renovate[bot] May 18, 2023
5ec2acb
fix(deps): update dependency rimraf to v5.0.1
renovate[bot] May 18, 2023
a9faa3c
chore(deps): update dependency eslint to v8.41.0
renovate[bot] May 20, 2023
15ed81e
fix(deps): update dependency @types/node to v18.16.14
renovate[bot] May 22, 2023
1185cd4
chore(deps): update typescript-eslint monorepo to v5.59.7
renovate[bot] May 23, 2023
6cc2fdf
fix(deps): update dependency @types/node to v18.16.16
renovate[bot] May 26, 2023
7744673
chore(deps): update typescript-eslint monorepo to v5.59.8
renovate[bot] May 29, 2023
4324140
chore(deps): update dependency @types/jest to v29.5.2
renovate[bot] May 31, 2023
5fb7aec
chore(deps): update dependency typescript to v5.1.3
renovate[bot] Jun 1, 2023
b2f6250
chore(deps): update dependency eslint to v8.42.0
renovate[bot] Jun 3, 2023
7dce989
chore(deps): update dependency typedoc to v0.24.8
renovate[bot] Jun 4, 2023
63a8082
chore(deps): update typescript-eslint monorepo to v5.59.9
renovate[bot] Jun 5, 2023
335604c
Merge pull request #747 from no-yan/chore/fix-typo
Quramy Jun 13, 2023
142cd63
Add example with Storybook v7 and React v18
nodaguti Jun 13, 2023
5861c90
Add workaround for an issue where puppeteer fails to find an element
nodaguti Jun 13, 2023
1b864d2
Merge pull request #770 from nodaguti/add-workaround-for-focus-issue
Quramy Jun 14, 2023
3124436
v4.1.2
Quramy Jun 14, 2023
97dd1c4
chore(deps): update typescript-eslint monorepo to v5.59.11
renovate[bot] Jun 14, 2023
c77e8b3
fix(deps): update dependency @types/node to v18.16.18
renovate[bot] Jun 15, 2023
8fc3050
chore(deps): update dependency eslint to v8.43.0
renovate[bot] Jun 17, 2023
53f98fd
chore(deps): update typescript-eslint monorepo to v5.60.0
renovate[bot] Jun 19, 2023
1e852ae
chore(deps): update typescript-eslint monorepo to v5.60.1
renovate[bot] Jun 26, 2023
6580401
chore(deps): update dependency typescript to v5.1.6
renovate[bot] Jun 28, 2023
a718676
chore(deps): update dependency cpy-cli to v5
renovate[bot] Jun 30, 2023
eb3fec7
Merge pull request #778 from reg-viz/renovate/cpy-cli-5.x
Quramy Jul 4, 2023
22b906a
chore(deps): update dependency ts-jest to v29.1.1
renovate[bot] Jul 4, 2023
02f50cc
chore(deps): update reg-suit monorepo to v0.12.2
renovate[bot] Jul 5, 2023
8a7ba16
fix(deps): update dependency @types/node to v18.16.19
renovate[bot] Jul 6, 2023
5219eae
chore(deps): update dependency eslint to v8.44.0
renovate[bot] Jul 8, 2023
506389c
chore(deps): update dependency jest to v29.6.1
renovate[bot] Jul 9, 2023
a3d3fa8
chore(deps): update typescript-eslint monorepo to v5.62.0
renovate[bot] Jul 10, 2023
bf5f19d
chore(deps): update dependency @types/jest to v29.5.3
renovate[bot] Jul 12, 2023
25dfe9f
chore: Use fs promises for filesystem APIs
Mike-Dax Jul 24, 2023
fe823f1
Merge pull request #789 from Mike-Dax/fs-promises
Quramy Jul 24, 2023
839fac1
feat: Forward console logs to main cli
Mike-Dax Jul 24, 2023
42f5429
chore: Cli note for forwarding console logs
Mike-Dax Jul 24, 2023
a226224
Merge pull request #790 from Mike-Dax/forward-console
Quramy Jul 24, 2023
0edd527
feat: Emit chromium trace files per screenshot
Mike-Dax Jul 24, 2023
109cf7b
fix(deps): update dependency mkdirp to v2.1.6
renovate[bot] Jul 24, 2023
61f90b2
chore(deps): lock file maintenance
renovate[bot] Jul 24, 2023
b0465be
Merge pull request #791 from Mike-Dax/tracing
Quramy Jul 25, 2023
5717d29
v4.2.0
Quramy Jul 25, 2023
d4941fb
chore(deps): update dependency eslint to v8.45.0
renovate[bot] Jul 25, 2023
3e201b3
fix(deps): update dependency @types/node to v18.17.1
renovate[bot] Jul 26, 2023
c11bad5
chore(deps): update dependency jest to v29.6.2
renovate[bot] Jul 27, 2023
a8427f5
chore(deps): update dependency eslint-config-prettier to v8.9.0
renovate[bot] Jul 28, 2023
f983799
chore(deps): update dependency eslint to v8.46.0
renovate[bot] Jul 28, 2023
2f0ee83
chore(deps): update dependency eslint-config-prettier to v8.10.0
renovate[bot] Aug 3, 2023
98475c4
fix(deps): update dependency @types/node to v18.17.3
renovate[bot] Aug 5, 2023
cc11cbb
chore(deps): lock file maintenance
renovate[bot] Aug 7, 2023
ce96380
#806 Fix "failed to find element"
Aug 10, 2023
f4ae4d8
fix(deps): update dependency @types/node to v18.17.4
renovate[bot] Aug 9, 2023
af615c5
Merge pull request #807 from stefanroeck/bugfix/806_FailedToFindElement
Quramy Aug 24, 2023
270565d
Merge remote-tracking branch 'upstream/master' into austin/try-again
throwandgo Oct 3, 2023
ecf696b
Alias 'storycap' to '@remix/storycap' for Storybook v7+
throwandgo Oct 4, 2023
b8ba72a
Avoid running tests against Storybook v5
throwandgo Oct 4, 2023
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
78 changes: 0 additions & 78 deletions .circleci/config.yml

This file was deleted.

15 changes: 8 additions & 7 deletions .github/workflows/nodejs.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Node.js CI
name: Unit test

on:
push:
Expand All @@ -9,19 +9,20 @@ on:

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [16.x]
os: [ubuntu-latest]
node-version: [18.x]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn bootstrap
- run: yarn build
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/integrated_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Integrated Test

on:
push:
branches:
- master
- next
pull_request:

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
example_dir:
- examples/v6-managed-react
- examples/v6-simple
- examples/v6-story-store-v7
- examples/v7-managed-react
- examples/v7-react18

steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn bootstrap
- run: yarn build
- run: yarn e2e ${{ matrix.example_dir }}
env:
CI: true
32 changes: 32 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: publish

on:
push:
tags:
- '*'

jobs:
publish:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn bootstrap
- name: npm publish
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > ~/.npmrc
npm whoami
yarn deploy:ci
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
CI: true
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ typings/


# End of https://www.gitignore.io/api/node
*.tsbuildinfo
.DS_Store
lib/
lib-esm/
__screenshot__
__screenshots__
.reg
32 changes: 24 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
![DEMO](https://raw.githubusercontent.com/reg-viz/storycap/artwork/demo_v2.gif)

[![npm](https://img.shields.io/npm/v/storycap.svg?style=flat-square)](https://www.npmjs.com/package/storycap)
[![CircleCI](https://circleci.com/gh/reg-viz/storycap.svg?style=svg)](https://circleci.com/gh/reg-viz/storycap)

> A [Storybook][storybook] Addon, Save the screenshot image of your stories :camera: via [Puppeteer][puppeteer].

Expand All @@ -32,6 +31,7 @@ It is primarily responsible for image generation necessary for Visual Testing su
- [Multiple PNGs from 1 story](#multiple-pngs-from-1-story)
- [Basic usage](#basic-usage)
- [Variants composition](#variants-composition)
- [Parallelisation across multiple computers](#parallelisation-across-multiple-computers)
- [Tips](#tips)
- [Run with Docker](#run-with-docker)
- [Full control the screenshot timing](#full-control-the-screenshot-timing)
Expand Down Expand Up @@ -246,6 +246,7 @@ interface ScreenshotOptions {
waitImages?: boolean; // default true
omitBackground?: boolean; // default false
captureBeyondViewport?: boolean; // default true
clip?: { x: number; y: number; width: number; height: number } | null; // default null
}
```

Expand All @@ -262,6 +263,7 @@ interface ScreenshotOptions {
- `waitImages`: Deprecated. Use `waitAssets`. If set true, Storycap waits until `<img>` in the story are loaded.
- `omitBackground`: If set true, Storycap omits the background of the page allowing for transparent screenshots. Note the storybook theme will need to be transparent as well.
- `captureBeyondViewport`: If set true, Storycap captures screenshot beyond the viewport. See also [Puppeteer API docs](https://github.com/puppeteer/puppeteer/blob/v13.1.3/docs/api.md#pagescreenshotoptions).
- `clip`: If set, Storycap captures only the portion of the screen bounded by x/y/width/height.

### type `Variants`

Expand All @@ -283,6 +285,7 @@ type Variants = {
waitImages?: boolean;
omitBackground?: boolean;
captureBeyondViewport?: boolean;
clip?: { x: number; y: number; width: number; height: number } | null;
};
};
```
Expand Down Expand Up @@ -358,10 +361,15 @@ Options:
-V, --viewport Viewport. [array] [default: ["800x600"]]
--disableCssAnimation Disable CSS animation and transition. [boolean] [default: true]
--disableWaitAssets Disable waiting for requested assets [boolean] [default: false]
--trace Emit Chromium trace files per screenshot. [boolean] [default: false]
--silent [boolean] [default: false]
--verbose [boolean] [default: false]
--forwardConsoleLogs Forward in-page console logs to the user's console. [boolean] [default: false]
--serverCmd Command line to launch Storybook server. [string] [default: ""]
--serverTimeout Timeout [msec] for starting Storybook server. [number] [default: 20000]
--serverTimeout Timeout [msec] for starting Storybook server. [number] [default: 60000]
--shard The sharding options for this run. In the format <shardNumber>/<totalShards>.
<shardNumber> is a number between 1 and <totalShards>. <totalShards> is the total
number of computers working. [string] [default: "1/1"]
--captureTimeout Timeout [msec] for capture a story. [number] [default: 5000]
--captureMaxRetryCount Number of count to retry to capture. [number] [default: 3]
--metricsWatchRetryCount Number of count to retry until browser metrics stable. [number] [default: 1000]
Expand All @@ -376,11 +384,11 @@ Options:
[string] [default: "{ "args": ["--no-sandbox", "--disable-setuid-sandbox", "--disable-dev-shm-usage"] }"]

Examples:
storycap http://localshot:9009
storycap http://localshot:9009 -V 1024x768 -V 320x568
storycap http://localshot:9009 -i "some-kind/a-story"
storycap http://localhost:9009
storycap http://localhost:9009 -V 1024x768 -V 320x568
storycap http://localhost:9009 -i "some-kind/a-story"
storycap http://example.com/your-storybook -e "**/default" -V iPad
storycap --serverCmd "start-storybook -p 3000" http://localshot:3000
storycap --serverCmd "start-storybook -p 3000" http://localhost:3000

```

Expand Down Expand Up @@ -456,6 +464,16 @@ The above example generates the following:

**Note:** You can extend some viewports with keys of `viewports` option because the `viewports` field is expanded to variants internally.

### Parallelisation across multiple computers

To process more stories in parallel across multiple computers, the `shard` argument can be used.

The `shard` argument is a string of the format: `<shardNumber>/<totalShards>`. `<shardNumber>` is a number between 1 and `<totalShards>`, inclusive. `<totalShards>` is the total number of computers running the execution.

For example, a run with `--shard 1/1` would be considered the default behaviour on a single computer. Two computers each running `--shard 1/2` and `--shard 2/2` respectively would split the stories across two computers.

Stories are distributed across shards in a round robin fashion when ordered by their ID. If a series of stories 'close together' are slower to screenshot than others, they should be distributed evenly.

## Tips

### Run with Docker
Expand Down Expand Up @@ -530,11 +548,9 @@ You can change search channel with `--chromiumChannel` option or set executable
Storycap is tested with the followings versions:

- Simple mode:
- [x] Storybook v4.x
- [x] Storybook v5.x
- [x] Storybook v6.x
- Managed mode:
- [x] Storybook v4.x
- [x] Storybook v5.x
- [x] Storybook v6.x

Expand Down
4 changes: 2 additions & 2 deletions e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ function run() {
echo ""
}

total=${CIRCLE_NODE_TOTAL:-1}
current_idx=${CIRCLE_NODE_INDEX:-0}
total=${NODE_TOTAL:-1}
current_idx=${NODE_INDEX:-0}

rm -rf __screenshots__
mkdir -p __screenshots__/examples
Expand Down
5 changes: 0 additions & 5 deletions examples/v4-managed-react/.storybook/addons.js

This file was deleted.

15 changes: 0 additions & 15 deletions examples/v4-managed-react/.storybook/config.js

This file was deleted.

Loading