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

Create-BOS-App Integration: #81

Merged
merged 7 commits into from
Apr 29, 2024
Merged

Conversation

thisistheaj
Copy link
Contributor

What:

Replaces init command with create-bos-app

Why:

  • Allows CLI prompt interface instead of just command
  • Uses full-file Templates instead of incline code
  • TS Support
  • Always uses multi-app project to scale up/down nicely

How

  • adds necessary packages for template copying
  • added JS and TS templates
  • modifies Create-bos-app to be compatible with commander js commands
  • makes cli args optional, and gets them with prompts by default
  • sets tsconfig to ignore templates folder when compiling

lib/cli.ts Outdated Show resolved Hide resolved
package-lock.json Outdated Show resolved Hide resolved
templates/js/README.md Outdated Show resolved Hide resolved
templates/js/_github/workflows/release.yml Outdated Show resolved Hide resolved
templates/js/package.json Outdated Show resolved Hide resolved
"test": "tsc --noEmit",
"tsc": "tsc --noEmit"
},
"dependencies": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one doesn't work, it doesn't have bos-workspace installed on it

Let's remove the typescript template and just have two -- "single" and "multi" -- they can even be drawn from the /examples directory

bw ws dev`,
}
};
export async function initProject(pwd: string, template: string) {
Copy link
Contributor

@elliotBraem elliotBraem Apr 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please write a small test, just verify that a directory is made?

elliotBraem and others added 6 commits April 28, 2024 14:28
* Add testnet connection

* Fix building issue

* Add a unit test

* Correct paths for WIndows

* Update version

---------

Co-authored-by: Elliot Braem <[email protected]>
Updates templates working init project
@elliotBraem elliotBraem merged commit cba9a00 into NEARBuilders:main Apr 29, 2024
1 check passed
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.

3 participants