19 Commits

Author SHA1 Message Date
Gaëtan Maisse
1497a4773e
fix(cli): fix computation of Angular version in sb init
`packageManager.getVersion` was fetching the latest version from npm
registry instead of checking the version installed locally.
2021-05-14 21:10:11 +02:00
Michael Shilman
c8fecf0ad5 CLI/Angular: Add ng12 + docs inline rendering support 2021-05-14 12:32:54 +08:00
Gaëtan Maisse
4a0c9a9b0d
fix(cli): generate docs:json NPM script dynamically according to tsconfig file
Angular CLI 10 introduced a `tsconfig.base.json` file that we have to use to generate doc with compodoc.
So if `tsconfig.base.json` exist then use it, otherwise assume there is a `tsconfig.json` file
2020-07-20 21:23:15 +02:00
Michael Shilman
ed2e2ed3a0 CLI: Fix Angular template compodoc settings 2020-07-15 19:19:26 +08:00
tooppaaa
86e487a395 Update CLI for angular 2020-07-05 11:11:55 +02:00
tooppaaa
3b6a06aaa1 fix: rename baseGenerator 2020-06-12 00:28:37 +02:00
tooppaaa
0c7e8edf84 CLI: angular 2020-06-11 23:25:45 +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
b6497c2fec
refactor: move getVersionedPackages to JsPackageManager 2020-06-08 17:25:44 +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
Yann Braga
5f4eee1278 refactor(cli): improve typings for story format 2020-05-16 18:01:59 +02:00
Gaëtan Maisse
8e0e02f900
refactor(cli): migrate Angular generator to TS 2020-05-15 21:49:19 +02:00