Skip to content

Commit

Permalink
refactor: use bun to replace node
Browse files Browse the repository at this point in the history
  • Loading branch information
Jocs committed Apr 18, 2024
1 parent 62e9cd3 commit 6bf4553
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7,787 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install yarn
run: npm install -g yarn
- name: Install bun
run: npm install -g bun
- name: Install dependencies
run: yarn install --frozen-lockfile
run: bun install --frozen-lockfile
- name: lint
run: yarn lint:ts
run: bun run lint:ts
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit $1
bun run commitlint --edit $1
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
bun run lint-staged
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
## Installing

```sh
yarn add @marktext/muya
npm install @marktext/muya
```

## Usage

```javascript
import Muya from '@marktext/muya'
import '@marktext/muya/dist/assets/style.css'
import Muya from '@marktext/muya';
import '@marktext/muya/dist/assets/style.css';

const container = document.querySelector('#editor')
const muya = new Muya(container)
const container = document.querySelector('#editor');
const muya = new Muya(container);
muya.init();
```

Expand All @@ -33,15 +33,15 @@ Coming soon!!!

```sh
# step1: install dependencies
yarn
bun install
# step2: run the development codes
yarn dev
bun run dev
```

## Build

```sh
yarn build
bun build
```

## publish
Expand Down
Binary file added bun.lockb
Binary file not shown.
Loading

0 comments on commit 6bf4553

Please sign in to comment.