54 Commits

Author SHA1 Message Date
Jason Jean
4c4826667e
fix(core): fix defaulting object properties to empty {} (#7288) 2021-10-08 13:15:37 -04:00
Jason Jean
5c1bc60de8
fix(core): fix validation of string length (#6741) 2021-08-17 02:42:22 +00:00
Jason Jean
d6cb7f9fdc
fix(core): parse aliases in target configuration and coerce aliased options (#6705) 2021-08-13 13:30:29 -04:00
Leosvel Pérez Espinosa
86a113c682
fix(core): fix prompt support for enum definitions (#6651) 2021-08-09 11:19:28 +01:00
Chau Tran
f7aeb99e58
fix(core): ensure to only passthrough verbose if isVerbose is true (#6607)
* fix(core): ensure to only passthrough verbose if isVerbose is true

ISSUES CLOSED: #6606

* fix(core): update applyVerbosity test

Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
2021-08-05 15:18:57 -04:00
Chau Tran
ffcd28348b
fix(core): apply verbose flag to combined options if the schema allows it (#6593)
`--verbose` flag is spliced from the command args upon invoking nx commands. This PR makes sure to
set the `verbose` property based on `isVerbose` flag if the Schema allows it

ISSUES CLOSED: #6520 #4160

Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-08-03 19:39:47 +01:00
Jason Jean
e53e58bc83
fix(core): add better option validation (#6557) 2021-07-30 19:04:56 -04:00
Leosvel Pérez Espinosa
0af1780b81
fix(core): improve run-commands dx for ready-when (#6448) 2021-07-22 09:17:22 +01:00
Leosvel Pérez Espinosa
3a18c4da0a
fix(core): validate pattern if specified for a schema property (#6395) 2021-07-16 16:27:22 +01:00
Phillip Barta
fe97444d78
feat(core): migrate prettier to v2.3.1 (#5623) 2021-06-17 16:44:30 +02:00
Jason Jean
2c533ace36
fix(core): fix aliased args parsing (#5973) 2021-06-11 16:46:55 -04:00
Leosvel Pérez Espinosa
329bb25404
feat(core): warn when deprecated options are used in generators and executors (#5845) 2021-06-01 21:45:06 -04:00
Jason Jean
c7ce8d2b28
fix(core): consistently process args with yargs-parser instead of minimist (#5488) 2021-04-30 19:08:59 -04:00
Tasos Bekos
9cb23ddbbd feat(core): replace inquirer dependency with enquirer 2021-04-06 10:31:30 -04:00
vsavkin
2eadc30f21 cleanup(misc): speed up requiring devkit 2021-04-04 11:11:16 -04:00
Jason Jean
dafdfded95
fix(core): fix prompts for enums (#5036) 2021-03-17 14:29:35 -04:00
Jason Jean
d51bbe04f9 feat(storybook): migrate storybook schematics to devkit 2021-02-10 09:35:54 -05:00
Juri
b2d39060cc fix(core): value coercion for schemas with oneOf string enums 2021-02-03 09:04:05 -05:00
Jason Jean
b36c4b5cc1
fix(linter): add @nrwl/linter as a devDependency and error on improper enum schema (#4634) 2021-01-28 16:30:10 -05:00
Victor Savkin
f075b987c2 feat(core): add support for number and multiselect prompts
Closes #4593
2021-01-28 10:41:02 -05:00
Jason Jean
e003d528e1
fix(core): properly set smart defaults on windows (#4616) 2021-01-26 16:38:20 -05:00
Victor Savkin
3fb9552ecb fix(core): only do type casting for string values when parsing command line args
Closes #4584
2021-01-22 21:37:57 -05:00
Jason Jean
7482944eea feat(testing): move jest builder to devkit 2021-01-14 08:54:38 -05:00
Victor Savkin
8a88fc8c71 feat(core): support schema properties without type 2021-01-11 14:12:30 -05:00
Ali Yusuf
872ebd89c4 fix(core): fix(core): validate options for oneOf rule with factorized type
ISSUES CLOSED: #4484
2021-01-11 09:20:24 -05:00
Victor Savkin
1cb152eee7 feat(core): set path property based on cwd when running generators 2020-12-29 20:10:15 -05:00
Victor Savkin
9923ce93d5 feat(core): support strict schemas with no additional properties
Fixes: 4255
2020-12-24 18:38:54 -05:00
Victor Savkin
a10c258202 fix(core): add alias for primitive type "number" 2020-12-21 10:44:37 -05:00
Victor Savkin
47cd7d8edb fix(core): remove positional args after converting them into named args 2020-12-18 14:27:31 -05:00
Victor Savkin
463be216db fix(core): add a default provider setting project name 2020-12-18 11:11:36 -05:00
Victor Savkin
3fe666a57e fix(core): resolve aliases before reading defaults 2020-12-15 22:08:43 -05:00
Victor Savkin
2651ff98f3 fix(core): fix coerceTypesInOptions for schemas with oneOf 2020-12-14 21:36:20 -05:00
victor savkin
ae397d2d10 cleanup(core): remove all deps on angular-devkit from tao 2020-12-02 19:59:16 -05:00
victor savkin
95c903d906 fix(core): remove positional params after converting them to named 2020-12-01 20:52:27 -05:00
victor savkin
3ec22dfc48 fix(core): fix boolean prompts 2020-12-01 16:24:45 -05:00
victor savkin
8afc5c5bce feat(core): make older builders support new config formats 2020-12-01 15:46:00 -05:00
victor savkin
234ca36385 cleanup(misc): clean up devkit 2020-11-26 10:19:13 -05:00
Victor Savkin
2824794a92 feat(core): clean up the language to use word executor 2020-11-24 09:49:52 -05:00
Victor Savkin
06e13dae2f cleanup(core): use the use generator instead of schematic 2020-11-19 20:07:13 -05:00
Victor Savkin
4a17b7339f feat(core): use the new schematics api for workspace schematics 2020-11-17 19:31:08 -05:00
Victor Savkin
428edb0c32 feat(core): implement basic support for schematics 2020-11-17 19:31:08 -05:00
Victor Savkin
68a4a7eb8c feat(core): add nx devkit builders 2020-11-17 19:31:08 -05:00
Jo Hanna Pearce
aecba505dd feat(core): remove fast-levenshtein dep from tao 2020-07-10 17:45:00 +01:00
Jo Hanna Pearce
675000d7a6 feat(core): add lint target to tao and fix lint errors 2020-07-09 22:16:35 -04:00
Victor Savkin
d9536703f3 fix(core): alias conversion should not exclude unknown props for builders 2020-07-01 23:29:02 -04:00
Victor Savkin
cb710cb0f6 fix(core): builder aliases are ignored when using nx cli 2020-06-18 22:30:02 -04:00
Victor Savkin
23abfff579 fix(core): restore lost coerceTypes 2020-06-17 23:06:43 -04:00
Victor Savkin
d0cbc35efa feat(repo): build nx with nx 2020-06-03 16:25:25 -04:00
Victor Savkin
a6220f7b0a fix(core): handle passing arrays as arguments 2020-05-28 23:17:10 -04:00
Jason Jean
e06822da7e
chore(repo): update prettier to v2 (#2934)
this is just for the repo, and not the workspace

Co-authored-by: Rares Matei <matei.rar@gmail.com>
2020-04-29 01:09:37 -04:00