-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add @osdk/create-app package #19
Conversation
@@ -0,0 +1,62 @@ | |||
{ | |||
"name": "create-osdk-app", | |||
"private": true, |
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.
Will turn on publishing in a separate step
"transpile": "tsup", | ||
"transpileWatch": "tsup --watch", | ||
"typecheck": "tsc-absolute --build", | ||
"update-snapshots": "UPDATE_SNAPSHOTS=true vitest run" |
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.
This is the only custom script in the package all others are the same as monorepolint
packages/create-osdk-app/src/cli.ts
Outdated
|
||
consola.info(`Copying files into project directory`); | ||
|
||
const templatesDir = findUpSync("templates", { |
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.
Originally this had a hardcoded relative path but this is slightly different now running from test or bundle:
When run in vitest this looks for create-osdk-app/src/cli.ts
-> create-osdk-app/templates
When run in tsup bundle this looks for create-osdk-app/build/js/index.mjs
-> create-osdk-app/templates
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.
setup largely lgtm. i can't comment on the file directly, but it does feel like we should find a different .svg instead of the resource icon to use?
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.
I'm good with the changes outside of packages/create-osdk-app. I didn't look at the code inside of that package though.
Initial code for package for CLI to bootstrap OSDK apps with guided prompts and multiple tempaltes rather than cloning a starter repo and following instructions to update multiple files