29 Commits

Author SHA1 Message Date
Valentin Palkovic
499346eaac Gracefully shutdown and cleanup execa child processes
Execa child processes should be cleanup up as soon as the parent process quits. During initialization the "cancel" event should properly be sent and it should not lead to error events sent.
2023-07-20 13:57:40 +02:00
Valentin Palkovic
a15c650103 Fix 'yarn build' command on windows systems 2023-03-10 09:17:12 +01:00
Yann Braga
9612ae40cc fix yarn build command 2023-02-15 09:42:12 +01:00
Yann Braga
a27608e24a fix execa usage in build and check scripts 2022-11-21 12:44:52 +01:00
Tom Coleman
d3fa0bef43 Use execa 6.x in scripts
We need to use an obtuse method to import it as it is ESM only and `ts-node` doesn't play well with that.

See https://github.com/TypeStrong/ts-node/discussions/1290
2022-11-05 21:12:31 +11:00
Katerina Skroumpelou
5c5367b33c chore: rename prepare script to prep 2022-09-01 15:56:01 +03:00
Michael Shilman
3617a62a6e Build: Fix prepare script in build command 2022-08-23 17:46:55 +08:00
Michael Shilman
47fc954b59 Build: Fix yarn build to use new prep script 2022-08-22 18:51:22 +08:00
Yann Braga
b503e3d3fe fix build-package command 2022-08-05 12:13:39 +02:00
Yann Braga
2adb153902 fix yarn build command 2022-07-29 17:22:56 +02:00
Norbert de Langen
7d80c53471
add linting on scripts dir && fix linting 2022-07-23 17:15:13 +02:00
Michael Shilman
93c4ff13d9 Extract doc blocks 2022-06-29 00:13:43 +08:00
Norbert de Langen
77c0f3ab81
Merge commit '13b40e371555122513d307be94da2f0705df34ef' into future/modern-frameworks
# Conflicts:
#	addons/a11y/package.json
#	addons/actions/package.json
#	addons/backgrounds/package.json
#	addons/controls/package.json
#	addons/docs/package.json
#	addons/essentials/package.json
#	addons/interactions/package.json
#	addons/jest/package.json
#	addons/links/package.json
#	addons/measure/package.json
#	addons/outline/package.json
#	addons/storyshots/storyshots-core/package.json
#	addons/storysource/package.json
#	addons/toolbars/package.json
#	addons/viewport/package.json
#	docs/faq.md
#	examples/angular-cli/.storybook/main.js
#	examples/angular-cli/package.json
#	examples/cra-kitchen-sink/.storybook/main.js
#	examples/cra-kitchen-sink/package.json
#	examples/cra-react15/.storybook/main.js
#	examples/cra-react15/package.json
#	examples/cra-ts-essentials/.storybook/main.ts
#	examples/cra-ts-essentials/package.json
#	examples/cra-ts-kitchen-sink/.storybook/main.ts
#	examples/cra-ts-kitchen-sink/package.json
#	examples/ember-cli/.storybook/main.js
#	examples/ember-cli/package.json
#	examples/external-docs/package.json
#	examples/html-kitchen-sink/.storybook/main.js
#	examples/html-kitchen-sink/package.json
#	examples/official-storybook/main.ts
#	examples/official-storybook/package.json
#	examples/preact-kitchen-sink/.storybook/main.js
#	examples/preact-kitchen-sink/package.json
#	examples/react-ts-webpack4/package.json
#	examples/react-ts/package.json
#	examples/server-kitchen-sink/package.json
#	examples/standalone-preview/package.json
#	examples/svelte-kitchen-sink/.storybook/main.js
#	examples/svelte-kitchen-sink/package.json
#	examples/vue-3-cli/.storybook/main.js
#	examples/vue-3-cli/package.json
#	examples/vue-cli/.storybook/main.js
#	examples/vue-cli/package.json
#	examples/vue-kitchen-sink/.storybook/main.js
#	examples/vue-kitchen-sink/package.json
#	examples/web-components-kitchen-sink/.storybook/main.js
#	frameworks/angular/package.json
#	frameworks/ember/package.json
#	frameworks/preact-webpack5/package.json
#	frameworks/vue-webpack5/package.json
#	frameworks/vue3-webpack5/package.json
#	lib/addons/package.json
#	lib/api/package.json
#	lib/builder-webpack4/package.json
#	lib/builder-webpack5/package.json
#	lib/channel-postmessage/package.json
#	lib/channel-websocket/package.json
#	lib/channels/package.json
#	lib/cli/package.json
#	lib/cli/src/automigrate/fixes/angular12.test.ts
#	lib/cli/src/automigrate/index.ts
#	lib/cli/src/versions.ts
#	lib/client-api/package.json
#	lib/client-logger/package.json
#	lib/codemod/package.json
#	lib/components/package.json
#	lib/core-client/package.json
#	lib/core-common/package.json
#	lib/core-events/package.json
#	lib/core-server/package.json
#	lib/core-server/src/__snapshots__/vue-3-cli_preview-dev-posix
#	lib/core-server/src/__snapshots__/vue-3-cli_preview-prod-posix
#	lib/core-vite/package.json
#	lib/csf-tools/package.json
#	lib/docs-tools/package.json
#	lib/instrumenter/package.json
#	lib/manager-webpack4/package.json
#	lib/manager-webpack5/package.json
#	lib/node-logger/package.json
#	lib/postinstall/package.json
#	lib/preview-web/package.json
#	lib/router/package.json
#	lib/source-loader/package.json
#	lib/store/package.json
#	lib/telemetry/package.json
#	lib/theming/package.json
#	lib/ui/package.json
#	presets/server-webpack/package.json
#	renderers/html/package.json
#	renderers/react/package.json
#	renderers/svelte/package.json
#	renderers/web-components/package.json
#	scripts/build-package.js
#	scripts/bundle-package.ts
#	yarn.lock
2022-05-26 14:46:04 +02:00
Andrey Okonetchnikov
ab06f82e70 fix(CLI): Don't throw is Ctrl + C was pressed when selecting a package 2022-05-11 13:21:06 +02:00
Norbert de Langen
a7e6128cf0
minor optimizations 2022-04-28 16:52:35 +02:00
Norbert de Langen
5d9a1c811f
remove dev script
change the watch mode of yarn build to use the prepare script
add a --watch flag to prepare script
remove the babel --copy-file flag where possible
remove noise from prepare
improve error reporting from prepare
cleanup
2022-01-26 14:12:34 +01:00
Michael Shilman
8888ebc014 Fix prettier 2.3 formatting across the codebase 2022-01-14 23:26:56 +08:00
Federico Moreno
4ad4a1061c Fix build selection menu
Added option to require 1 selection in the build menu.

