Skip to content

Commit

Permalink
remove vitest, update prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Sep 14, 2023
1 parent 1b0ba6a commit 4939793
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 416 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ jobs:
- uses: actions/checkout@v3
- run: npm install -g pnpm
- run: pnpm i
- run: pnpm format:check
- run: pnpm test
- run: pnpm check
- run: pnpm build
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ jobs:
- uses: actions/checkout@v3
- run: npm install -g pnpm
- run: pnpm i
- run: pnpm format:check
- run: pnpm test
- run: pnpm check
- run: pnpm build

- name: Release
Expand Down
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ A minimalist Vite project template for [WebXDC](https://webxdc.org) development.
- 📱 Integrated [WebXDC emulator](https://github.com/webxdc/webxdc-dev) to test your WebXDC right on the browser while developing,
and [Eruda](https://github.com/liriliri/eruda) to debug inside Delta Chat.

- ✅ Use [Vitest](http://vitest.dev/) for unit testing

- 📝 Code formatting with [Prettier](https://github.com/prettier/prettier)

- 📦 Automatically minify, build and release your `.xdc` file
Expand All @@ -27,11 +25,10 @@ After cloning this repo, install dependecies:
pnpm i
```

### Running tests
### Checking code format

```
pnpm format:check
pnpm test
pnpm check
```

### Testing the app in the browser
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
Expand Down
6 changes: 3 additions & 3 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ window.sendMsg = () => {
},
info,
},
info
info,
);
};

Expand All @@ -36,8 +36,8 @@ window.onload = () => {
"p",
{ class: "msg" },
h("span", { class: "nick" }, update.payload.name, ": "),
update.payload.msg
)
update.payload.msg,
),
);
});

Expand Down
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
{
"private": true,
"scripts": {
"build": "vite build",
"dev-mini": "vite --port 3000",
"dev": "concurrently \"npm run dev-mini\" \"webxdc-dev run http://localhost:3000\"",
"format": "prettier --write .",
"format:check": "prettier --check .",
"test": "vitest"
"check": "prettier --check .",
"build": "vite build"
},
"devDependencies": {
"@vitejs/plugin-legacy": "^4.0.2",
"concurrently": "^8.1.0",
"eruda": "^3.0.0",
"jsdom": "^22.1.0",
"prettier": "2.8.8",
"prettier": "^3.0.3",
"toml": "^3.0.0",
"vite": "^4.3.2",
"vite-plugin-zip-pack": "^1.0.5",
"vitest": "^0.32.2",
"webxdc-dev": "^0.17.0"
}
}
Loading

0 comments on commit 4939793

Please sign in to comment.