595 Commits

Author SHA1 Message Date
merceyz
f0ccec360b chore: add missing dependencies for build 2021-05-13 22:02:17 +02:00
Michael Shilman
cf0852ab51 Merge branch 'next' into feat/cli-repro-template 2021-05-11 15:09:45 +08:00
Gaëtan Maisse
27fa6e1889
refactor(repro): make the generator responsible for mkdir the repro directory if needed 2021-05-10 22:49:15 +02:00
Michael Shilman
16d58fe836 Fix appName in both repro and e2e 2021-05-10 15:08:37 +08:00
Michael Shilman
e43a50ca9d Merge branch 'next' into pr/14600 2021-05-10 11:48:05 +08:00
Gaëtan Maisse
95c31b7379
e2e: reduce Cypress timeout to 4s 2021-05-09 20:43:22 +02:00
Gaëtan Maisse
426bbe55ab
e2e: use config from repro instead of duplicating them 2021-05-09 19:21:37 +02:00
Gaëtan Maisse
194a699104
feat(repro): add pnp flag to use Yarn in Plug'n'Play mode 2021-05-09 17:22:22 +02:00
Michael Shilman
0609971609 Fix deepscan 2021-05-08 21:51:32 +08:00
Michael Shilman
33405b0553 Merge branch 'next' into feat/cli-repro-template 2021-05-08 21:41:18 +08:00
Michael Shilman
6f737257a5 Merge branch 'next' into 14796-split-out-marionette 2021-05-06 20:38:44 +08:00
Michael Shilman
d857bdb991 Merge branch 'next' into 14796-remove-rax 2021-05-06 20:34:02 +08:00
Michael Shilman
b6c3fb832e Merge branch 'next' into 14796-split-out-marko 2021-05-06 20:32:28 +08:00
Michael Shilman
1ade592e34 Merge branch 'next' into 14796-split-out-mithril 2021-05-06 20:28:08 +08:00
Gaëtan Maisse
c1ee5adb9a
example(lit): filter lit-kitchen-sink from yarn build-storybooks command for now
As `lit-kitchen-sink` is not part of the monorepo it requires some extra work to make it build properly as we need to install deps first.
2021-05-05 17:54:56 +02:00
Michael Shilman
bbb6c29070 Refactor mithril into its own repo 2021-05-05 01:15:07 +08:00
Michael Shilman
e0d12e829a Refactor marko into its own repo 2021-05-05 01:05:32 +08:00
Michael Shilman
1ad1a208b2 Refactor marionette into its own repo 2021-05-05 00:58:14 +08:00
Michael Shilman
f932e5845c Remove rax e2e 2021-05-05 00:55:49 +08:00
Michael Shilman
079a0ca242 More cleanup 2021-05-05 00:54:06 +08:00
Gaëtan Maisse
d2e6d028d8
e2e: fix cra_bench e2e config 2021-05-03 09:44:59 +02:00
Gaëtan Maisse
86899610c6
e2e: fix name replacement in repro config, add hack for CRA setup, ensure repro is a git repo 2021-04-30 23:25:45 +02:00
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
Norbert de Langen
b6f315644a add --parallel flag 2021-04-19 16:14:16 -04:00
Norbert de Langen
543bdce05e ADD nx tooling 2021-04-19 16:14:15 -04: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