Few useful bullet points to administrate ic-js.
- Init a new workspace
npm init -w ./packages/a
- Setup the new package
Copy package.json
, license.md
, esbuild.mjs
etc. files as in other libs. As for example from the cmc library.
Adapt package.json
content.
- Configure did files
Add did source files import-candid and compile-idl-js.
- Generate did and js files
Run the scripts modified in last steps
- Implement
Implement a feature or at least provide a src/index.ts
file in the new lib that contains at least an export {};
.
- Docs
Add new library to docs generator and in package.json
script docs
to format the generated docs with prettier at the ends of the process.
- Update CI
Add new library to various CI workflows.
-
Build, PR and merge
-
Tags and release to npm
-
Provide a new PR that bump version of all libs to start
next
version -
Merge and publish
next
to npm