Co-authored-by: Cristian Martinez <dev.cmartinez@gmail.com>
Co-authored-by: Filipe Kiss <hello@filipekiss.com.br>
Co-authored-by: MarsupiL <mathias_bonnet@yahoo.fr>
2021-10-29 15:27:06 +02:00
Yann Braga
2d9b138ec0 fix(build-cli): only kill other processes on fail 2021-02-05 10:06:48 +01:00
Daniel Schmidt
de095b3f9c remove unused groups 2020-12-02 09:30:35 +01:00
Daniel Schmidt
6c029420b9 refactor: replace inquirer with prompts 2020-11-23 15:06:51 +01:00
Norbert de Langen
448bdddd29
Merge branch 'next' into tech/ci-example-overhaul-clean
# Conflicts:
#	examples/angular-cli/jest.config.js
#	lib/cli/src/generators/HTML/index.js
#	lib/cli/src/generators/HTML/template-csf/stories/0-Welcome.stories.js
#	yarn.lock
2020-05-18 14:21:17 +02:00
Yann Braga
8b17baee51 chore(build-packages): use * when using --all flag
- Also add a warn message when using --all with --watch mode
2020-05-16 17:10:43 +02:00
Yann Braga
f04dc75147 chore(build-package): run processes in parallel 2020-05-16 16:41:42 +02:00
tooppaaa
072b774693 core: ci and examples generation 2020-05-09 11:34:50 +02:00
Yann Braga
823ab45e32 chore(build-package): no. of pages based on height
- suits every terminal shape!
2020-04-08 14:18:07 +02:00
Yann Braga
7d1ce132cb chore(build-script): use shorter arguments 2020-04-08 13:43:30 +02:00
Norbert de Langen
bd5db5929a
IMPROVE paging 2020-04-08 13:06:54 +02:00
Yann Braga
5560b41944 chore: add build packages script 2020-04-07 20:18:10 +02:00