8000 Validate app name in templates & add support for validating `pear init -y` by lejeunerenard · Pull Request #718 · holepunchto/pear · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Validate app name in templates & add support for validating pear init -y #718

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 125 commits into
base: pear-next
Choose a base branch
from

Conversation

lejeunerenard
Copy link
Contributor

Prevents default name property from being invalid for desk 10000 top and terminal type applications. With out the validation there are scenarios where default values can error once a user tries to run a Pear app which throws:

Error: The package.json name / pear.name field must be lowercase and one word, and may contain letters, numbers, hyphens (-), underscores (_), forward slashes (/) and asperands (@).

This revealed an issue with pear-api's processing of params when the --yes flag was set as well. So a full fix depends on holepunchto/pear-api#31

davidmarkclements and others added 24 commits May 1, 2025 17:17
…unchto#701)

* add unignore, ignore globs, purge

* OOP adjustment

* globs -> glob

* lint

* generate ignore function in method

* restore test/index.js

* commit changes on 0f80019

* Apply suggestions from code review

* remove old entrypoints

* fix test, rename method call

* via support + state improvements

* via: close with pipe.end(), timeout, ignore io, correct cwd + rm dupe error output

* touch fix, test alignment

* fix tests

* lint

---------

Co-authored-by: David Mark Clements <david.mark.clements@gmail.com>
* pear-ipc dev

* pear data manifest + pear drop

* link validation into model

* Solve review comments

* label `version`

* remove else (paparam bug)

* pear-ipc 6.0.0

* plan(17)

---------

Co-authored-by: David Mark Clements <david.mark.clements@gmail.com>
* typo reseting -> resetting

* file:// support

* pear reset: deprecated

* Bare.exit(1)
This validation is directly copied from `validateAppName()` where names
are checked by Pear.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
0