Skip to content

Commit 3aaddc6

Browse files
authored
feat!: use a giant multiselect instead of individual toggles for features (#695)
As we are adding more features, the number of toggles is getting out of hand. A multiselect could save a few keystrokes for most users. I also take this opportunity to change the prompts library to `@clack/prompts`. (For context: `create-astro`, `sv`, `create-preact`, `create-solid`, `create-qwik` all use `@clack/prompts`, `create-vite` recently switched to `@clack/prompts` too, while `create-next-app` uses `prompts`) The color library is changed to `picocolors`. IMO `kleur` is still the smaller library because of treeshaking. But `@clack/prompts` already comes with `picocolors` as a dependency, so by not adding `kleur`, we save a few bytes. --- This is a proof-of-concept PR. I haven't put much consideration into the code style yet. Nor have I updated the i18n messages. I will do that if this change is accepted. See the result in a screen recording: [![asciicast](https://asciinema.org/a/Aq334bHe0tJBpuxLNQyVAyzXb.svg)](https://asciinema.org/a/Aq334bHe0tJBpuxLNQyVAyzXb) --- TODOs: - [x] Clean up the code (wrap the `isCancel` condition; update the `needsEslint` type, etc.) - [ ] I think we should remove the `packageName` related logic but it can be postponed into another PR - [ ] Get the message translations reviewed * chore: small formatting improvements to the intro/outro message [skip ci] Still much work to do. But it's acceptable for now. * chore: unselect -> deselect * refactor: update English prompts * docs: update all the locales with the new prompts * refactor: remove some duplicated or redundant code * refactor: further cleanup of codebase * build: remove alias for `prompts` package * docs: Update fr-FR.json [skip ci] * i18n: add translations for the "should not be empty" message
1 parent 12a7b40 commit 3aaddc6

File tree

11 files changed

+450
-489
lines changed

11 files changed

+450
-489
lines changed

LICENSE

+51-52
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,44 @@ For more information, please see
128128
## Licenses of bundled dependencies
129129

130130
The published create-vue artifact additionally contains code with the following licenses:
131-
MIT, Apache-2.0
131+
MIT, Apache-2.0, ISC
132132

133133
## Bundled dependencies
134134

135+
## @clack/core
136+
137+
License: MIT
138+
By: Nate Moore
139+
Repository: git+https://github.com/natemoo-re/clack.git
140+
141+
> MIT License
142+
>
143+
> Copyright (c) Nate Moore
144+
>
145+
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
146+
>
147+
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
148+
>
149+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
150+
>
151+
152+
## @clack/prompts
153+
154+
License: MIT
155+
By: Nate Moore
156+
Repository: git+https://github.com/natemoo-re/clack.git
157+
158+
> MIT License
159+
>
160+
> Copyright (c) Nate Moore
161+
>
162+
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
163+
>
164+
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
165+
>
166+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
167+
>
168+
135169
## @vue/create-eslint-config
136170

137171
License: MIT
@@ -371,62 +405,27 @@ Repository: git://github.com/mde/ejs.git
371405
> limitations under the License.
372406
>
373407

374-
## kleur
375-
376-
License: MIT
377-
By: Luke Edwards
378-
Repository: git+https://github.com/lukeed/kleur.git
379-
380-
> The MIT License (MIT)
381-
>
382-
> Copyright (c) Luke Edwards <[email protected]> (lukeed.com)
383-
>
384-
> Permission is hereby granted, free of charge, to any person obtaining a copy
385-
> of this software and associated documentation files (the "Software"), to deal
386-
> in the Software without restriction, including without limitation the rights
387-
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
388-
> copies of the Software, and to permit persons to whom the Software is
389-
> furnished to do so, subject to the following conditions:
390-
>
391-
> The above copyright notice and this permission notice shall be included in
392-
> all copies or substantial portions of the Software.
393-
>
394-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
395-
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
396-
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
397-
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
398-
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
399-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
400-
> THE SOFTWARE.
401-
>
402-
403-
## prompts
408+
## picocolors
404409

405-
License: MIT
406-
By: Terkel Gjervig
407-
Repository: git+https://github.com/terkelg/prompts.git
410+
License: ISC
411+
By: Alexey Raspopov
412+
Repository: git+https://github.com/alexeyraspopov/picocolors.git
408413

409-
> MIT License
410-
>
411-
> Copyright (c) 2018 Terkel Gjervig Nielsen
414+
> ISC License
412415
>
413-
> Permission is hereby granted, free of charge, to any person obtaining a copy
414-
> of this software and associated documentation files (the "Software"), to deal
415-
> in the Software without restriction, including without limitation the rights
416-
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
417-
> copies of the Software, and to permit persons to whom the Software is
418-
> furnished to do so, subject to the following conditions:
416+
> Copyright (c) 2021-2024 Oleksii Raspopov, Kostiantyn Denysov, Anton Verinov
419417
>
420-
> The above copyright notice and this permission notice shall be included in all
421-
> copies or substantial portions of the Software.
418+
> Permission to use, copy, modify, and/or distribute this software for any
419+
> purpose with or without fee is hereby granted, provided that the above
420+
> copyright notice and this permission notice appear in all copies.
422421
>
423-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
424-
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
425-
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
426-
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
427-
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
428-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
429-
> SOFTWARE.
422+
> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
423+
> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
424+
> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
425+
> ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
426+
> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
427+
> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
428+
> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
430429
>
431430

432431
## sisteransi

0 commit comments

Comments
 (0)