-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bootstrap/Scaffolding tool (ckb-create-js-vm-app) (#59)
* feat: add create-app
- Loading branch information
1 parent
027d906
commit 0f5a4f8
Showing
26 changed files
with
951 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
node_modules/ | ||
|
||
dist/ | ||
dist.commonjs/ | ||
|
||
.npmignore | ||
.prettierrc | ||
tsconfig.json | ||
eslint.config.mjs | ||
.prettierrc | ||
|
||
tsconfig.tsbuildinfo | ||
.github/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# create-ckb-js-vm-app | ||
|
||
create-ckb-js-vm-app is a CLI tool that helps you quickly bootstrap CKB script powered by [ckb-js-vm](https://github.com/nervosnetwork/ckb-js-vm). It allows you to generate a on-chain script project with support for TypeScript. | ||
|
||
# Getting Started | ||
|
||
```bash | ||
pnpm create ckb-js-vm-app | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"name": "create-ckb-js-vm-app", | ||
"version": "0.1.3", | ||
"description": "CLI tool to quickly bootstrap CKB on-chain script with ckb-js-vm.", | ||
"private": false, | ||
"homepage": "https://github.com/nervosnetwork/ckb-js-vm", | ||
"repository": { | ||
"type": "https", | ||
"url": "https://github.com/nervosnetwork/ckb-js-vm.git" | ||
}, | ||
"keywords": [ | ||
"create ckb-js-vm on-chain script" | ||
], | ||
"license": "MIT", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"author": "CKB VM Team", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"build": "tsc", | ||
"format": "prettier --write .", | ||
"dev": "tsc --watch" | ||
}, | ||
"bin": { | ||
"create-ckb-js-vm-app": "./dist/index.js" | ||
}, | ||
"dependencies": { | ||
"commander": "^12.1.0", | ||
"cross-spawn": "^7.0.5", | ||
"fs-extra": "^11.2.0", | ||
"picocolors": "^1.1.1", | ||
"prompts": "^2.4.2", | ||
"update-check": "^1.5.4", | ||
"validate-npm-package-name": "^6.0.0" | ||
}, | ||
"devDependencies": { | ||
"prettier": "^3.2.5", | ||
"@types/cross-spawn": "^6.0.6", | ||
"@types/fs-extra": "^11.0.4", | ||
"@types/node": "^20.11.24", | ||
"@types/prompts": "^2.4.9", | ||
"@types/validate-npm-package-name": "^4.0.2", | ||
"typescript": "^5.3.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Default versions for dependencies | ||
export const bindingVersion = "~0.1.0"; | ||
export const coreVersion = "~0.1.1"; | ||
export const testtoolVersion = "~0.1.1"; | ||
export const cccCoreVersion = "~1.5.0"; |
Oops, something went wrong.