Skip to content
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

Merged
merged 13 commits into from
Feb 2, 2024
Merged

Add @osdk/create-app package #19

merged 13 commits into from
Feb 2, 2024

Conversation

tzyl
Copy link
Contributor

@tzyl tzyl commented Jan 31, 2024

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

@tzyl tzyl changed the title Tl/create osdk app Add create-osdk-app package Jan 31, 2024
@@ -0,0 +1,62 @@
{
"name": "create-osdk-app",
"private": true,
Copy link
Contributor Author

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"
Copy link
Contributor Author

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


consola.info(`Copying files into project directory`);

const templatesDir = findUpSync("templates", {
Copy link
Contributor Author

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

@tzyl tzyl marked this pull request as ready for review January 31, 2024 17:33
Copy link
Contributor

@styu styu left a 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?

packages/create-osdk-app/package.json Outdated Show resolved Hide resolved
Copy link
Contributor

@mfedderly mfedderly left a 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.

@tzyl tzyl changed the title Add create-osdk-app package Add @osdk/create-app package Feb 1, 2024
@bulldozer-bot bulldozer-bot bot merged commit a5c361c into main Feb 2, 2024
6 checks passed
@bulldozer-bot bulldozer-bot bot deleted the tl/create-osdk-app branch February 2, 2024 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants