Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
63e415f
Fix wrong links (#139)
Sep 10, 2024
5838e49
build(deps): bump the npm_and_yarn group across 2 directories with 14…
dependabot[bot] Feb 28, 2025
930644e
build(deps): bump the npm_and_yarn group across 4 directories with 16…
dependabot[bot] Feb 28, 2025
3a320f3
Merge pull request #215 from ckb-devrel/cherry-pick-from-master
RetricSu Mar 20, 2025
0fae44b
chore: bump ccc core v1.5.3 (#216)
RetricSu Mar 20, 2025
ba7e355
chore: clean things (#217)
RetricSu Mar 20, 2025
ccf05cd
chore: bump template ccc version (#218)
RetricSu Mar 20, 2025
d605d5a
fix(template): bump ckb-script-templates and frontend deps (#220)
RetricSu Apr 9, 2025
dc851bd
fix: get deploy path and package-lock in release (#221)
RetricSu Apr 9, 2025
3768d40
fix(release): use npm-shrinkwrap.json in release and update ci (#223)
RetricSu Apr 9, 2025
eea3da1
fix: lock deps and deploy ignore the debug version (#224)
RetricSu Apr 10, 2025
05b62d0
docs: update develop.md (#225)
RetricSu Apr 10, 2025
75e2152
chore: bump ccc core v1.5.3 (#216)
RetricSu Mar 20, 2025
f6d5630
chore: clean things (#217)
RetricSu Mar 20, 2025
21f62f4
chore: bump template ccc version (#218)
RetricSu Mar 20, 2025
69aa51b
fix(template): bump ckb-script-templates and frontend deps (#220)
RetricSu Apr 9, 2025
1bfdd6c
fix: get deploy path and package-lock in release (#221)
RetricSu Apr 9, 2025
fbd5dcd
fix(release): use npm-shrinkwrap.json in release and update ci (#223)
RetricSu Apr 9, 2025
a6f6d86
fix: lock deps and deploy ignore the debug version (#224)
RetricSu Apr 10, 2025
af82dec
docs: update develop.md (#225)
RetricSu Apr 10, 2025
b52228c
chore: use canary version
RetricSu Apr 10, 2025
fbe7dae
Merge pull request #226 from ckb-devrel/rebase-master
RetricSu Apr 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/canary-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: yarn
run: npm install -g pnpm && pnpm i

- name: Build
run: yarn run build
run: pnpm build

- name: Set up Git identity
run: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Install dependencies
run: yarn
run: npm install -g pnpm && pnpm i

- name: Linting
run: yarn run lint
run: pnpm lint

- name: Building
run: yarn run build
run: pnpm build

- run: yarn run fmt
- run: pnpm fmt
- run: git diff --exit-code
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: yarn
run: npm install -g pnpm && pnpm i

- name: Build
run: yarn run build
run: pnpm build

# Setup .npmrc file to publish to npm
- name: Publish to npm
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ There are BREAKING CHANGES between v0.2.x and v0.3.x, make sure to read the [mig
npm install -g @offckb/cli
```

or use `pnpm` to install:

```sh
pnpm install -g @offckb/cli
```

_We recommend using [LTS](https://nodejs.org/en/download/package-manager) version of Node to run `offckb`_

## Usage
Expand Down
16 changes: 16 additions & 0 deletions docs/develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,19 @@ All the script configs are generated by `ckb list-hashes` so you don't need to c
### Update templates

edit the things in `templates/v${version}`

### Install dependencies

Since we use `pnpm` as a developing package manager, people install `offckb` by `npm` would require a [`npm-shrinkwrap.json`](https://docs.npmjs.com/cli/v8/commands/npm-shrinkwrap) file.

When updating the dependencies, remember to run the following command to generate the `npm-shrinkwrap.json` file.

```sh
pnpm add <new-dependency>

// run the following to keep npm-shrinkwrap consistent with out pnpm-lock.json

npm shrinkwrap
```

Remember to run the above command when trying to publish a new version.
Loading
Loading