11 Commits

Author SHA1 Message Date
Victor Savkin
2f8aea8576
cleanup(misc): remove console.log 2022-05-31 20:59:47 -04:00
Miroslav Jonaš
c9e28a183e
chore(core): cleanup create-nx-workspace from obsolete code (#10174) 2022-05-05 15:31:19 -04:00
Miroslav Jonaš
43ac1f9c43
fix(core): fix broken cnw with pnpm v7 (#10175) 2022-05-05 19:31:11 +00:00
Miroslav Jonaš
9e06020575
feat(core): toggle additional prompts in CNW with a flag (#9546)
* feat(core): toggle additional prompts in CNW with a flag

* feat(repo): handle cli params with yargs

* feat(core): add docs generation

* chore(repo): add colors

* fix(core): migrate to yargs 17.x

* fix(core): update markup generation
2022-03-29 14:00:07 -04:00
Linbudu
8945604c87
chore(core): use extrapolated ts type in create-nx-workspace & create… (#8452)
* chore(core): use extrapolated ts type in create-nx-workspace & create-nx-plugin

* chore(core): use extrapolated ts type in create-nx-workspace & create-nx-plugin

* fix(core): adjust package manager list order
2022-01-12 15:10:41 -05:00
Victor Savkin
973cf4e243 fix(misc): add -W to yarn add to fix the error in yarn monorepos 2021-12-22 12:51:16 -05:00
Jay McDoniel
474dc283ce
fix(core): use pnpm exec instead of pnpx (#7695)
pnpm is deprecating pnpx and suggests using pnpm exec instead.
pnpx still works at the moment, but if for whatever reason it
isn't installed then this pr can make create-nx-worksapce stsill work.

[pnpx documenation](https://pnpm.io/pnpx-cli)
2021-11-12 11:49:53 -05:00
Chau Tran
3bcfaf018d
feat(core): detect package manager used to invoke create-nx-(plugin|workspace) (#6749)
* feat(core): detect package manager used to invoke create-nx-(plugin|workspace)

When consumers create a new Workspace (or Plugin) using the create-nx-workspace (or
create-nx-plugin) generator, the package manager used to invoke the generator will be detected and
used as packageManager. For example: pnpx create-nx-workspace will use pnpm, yarn create
nx-workspace will use yarn. Explicit `--packageManager` flag will be priority over the detection.

* cleanup(core): reassign SELECTED_PM after each test run

* fix(core): augment args instead of hardcode --packageManager flag

* cleanup(core): use packageManagerLockFile instead of magic strings

* cleanup(core): fix typo in create-nx-workspace

* cleanup(core): ensure new workspace name for every test

* feat(core): detect package manager used to invoke create-nx-(plugin|workspace)

When consumers create a new Workspace (or Plugin) using the create-nx-workspace (or
create-nx-plugin) generator, the package manager used to invoke the generator will be detected and
used as packageManager. For example: pnpx create-nx-workspace will use pnpm, yarn create
nx-workspace will use yarn. Explicit `--packageManager` flag will be priority over the detection.

* cleanup(core): reassign SELECTED_PM after each test run

* fix(core): augment args instead of hardcode --packageManager flag

* cleanup(core): use packageManagerLockFile instead of magic strings

* cleanup(core): fix typo in create-nx-workspace

* cleanup(core): ensure new workspace name for every test

* fix(core): move detectInvokedPackageManager off of tao

Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
2021-08-18 12:09:00 -04:00
Emily Xiong
72ce35264f
fix(core): change legacy_peer_deps to npm env variable (#5541) 2021-05-04 16:02:12 -04:00
Phillip Barta
6bd6e1485f
feat(core): added package manager union type (#5378)
cleanup(misc): add package manager union type
2021-04-19 15:24:02 -04:00
vsavkin
cad02e4399 feat(core): speed up and clean up create-nx-workspace 2021-03-11 15:56:00 -05:00