NEARBuilders / bos-workspace

Local workspace for BOS development
24 stars 24 forks source link

Bounty: bos-workspace init has option to clone #113

Open elliotBraem opened 2 months ago

elliotBraem commented 2 months ago

What talent are you looking for?

Development

What you need to be done?

Context

Currently, if I follow the steps for cloning a near account's widgets

npx bos-workspace clone {accountId}

It will download the widgets to /widget and create a bos.config.json.

Then I can:

cd {accountId}
npx bos-workspace dev

Similarly, you can init an empty bos-workspace via:

npx bos-workspace init

Which will print,

➜  expr: npx bos-workspace init 
✔ What NEAR AccountId deploys your project? … easypoll-v0.ndc-widgets.near
Project initialization complete.
To get started, cd into the easypoll-v0.ndc-widgets.near directory, then run:
    yarn install
    yarn dev
Be the BOS!

Then I will have a project initialized with package.json, scripts, etc.

Ask

I want the option to combine these two commands -- if I provide a "NEAR AccountId deploys your project", and this account exists and has widgets, then I want to be prompted with

"Widgets already exist at this NEAR Account, would you like to import them?"

and if they say yes, then it should clone the widgets in with the correct account in bos.config.json.

Acceptance criteria

Tags

Blockchain, Community, Javascript, Typescript, BOS

Deadline

No response

Currency

USDC

Amount

80

KYC

heroes-bounty[bot] commented 2 months ago

Navigate to HEROES to submit the bounty.