-
Notifications
You must be signed in to change notification settings - Fork 2
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
[#121] Move Vite folder to packages #161
base: develop
Are you sure you want to change the base?
Conversation
36f3d09
to
f265315
Compare
41db162
to
1e348f0
Compare
7cfd708
to
e4abfc6
Compare
fa93b0b
to
d2e6c4e
Compare
d2e6c4e
to
ebbea7e
Compare
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.
Small early suggestions π
} | ||
|
||
private async copyTemplateFiles(options: InitTemplateOptions): Promise<void> { | ||
CliUx.ux.info('Copying template source files...'); |
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.
CliUx.ux.info('Copying template source files...'); | |
CliUx.ux.info('Copying ${selectedTemplate} template source files...'); |
Should/Can we add the template name in the log? π
return this.downloadTemplateRepository(options) | ||
.then(() => this.extractDownloadedTemplateFolder(options)) | ||
.then(() => this.renameFolder(options)) | ||
.then(() => this.cleanTemporaryFiles(options)); |
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.
return this.downloadTemplateRepository(options) | |
.then(() => this.extractDownloadedTemplateFolder(options)) | |
.then(() => this.renameFolder(options)) | |
.then(() => this.cleanTemporaryFiles(options)); | |
await this.downloadTemplateRepository(options); | |
await this.extractDownloadedTemplateFolder(options); | |
await this.renameFolder(options); | |
return await this.cleanTemporaryFiles(options); |
Long time I haven't dealt with async JS, but as far as I remember, it acts the same but avoids the chained call (stack trace remains cleaner).
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.
Sure, I wanted to keep changes to a minimum to make it easier to review, however I can change this π π
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.
/vite-template
folder into the/packages
folder Β #121What happened π
β Moved Vite template to under
/packages
directoryπ΄ Removed lerna bootstrap command as it has been deprecated and now uses the package.json workspaces config π
βοΈ Since moving the vite template to packages, the package-name
%APP_NAME%
is no longer valid. We've renamed tonimble-vite-template
and we replace when generating the filesInsight π
π With this PR, we allow for copying template files from the packages folder. This is only for the vite-template currently, and if there is NO template reference provided when running the generate command
For now we keep both
Copying template files
strategy andDownloading template
strategy to keep options open in the futureπ¨ Currently we're using
@oclif/test
which uses mocha and chai under the hood. We want to update to use jest so we can test all future changes following #116Proof Of Work πΉ
Tests pass π