tooppaaa
fff09169fe
CLI: rax
2020-06-11 23:30:34 +02:00
Gaëtan Maisse
9dc7c554f4
refactor: ensure dep
and devDeps
are always defined when retrieving package.json
...
Doing this just after having read the file enable us to remove duplication and unneeded calls to `writePackageJson`.
2020-06-09 08:19:12 +02:00
Gaëtan Maisse
26dd11bf60
refactor: move readPackageJson
and writePackageJson
in their own helper
2020-06-09 08:19:11 +02:00
Gaëtan Maisse
94620167cc
refactor: create function to add SB command in scripts
attribute of package.json
2020-06-08 20:08:16 +02:00
Gaëtan Maisse
2912bcbefe
refactor: remove unneeded params and variables
...
All this variables were used to check if user was running Yarn and do this accordingly.
Now we use the factory to get the "right" version of JsPackageManager instance so there is no need to worry anywhere about that.
2020-06-08 20:08:15 +02:00
Gaëtan Maisse
126e7e2ea8
refactor: move getVersion
to JsPackageManager
2020-06-08 17:25:45 +02:00
Gaëtan Maisse
2760021aa1
refactor: move getVersions
to JsPackageManager
2020-06-08 17:25:45 +02:00
Gaëtan Maisse
c714aca145
refactor: move installDependencies
to JsPackageManager
...
Also rename it to `addDependencies` (a.k.a. `yarn add`) to avoid confusion with `installDepsFromPackageJson` (a.k.a. `yarn install`).
2020-06-08 17:25:44 +02:00
Gaëtan Maisse
56de607807
refactor: move retrievePackageJson
to JsPackageManager
2020-06-08 17:25:44 +02:00
Gaëtan Maisse
10e4101b20
refactor: introduce JsPackageManager in all generators
2020-06-08 17:25:44 +02:00
Gaëtan Maisse
ffa152204f
refactor(cli): use a unified type across all CLI generators
2020-05-17 16:49:01 +02:00
Gaëtan Maisse
ccdffd2e16
refactor(cli): migrate Rax generator to TS
2020-05-15 21:49:24 +02:00