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

Update template and example file structure to support publishing to npm #213

Merged
merged 7 commits into from
Jun 9, 2022

Conversation

ymekuria
Copy link
Collaborator

@ymekuria ymekuria commented Jun 8, 2022

Description
Fixes
#212

Add index.ts to template and examples and run.ts file to run examples locally. The index.ts file is the entry point, and only imports and exports all smart contract classes devs want access to. This structure properly supports the publishing and installing of smart contacts via npm.

Tested

Used this version of the CLI to successfully create new template and example projects that reflect the updated file structure. Successfully publish a template project, and imported it into a UI with import { Contract } from 'my-npm-package'

@ymekuria ymekuria changed the title Feature/update template contract names Update template and example file structure to support publishing to npm Jun 8, 2022
@ymekuria ymekuria merged commit eac929a into main Jun 9, 2022
@ymekuria ymekuria deleted the feature/update-template-contract-names branch July 21, 2022 04:50
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.

2 participants