Skip to content

Commit

Permalink
feat: add ckb-js-std package (nervosnetwork#38)
Browse files Browse the repository at this point in the history
This PR introduces a TypeScript/JavaScript package designed to simplify the process of writing on-chain scripts. The package, named ckb-js-std, includes the following features:

- TypeScript definitions for bound functions, such as loadScript and loadWitness.
- High-level APIs written in TypeScript.
- Bundling tools for packaging scripts.
- A demo showcasing usage.
- Comprehensive documentation using TypeDoc.
  • Loading branch information
XuJiandong authored Jan 23, 2025
1 parent 9921ac9 commit e8b889d
Show file tree
Hide file tree
Showing 36 changed files with 2,109 additions and 138 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,5 @@ dkms.conf
.vscode

build
node_modules/
dist/
19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"private": true,
"workspaces": [
"packages/*"
],
"scripts": {
"build:prepare": "pnpm -r install",
"build": "pnpm -r run build",
"docs": "typedoc"
},
"devDependencies": {
"esbuild": "0.24.2",
"eslint": "9.18.0",
"prettier": "3.4.2",
"typedoc": "0.27.6",
"typescript": "^5.7.3"
},
"pnpm": {}
}
Loading

0 comments on commit e8b889d

Please sign in to comment.