Sachin Thakur
c33337d50c
Support Both js and jsx or ts and tsx
...
Updated Regex to accommodate both Js and JSX or ts and TSX.
Issue:
What I did
Update default template generation in storybook cli to add jsx/ts/tsx file.
2020-03-01 11:22:15 +05:30
Michael Shilman
dac6752d47
v6.0.0-alpha.20
2020-02-27 08:26:52 +08:00
Michael Shilman
b5b1bda641
v6.0.0-alpha.19
2020-02-24 22:28:05 +08:00
Michael Shilman
480370557a
v6.0.0-alpha.18
2020-02-22 04:31:14 +08:00
Michael Shilman
36327ee08e
v6.0.0-alpha.17
2020-02-21 11:58:31 +08:00
Michael Shilman
b2d08977a3
v6.0.0-alpha.16
2020-02-21 11:45:13 +08:00
Michael Shilman
efd0256348
v6.0.0-alpha.15
2020-02-20 11:54:32 +08:00
Michael Shilman
4341bc65f7
v6.0.0-alpha.14
2020-02-19 06:53:15 +08:00
Gaëtan Maisse
7e486a554e
Merge pull request #9902 from storybookjs/add-downlevel-dts
...
Fix: Add downlevel dts
2020-02-18 22:29:11 +01:00
Gaëtan Maisse
781a472562
Merge pull request #9866 from storybookjs/yarn-2-cli-sb-init-compatibility
...
CLI: Add Yarn 2 compatibility
2020-02-18 20:59:25 +01:00
Lynn Chyi
23b7d9fde9
Add ts3.5 to package.json's "files" attr
...
(cherry picked from commit f0edad2d0cb5c74d2f03a13e1ca1cb27287f3625)
2020-02-18 20:37:59 +01:00
jamesgeorge007
2bf90aae28
fix: parse args the native way
2020-02-17 22:23:24 +05:30
jamesgeorge007
c674a3868e
fix: ignore rule
2020-02-17 17:01:21 +05:30
jamesgeorge007
6e36ee543e
fix: lint
2020-02-17 17:00:40 +05:30
jamesgeorge007
458c70a0d5
refactor: use inline approach
2020-02-17 16:23:02 +05:30
jamesgeorge007
de0c49c9b7
feat: recommend commands
2020-02-17 16:22:32 +05:30
jamesgeorge007
93f143c75d
chore: remove didyoumean
2020-02-17 16:19:14 +05:30
jamesgeorge007
77db09eb00
chore: add leven as a dep
2020-02-17 16:17:24 +05:30
Gaëtan Maisse
e629f50924
fix(cli): add @storybook/addon-knobs in sb init
on Mithril project as it is listed in SB config template
...
3dd714d353/lib/cli/src/generators/MITHRIL/template-csf/.storybook/main.js
2020-02-16 16:10:41 +01:00
Gaëtan Maisse
f119fdf18c
fix(cli): add @storybook/addon-knobs in sb init
on Meteor project as it is listed in SB config template
...
3dd714d353/lib/cli/src/generators/METEOR/template-csf/.storybook/main.js
2020-02-16 16:10:41 +01:00
Gaëtan Maisse
ef9865234c
fix(cli): add peerDeps of @storybook/ember in sb init
on Ember project
2020-02-16 16:10:41 +01:00
Gaëtan Maisse
f41ac2b3a8
test(cli): add missing dep in riot fixture
...
`riot-tmpl` is a peerDependency of `riot-compiler`
2020-02-16 16:10:41 +01:00
Gaëtan Maisse
9e4f21640e
test(cli): add tests to check Yarn 2 compatibility
...
These tests mimic the ones done to test SB CLI with "classic" yarn.
However, some magic setup and `package.json` customization are needed in order to make Yarn 2 works inside a Yarn v1 workspace.
2020-02-16 16:10:41 +01:00
Gaëtan Maisse
febe9e7204
feat(cli): make CLI works with Yarn 2 for React scripts projects
...
Before, it was assumed that "When working with `create-react-app@>=2.0.0`, we know `babel-loader` is installed."
But `babel` is a peer dependency of `@storybook/core` (itself dep of `@storybook/react`) and so it must be added to the project's `package.json`
2020-02-16 16:10:41 +01:00
Gaëtan Maisse
e46fecfc05
feat: make SB CLI compatible with yarn 2
2020-02-16 09:23:28 +01:00
Gaëtan Maisse
59fbd10bf5
refactor: extract npm and yarn processing from latestVersion
in their own functions
...
Preparatory refactoring to simplify future compatibility with Yarn 2.
2020-02-16 09:23:28 +01:00
Michael Shilman
5b11df0638
v6.0.0-alpha.13
2020-02-15 20:43:01 +08:00
Gaëtan Maisse
a06ff34138
fix(cli): add missing pattern in babel ignore attribute
...
Added the template folder that has been forgotten in 3dd714d3532687d958c41e093187b84ffca603ee
2020-02-14 21:53:02 +01:00
Michael Shilman
ba5430acb5
v6.0.0-alpha.12
2020-02-14 01:00:02 +08:00
Michael Shilman
f46cdcf7f4
v6.0.0-alpha.11
2020-02-13 12:07:31 +08:00
Gaëtan Maisse
ded6324ebd
refactor(cli): replace some default exports with named ones
...
For some reason why see https://blog.neufund.org/why-we-have-banned-default-exports-and-you-should-do-the-same-d51fdc2cf2ad
2020-02-11 19:41:47 +01:00
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
Michael Shilman
558371ae9d
v6.0.0-alpha.10
2020-02-11 22:29:59 +08:00
Michael Shilman
4f0a75c824
v6.0.0-alpha.9
2020-02-09 01:24:54 +08:00
Michael Shilman
582b5c4f43
v6.0.0-alpha.8
2020-02-08 00:22:00 +08:00
Michael Shilman
45c0400457
v6.0.0-alpha.7
2020-02-07 23:46:35 +08:00
Michael Shilman
d489e651a3
Merge branch 'next' into fix/9421-local-addons
2020-02-07 10:38:36 +08:00
Norbert de Langen
686c2bfe61
REMOVE addon-notes remnants
2020-02-07 00:06:57 +01:00
Norbert de Langen
0f5b841937
REMOVE babel-6 cli fixture
2020-02-06 11:12:42 +01:00
Michael Shilman
34bfe84397
v6.0.0-alpha.6
2020-02-05 07:42:41 +08:00
Norbert de Langen
82c0abfce7
Correct the file path for the Button story ( #9325 )
...
Correct the file path for the Button story
2020-02-04 10:02:57 +01:00
Michael Shilman
7393fc18ce
v6.0.0-alpha.5
2020-02-04 16:51:13 +08:00
Michael Shilman
d7f493b305
v6.0.0-alpha.4
2020-02-03 23:47:53 +08:00
Norbert de Langen
746b2a4f11
Merge branch 'next' into upgrades
...
# Conflicts:
# addons/essentials/package.json
# addons/notes/package.json
# addons/storyshots/storyshots-core/package.json
# app/angular/package.json
# app/html/package.json
# app/marko/package.json
# app/preact/package.json
# app/react/package.json
# app/vue/package.json
# app/web-components/package.json
# examples/riot-kitchen-sink/package.json
# examples/vue-kitchen-sink/package.json
# lib/cli/package.json
# lib/core/package.json
# yarn.lock
2020-02-03 13:40:26 +01:00
Norbert de Langen
aa7fa009e8
CHANGE lint-staged config after upgrading
2020-02-03 13:15:59 +01:00
Norbert de Langen
a76346b76c
Add angular 8 and 9 cli fixtures ( #8769 )
...
Add angular 8 and 9 cli fixtures
2020-02-03 12:42:27 +01:00
Michael Shilman
7f11ee2d76
v6.0.0-alpha.3
2020-02-02 13:47:43 +08:00
Kai Roeder
38e41c5dd4
add missing css file
2020-02-01 00:23:42 +01:00
Kai Roeder
9bf067d1b8
update cli fixture angular 9 to rc.12
2020-01-31 23:58:23 +01:00