6 Commits

Author SHA1 Message Date
Norbert de Langen
0930e4d8d3
move version.json 2020-12-09 13:23:02 +01:00
Josh Soref
b42a94ca89 spelling: constraint
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2020-09-29 09:42:29 -04:00
Gaëtan Maisse
4364ee66a0
fix(cli): add some dependencies to be able to run addon-docs with Yarn 2 out of the box 2020-07-12 16:16:32 +02:00
Gaëtan Maisse
c0e00c600e
feat(cli): use versions.json to get SB packages versions
Previously it used `devDep` of `package.json`. It was working but doing
so all Storybook packages had to be added to `devDep`.

Moreover, as `@storybook/react-native` was not part of the monorepo
anymore it's version was stuck to `6.0.0-alpha.0` causing a download
of `6.0.0-alpha.0` SB packages when running `yarn install`.
2020-07-11 11:10:02 +02:00
Gaëtan Maisse
b0e1d93eca
refactor: create a executeCommand function and use it for every yarn or npm calls
It move the `spawnSync` usage to only a single place which is simpler to maintain.
It also simplify testing as there is no more need to mock an external dep
2020-06-09 08:19:11 +02:00
Gaëtan Maisse
ed79e5bb42
refactor: introduce a JsPackageManager abstract class and specialized subclasses for NPM, Yarn and Yarn 2.
The goal of this will be to use the Factory Pattern to encapsulate everything specific to a package manager in a single class.
Then a factory will return an instance of NPM, Yarn or Yarn 2 proxy class according to the package manager used/prefered in end project.
All CLI code will be package manager agnostic and will just call functions of JsPackageManager interface.
2020-06-08 17:25:42 +02:00