83 Commits

Author SHA1 Message Date
Gaëtan Maisse
2adccac54d refactor(cli): remove esm as source code is now transpiled to CJS
- Move `generate.js` to have it transpiled by Babel too
2020-02-11 19:41:47 +01:00
Gaëtan Maisse
3dd714d353 refactor: transpile @storybook/cli to CJS with Babel
- move all source code in `src` as it's, by convention in SB monorepo, the source folder for Babel
 - update `.babelrc.json` to ignore all templates files
 - add `prepare` NPM script as in all other libs
 - update `cleanup` stage of `prepare` script to avoid removing anything from `@storybook/cli/dist/generators/**/template*` folder because there are the template files that will be copied to initialize SB on users' projects
2020-02-11 19:41:47 +01:00
Norbert de Langen
030ba49f00 FIX commander migration 2019-11-15 22:33:35 +01:00
Michael Shilman
2cd2e8b07b CLI: Postinstall hooks for addons 2019-11-04 22:06:32 +08:00
Michael Shilman
67f30476cc CLI: React-scripts TS template & test 2019-10-17 15:52:20 +08:00
Michael Shilman
ee540292cc CLI: MDX format option for CRA apps 2019-10-10 23:55:01 +08:00
Norbert de Langen
8fde590b17 FIX cli tests 2019-08-20 17:14:56 +02:00
Norbert de Langen
4e9f9bda46 REMOVE need for babel-register in our CLI 2019-08-20 15:56:29 +02:00
Michael Shilman
bb35cb4389
CLI: suggest possible matches on invalid command (#7658)
CLI: suggest possible matches on invalid command
2019-08-05 22:42:42 +08:00
jamesgeorge007
f7f9a15f13 fix: lint 2019-08-05 18:12:43 +05:30
jamesgeorge007
42e7c34e72 Show up local packages with sb info
closes #7621
2019-08-02 14:40:33 +05:30
jamesgeorge007
845275a20a Suggest matching commands if the user mistypes 2019-08-01 21:51:21 +05:30
Norbert de Langen
2caf6af6d3 FIX linting 2019-07-31 18:00:01 +02:00
James George
8f57c6edcc
Merge pull request #7627 from jamesgeorge007/hotfix/fixup-usage-info
fix(cli): Fixup usage information
2019-07-30 20:55:31 +05:30
jamesgeorge007
372c0d28b7 Fixup usage information
fixes #7626
2019-07-30 19:49:31 +05:30
jamesgeorge007
67f365b9e1 Include additional information with sb info
@storybook/* package
2019-07-30 18:18:15 +05:30
Michael Shilman
7be5727376 CLI: sb migrate typescript support 2019-07-18 12:37:59 +08:00
Michael Shilman
b4625b0fcd CLI: Add file renaming to migrate 2019-07-14 14:10:40 +08:00
Michael Shilman
88c2bcc70b Oops 2019-07-14 13:47:33 +08:00
Michael Shilman
73c03524a3 CLI: Migration required 2019-07-14 13:36:25 +08:00
Michael Shilman
eeb8f65034 Fix typo 2019-07-14 13:35:15 +08:00
Michael Shilman
a36e84e750 CLI: Add migrate command to call codemods 2019-07-14 13:28:35 +08:00
Hypnosphi
e467287d32 Fix Lint errors 2019-07-01 03:01:26 +03:00
jamesgeorge007
0f4c306378 Adds new info command
prints debugging information about the local environment
2019-06-02 09:32:42 +05:30
Norbert de Langen
1c1b22817b ADD --yes option to CLI init command && USE --yes command to skip question where possible 2019-02-09 18:20:24 +01:00
Keraito
bd421eb4da Merge branch 'next' into cli-add 2018-12-26 12:50:01 +01:00
Michael Shilman
59c40d3c5e
Merge branch 'master' into cli-framework-choice 2018-10-11 08:18:37 +08:00
Keraito
92c98a08fa Merge branch 'master' into cli-framework-choice 2018-10-10 21:42:29 +02:00
Michael Shilman
29def997a9 Remove start/build commands for now
"sb start/build" should call start-storybook and build-storybook directly, rather than calling "yarn storybook". This way we can use "sb start/build" in the package.json NPM scripts and expose users to the CLI that way. For now let's remove it.
2018-10-11 03:27:52 +08:00
Michael Shilman
5e38138dd8 Rename storybook CLI to sb to avoid conflicts with storybook NPM script
We use "yarn storybook" everywhere and creating a CLI called "storybook" introduces a name conflict. Plus "sb" is shorter.
2018-10-11 03:24:04 +08:00
Keraito
c918b5ae94 Revert change from other PR 2018-09-30 15:46:50 +02:00
Keraito
5a64fcec4d Add initial command to add an addon 2018-09-27 06:24:30 +02:00
Keraito
242dcbd7dd Remove debugging flag 2018-09-21 20:03:31 +02:00
Keraito
ced0fcfa16 Isolate getstorybook code 2018-09-21 19:57:51 +02:00
Keraito
d60900f537 Remove manual HTML CLI flag 2018-09-14 02:19:14 +02:00
Keraito
d20e1b3043 Add CLI flag to choose SB framework to install 2018-09-14 02:18:22 +02:00
Keraito
fa40eefcb6 Also init storybook on deprecated getstorybook 2018-09-12 12:49:15 +02:00
Keraito
14f7b5fb16 Change descriptions of commands 2018-09-12 12:38:00 +02:00
Keraito
79532d4281 Fix linter 2018-09-12 12:36:57 +02:00
Keraito
fc59925328 Deprecate getstorybook 2018-09-12 00:37:13 +02:00
Keraito
d80dc8f3b2 Add start and build command 2018-09-12 00:33:37 +02:00
Keraito
01d7080267 Add fallback for unknown commands and help on storybook 2018-09-12 00:33:37 +02:00
Keraito
b9255b2024 Change getstorybook command to storybook init 2018-09-12 00:33:37 +02:00
libetl
f04574fbbf fixing the locks thanks to my home computer using linux 2018-08-27 21:52:51 +02:00
lionel benychou
3893d5299d riot integration 2018-08-27 19:42:20 +02:00
Hypnosphi
e496dfbb91 Update CLI 2018-07-04 23:12:47 +03:00
Hypnosphi
73dc63bb67 Update dependencies 2018-06-20 13:50:17 +03:00
Keraito
8d9fbb7c9e Update generators for HTML and Marko 2018-05-09 15:37:48 +02:00
Filipp Riabchun
c47c5fc9ba
Merge branch 'master' into use-npm 2018-05-09 02:03:09 +03:00
Keraito
5f991ff83d Use npmOptions in all generators 2018-05-09 00:34:08 +02:00