-
Notifications
You must be signed in to change notification settings - Fork 36
feat(create-app): download template from npm #10
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
feat(create-app): download template from npm #10
Conversation
a6406a9 to
50ea4d7
Compare
839cdd5 to
63517f5
Compare
| } | ||
| }, | ||
| "test": { | ||
| "dependsOn": ["build"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why tests depend on build? is this because of vite?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because there are e2e tests, which invoke node packages/create-app/dist/... binary for create-app. Without build step this binary would not exist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn’t there be a separate job for unit and e2e tests then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's all jest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now vitest actually
| packageJson.version = '1.0.0'; | ||
| packageJson.private = true; | ||
|
|
||
| function walk(current: string): string[] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where's this logic? we don't only need to rename stuff package.json. It's mostly about rewriting "HelloWorld" placeholder in native files and filenames
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
restored previous edit template code
|
Let's rebase and merge 👍🏼 |
chore: refactor: tweaks chore: basic e2e tests chore: add build req to project chore: fix ci chore: fix ci chore: diagnose ci chore: fix ci chore: fix ci chore: fix ci refactor: improve tests refactor: improve test helpers chore: revert ci script changes chore: a chore: cleanup refactor: cleanup chore: cleanup chore: cleanup refactor: self code review chore: restore test target dep on build refactor: modify post copy template changes refactor: self code review refactor: self code review refactor: restore previous renaming code refactor: self code review
ee22f8f to
004c3dc
Compare
Summary
Supports following types of templates:
./../,/, orfile://).tgzfilesAlso performs some basic template-edition:
gitignoreto.gitignoreTest plan
Added e2e tests existing the app and checking some basic details like package name, etc