Gaëtan Maisse
d42bb9e89c
Revert "e2e: clean unnecessary folder "tooling""
...
This reverts commit 4aefea59
2021-04-30 09:40:57 +02:00
Gaëtan Maisse
ace37ed57a
e2e: add a hack to be sure setting the registry config of Yarn 1 (and not Yarn 2)
2021-04-30 09:21:36 +02:00
Gaëtan Maisse
4aefea598e
e2e: clean unnecessary folder "tooling"
2021-04-30 08:39:47 +02:00
Gaëtan Maisse
70cefbaa53
e2e: update command used to set registry to work with NPM and Yarn 1
...
There is no need to make it works with Yarn 2 as it now comes later in the process.
2021-04-30 08:39:09 +02:00
Gaëtan Maisse
8ac0be88b2
e2e: always use npx to bootstrap example and yarn dlx to run sb init
...
The e2e process is the following:
- Use `npx` or bare `yarn init` to generate an app
- Install Yarn 2 in the generated app
- If running with `--e2e` then configure Yarn 2 with stricter options and to use local registry
- Add TypeScript and other required deps if needed (using Yarn 2)
- Init Storybook using Yarn 2 with `yarn dlx sb init ...`
2021-04-30 00:03:05 +02:00
Clément DUNGLER
2be11d0df8
fix e2e and track progression
2021-04-29 22:29:11 +02:00
Clément DUNGLER
fdbf0020cf
add generator option to repro, move e2e configs
2021-04-27 23:25:29 +02:00
Clément DUNGLER
2412e20a8b
use repro in e2e
2021-04-20 22:23:38 +02:00
Gaëtan Maisse
9ece9c584b
ci: rework E2E tests in CircleCI
...
New layout:
- `e2e-tests-core` for "officially" supported frameworks : Vue + Angular (+ React + Web Components in e2e-tests-pnp)
- `e2e-tests-extended` for other frameworks: Preact, Svelte, Riot, Rax etc
- `e2e-tests-pnp` for some frameworks/setups compatible with PnP: React + WC
2021-04-13 22:14:27 +02:00
Gaëtan Maisse
95dd517b32
e2e: disable yarn immutable install by default during E2E tests
...
For details, see https://github.com/yarnpkg/berry/blob/master/CHANGELOG.md#300-rc1
2021-04-12 19:03:52 +02:00
Gaëtan Maisse
98fa420bef
chore: move to Yarn 2 🧶
2021-04-07 18:25:38 +02:00
Gaëtan Maisse
e8fea9ce44
e2e: add @storybook/addon-svelte-csf
to the list of packages not hosted in the monorepo
2021-03-17 13:02:29 +01:00
Gaëtan Maisse
15632b3505
e2e(web-components): remove unneeded lit-html
dep and keep only lit-element
2021-03-17 12:00:38 +01:00
Norbert de Langen
f2d4a602ff
Merge branch 'next' into tech/core-builder
...
# Conflicts:
# .gitignore
2021-02-16 17:16:56 +01:00
Norbert de Langen
dd10067def
fix
2021-02-16 16:40:44 +01:00
Gaëtan Maisse
9a5933b49a
e2e: fix a typo currently preventing us to run Yarn 2 PnP test in the CI
2021-02-15 21:20:09 +01:00
Norbert de Langen
4802dad406
Merge branch 'next' into tech/core-builder
...
# Conflicts:
# addons/docs/package.json
# addons/essentials/package.json
# addons/graphql/package.json
# addons/knobs/package.json
# addons/storyshots/storyshots-core/package.json
# addons/storyshots/storyshots-puppeteer/package.json
# app/angular/package.json
# app/aurelia/package.json
# app/ember/package.json
# app/html/package.json
# app/marionette/package.json
# app/marko/package.json
# app/mithril/package.json
# app/preact/package.json
# app/rax/package.json
# app/react/package.json
# app/riot/package.json
# app/server/package.json
# app/svelte/package.json
# app/svelte/src/server/framework-preset-svelte.ts
# app/vue/package.json
# app/vue3/package.json
# app/web-components/package.json
# examples/cra-kitchen-sink/package.json
# examples/cra-react15/package.json
# examples/cra-ts-essentials/package.json
# examples/cra-ts-kitchen-sink/package.json
# examples/mithril-kitchen-sink/package.json
# examples/react-ts/package.json
# examples/svelte-kitchen-sink/package.json
# examples/vue-3-cli/package.json
# lib/cli/src/versions.json
# lib/core/package.json
# lib/ui/package.json
# yarn.lock
2021-02-15 10:23:52 +01:00
j3rem1e
89bf8c8278
Svelte: Support for Typescript and Preprocessors
2021-02-14 16:01:57 +01:00
Norbert de Langen
3ee569b6c1
Merge branch 'next' into tech/core-builder
...
# Conflicts:
# lib/cli/src/versions.json
2021-02-12 08:49:38 +01:00
Norbert de Langen
192090f7c6
Merge pull request #13872 from storybookjs/tech/rework-ci
...
Build: Move all the `yarn install` in the `build` CI job
2021-02-12 08:42:28 +01:00
Gaëtan Maisse
eb9d311cfe
chore: reduce verdaccio startup time timeout to 10s
2021-02-11 08:50:03 +01:00
Gaëtan Maisse
4e90dffc5a
chore: rework test
NPM script (--core
option has been removed)
...
Previously the unit tests were run with a custom script `scripts/test.js`.
This script was a kind of wrapper around Jest, handling just a few options (skipping all the unknown ones) and spawning Jest programmatically.
To simplify this process:
- I extracted the only non-classic case in its own NPM script: `yarn test-puppeteer`
- Just call Jest directly when running `yarn test` so all the options are forwarded properly to Jest.
⚠️ `yarn test --core` doesn't work anymore as `--core` isn't a Jest option, it is now simply `yarn test`.
📝 To run the tests of a single workspace just use `--projects`, for instance: `yarn test --projects examples/angular-cli`
2021-02-11 08:33:59 +01:00
Norbert de Langen
3b45d2c4f9
Merge branch 'next' into tech/core-builder
...
# Conflicts:
# CHANGELOG.md
# addons/a11y/package.json
# addons/actions/package.json
# addons/backgrounds/package.json
# addons/controls/package.json
# addons/cssresources/package.json
# addons/design-assets/package.json
# addons/docs/package.json
# addons/docs/src/frameworks/common/preset.ts
# addons/essentials/package.json
# addons/events/package.json
# addons/google-analytics/package.json
# addons/graphql/package.json
# addons/jest/package.json
# addons/jest/tsconfig.json
# addons/knobs/package.json
# addons/links/package.json
# addons/queryparams/package.json
# addons/storyshots/storyshots-core/package.json
# addons/storyshots/storyshots-puppeteer/package.json
# addons/storysource/package.json
# addons/toolbars/package.json
# addons/viewport/package.json
# app/angular/package.json
# app/angular/src/client/preview/index.ts
# app/angular/src/server/options.ts
# app/aurelia/package.json
# app/aurelia/src/server/options.ts
# app/ember/package.json
# app/ember/src/server/options.ts
# app/html/package.json
# app/html/src/server/options.ts
# app/marionette/package.json
# app/marionette/src/client/index.js
# app/marionette/src/client/index.ts
# app/marionette/src/client/preview/index.ts
# app/marionette/src/server/framework-preset-marionette.ts
# app/marionette/src/server/options.ts
# app/marionette/src/typings.d.ts
# app/marionette/tsconfig.json
# app/marko/package.json
# app/marko/src/client/index.js
# app/marko/src/client/index.ts
# app/marko/src/client/preview/index.ts
# app/marko/src/server/framework-preset-marko.ts
# app/marko/src/server/options.ts
# app/marko/src/typings.d.ts
# app/marko/tsconfig.json
# app/mithril/package.json
# app/mithril/src/server/options.ts
# app/preact/package.json
# app/preact/src/server/options.ts
# app/rax/package.json
# app/rax/src/client/preview/index.ts
# app/rax/src/server/options.ts
# app/rax/src/typings.d.ts
# app/react/package.json
# app/react/src/server/options.ts
# app/riot/package.json
# app/riot/src/client/preview/index.ts
# app/riot/src/server/framework-preset-riot.ts
# app/riot/src/server/options.ts
# app/riot/src/typings.d.ts
# app/riot/tsconfig.json
# app/server/package.json
# app/server/src/client/preview/types.ts
# app/server/src/server/options.ts
# app/svelte/package.json
# app/svelte/src/server/options.ts
# app/vue/package.json
# app/vue/src/server/options.ts
# app/vue3/package.json
# app/vue3/src/client/preview/types.ts
# app/vue3/src/server/framework-preset-vue3.ts
# app/vue3/src/server/options.ts
# app/vue3/src/typings.d.ts
# app/vue3/tsconfig.json
# app/web-components/package.json
# app/web-components/src/client/preview/types.ts
# app/web-components/src/server/options.ts
# dev-kits/addon-decorator/package.json
# dev-kits/addon-parameter/package.json
# dev-kits/addon-preview-wrapper/package.json
# dev-kits/addon-roundtrip/package.json
# docs/versions/next.json
# examples/angular-cli/package.json
# examples/aurelia-kitchen-sink/package.json
# examples/cra-kitchen-sink/package.json
# examples/cra-react15/package.json
# examples/cra-ts-essentials/package.json
# examples/cra-ts-kitchen-sink/package.json
# examples/dev-kits/package.json
# examples/ember-cli/package.json
# examples/html-kitchen-sink/package.json
# examples/marko-cli/package.json
# examples/mithril-kitchen-sink/package.json
# examples/official-storybook/package.json
# examples/preact-kitchen-sink/package.json
# examples/rax-kitchen-sink/package.json
# examples/react-ts/package.json
# examples/riot-kitchen-sink/package.json
# examples/server-kitchen-sink/package.json
# examples/standalone-preview/package.json
# examples/svelte-kitchen-sink/package.json
# examples/vue-3-cli/package.json
# examples/vue-3-cli/src/stories/Button.vue
# examples/vue-3-cli/src/stories/Header.stories.js
# examples/vue-3-cli/src/stories/Header.vue
# examples/vue-3-cli/src/stories/Page.stories.js
# examples/vue-3-cli/src/stories/Page.vue
# examples/vue-3-cli/tsconfig.json
# examples/vue-cli/package.json
# examples/vue-kitchen-sink/package.json
# examples/web-components-kitchen-sink/package.json
# lerna.json
# lib/addons/package.json
# lib/api/package.json
# lib/api/src/version.ts
# lib/builder-webpack4/src/preview/iframe-webpack.config.ts
# lib/channel-postmessage/package.json
# lib/channel-websocket/package.json
# lib/channels/package.json
# lib/cli-sb/package.json
# lib/cli-storybook/package.json
# lib/cli/package.json
# lib/cli/src/versions.json
# lib/client-api/package.json
# lib/client-logger/package.json
# lib/codemod/package.json
# lib/components/package.json
# lib/core-events/package.json
# lib/core-server/src/cli/dev.ts
# lib/core-server/src/manager/manager-webpack.config.ts
# lib/core/client.js
# lib/core/package.json
# lib/core/server.js
# lib/core/src/server/build-dev.ts
# lib/core/src/server/build-static.ts
# lib/core/src/server/common/es6Transpiler.ts
# lib/core/src/server/dev-server.ts
# lib/core/src/server/preview/base-webpack.config.ts
# lib/node-logger/package.json
# lib/postinstall/package.json
# lib/router/package.json
# lib/source-loader/package.json
# lib/theming/package.json
# lib/ui/package.json
# lib/ui/tsconfig.json
# package.json
# scripts/build-manager.js
# yarn.lock
2021-02-08 15:43:50 +01:00
Norbert de Langen
f4077622f8
fix prebuilt manager script
2021-02-06 17:09:59 +01:00
Norbert de Langen
3246f63317
make build work
2021-02-06 15:30:52 +01:00
Yann Braga
2d9b138ec0
fix(build-cli): only kill other processes on fail
2021-02-05 10:06:48 +01:00
Norbert de Langen
c8cf5a567b
rename
2021-02-04 13:31:31 +01:00
Michael Shilman
264327b2a4
Add @storybook/server-webpack5
2021-02-04 00:06:53 +08:00
Michael Shilman
c5c5a983ab
Merge from next WIP
2021-02-03 22:34:44 +08:00
Michael Shilman
0c9aebf2d9
Merge pull request #13786 from storybookjs/tech/improve-publish-step-on-ci
...
Build: Do not recompile packages in publish step of the CI
2021-02-02 09:29:25 +08:00
Blaine Bublitz
4024692ff9
fix: utilize vue/cli at v4 to rely on webpack 4
2021-02-01 16:22:01 -07:00
Blaine Bublitz
2bdb5273dd
fix: use vue 3 preset in e2e test
2021-02-01 15:19:05 -07:00
Gaëtan Maisse
f1f8269c7c
chore: do not recompile packages before publishing with run-registry
script
...
It will:
- ensure that the outputs of the build step are really used
- speed up the publish step on CI a lot
2021-02-01 21:13:55 +01:00
Blaine Bublitz
429c3cc296
test: add e2e test for vue3
2021-01-29 19:51:43 -07:00
Gaëtan Maisse
149b412b62
Merge branch 'next' into fix/sb-cli-prompt
2021-01-13 20:33:29 +01:00
Gaëtan Maisse
bc93753c8e
fix: do not delete TS template files after building the CLI package
...
I inverted the logic to check if we are in the SB CLI package as this
is the only package that require extra check on filenames.
2021-01-12 13:35:43 +01:00
Gaëtan Maisse
8364d87855
e2e: remove outdated deletion of yarn_2_cra
config
...
Signed-off-by: Gaëtan Maisse <gaetanmaisse@gmail.com>
2021-01-12 13:35:42 +01:00
Gaëtan Maisse
17f0857292
e2e: add CLI option to skip some framework
...
Signed-off-by: Gaëtan Maisse <gaetanmaisse@gmail.com>
2021-01-12 13:35:42 +01:00
Gaëtan Maisse
ccf5de2d67
e2e: rename everything related to Yarn 2 to Yarn 2 PnP as there is now a node_modules mode too
...
Signed-off-by: Gaëtan Maisse <gaetanmaisse@gmail.com>
2021-01-12 13:35:42 +01:00
Gaëtan Maisse
df5bb84ffd
e2e: use official release of Yarn 2
...
Signed-off-by: Gaëtan Maisse <gaetanmaisse@gmail.com>
2021-01-12 13:35:41 +01:00
Andrew Luca
74bb26677c
chore(compile-tsc): remove redundant checks for declaration generation
...
`--declaration true` is always added no matter what app/addon/lib, moved it in `args` array initializer
And add `--emitDeclarationOnly` only is not angular and not storyshots
2021-01-06 04:48:38 +02:00
Gaëtan Maisse
c4ba07c59f
fix: do not delete TS template files after building the CLI package
...
I inverted the logic to check if we are in the SB CLI package as this
is the only package that require extra check on filenames.
2021-01-04 21:38:59 +01:00
Yann Braga
67037aa6aa
fix(e2e): correct local cli path
2020-12-27 00:23:40 +01:00
Michael Shilman
431d209ec7
Merge branch 'next' into pr/12026
2020-12-20 18:05:32 +08:00
Michael Shilman
5ca9ee5143
Update scripts/utils/watch-babel.js
2020-12-15 17:59:01 +08:00
Gert Hengeveld
ca916ed931
Merge branch 'next' into perf/esm-dist
2020-12-11 09:59:58 +01:00
Norbert de Langen
380074c402
fix tests
2020-12-09 09:42:03 +01:00
Gaëtan Maisse
3d7a024b3c
test: execute CLI tests like all other Jest tests
...
As CLI tests based on fixtures have been deleted, and the remaining tests are now using Jest we can run them as part of the classic `yarn test --core` command.
I also removed the dedicated GitHub Actions.
2020-12-08 19:26:02 +01:00
Norbert de Langen
aab422d33d
move ts3.4 into dist, generate types into dist/ts3.9, make esm dist for all, fix issues
2020-12-08 17:54:25 +01:00
Norbert de Langen
0c8dfccdf8
Merge branch 'next' into perf/esm-dist
...
# Conflicts:
# lib/core/package.json
# lib/ui/package.json
2020-12-08 15:43:09 +01:00