Skip to content

Commit

Permalink
fix: update version
Browse files Browse the repository at this point in the history
  • Loading branch information
elonehoo committed Apr 14, 2023
1 parent fb0130e commit 3dbb313
Show file tree
Hide file tree
Showing 10 changed files with 1,458 additions and 1,092 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "@elonehoo"
"extends": "@antfu"
}
100 changes: 100 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: CI

on:
push:
branches:
- main

pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: latest

- name: Install pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: latest

- name: Install
run: pnpm install --no-frozen-lockfile

- name: Lint
run: pnpm run lint

typecheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: latest

- name: Install pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: latest

- name: Install
run: pnpm install --no-frozen-lockfile

- name: Typecheck
run: pnpm run typecheck


test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: latest

- name: Install pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: latest

- name: Install
run: pnpm install --no-frozen-lockfile

- name: Test
run: pnpm run test

coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: latest

- name: Install pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: latest

- name: Install
run: pnpm install --no-frozen-lockfile

- name: Coverage
run: pnpm run coverage
43 changes: 0 additions & 43 deletions .github/workflows/packages-test-ci.yml

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/pull-test-ci.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"editor.accessibilitySupport": "off",
"editor.cursorSmoothCaretAnimation": true,
"editor.cursorSmoothCaretAnimation": "on",
"editor.find.addExtraSpaceOnTop": false,
"editor.fontFamily": "Input Mono, Fira Code, monospace",
"editor.fontLigatures": "'ss01', 'ss02', 'ss03', 'ss06', 'zero'",
Expand Down
43 changes: 23 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,33 @@
{
"name": "@elonehoo/dom-traversal",
"type": "module",
"version": "0.0.3",
"license": "MIT",
"author": "Elone Hoo <huchengyea@163.com>",
"description": "Iteratively walk any DOM node.",
"type": "module",
"author": "Elone Hoo <huchengyea@163.com>",
"license": "MIT",
"homepage": "https://github.com/elonehoo/dom-traversal#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/elonehoo/dom-traversal"
},
"homepage": "https://github.com/elonehoo/dom-traversal#readme",
"bugs": "https://github.com/elonehoo/dom-traversal/issues",
"main": "./dist/index.umd.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.umd.cjs"
}
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.mjs"
},
"./*": "./*"
},
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist"
"dist",
"*.d.ts"
],
"scripts": {
"build": "rimraf dist && vite build",
"build": "rimraf dist && unbuild",
"release": "bumpp package.json --commit --push --tag && pnpm -r publish --access public",
"test": "vitest",
"coverage": "vitest run --coverage",
Expand All @@ -33,18 +36,18 @@
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@elonehoo/eslint-config": "2.0.0",
"@antfu/eslint-config": "^0.38.4",
"@elonehoo/rimraf": "^0.0.1",
"@elonehoo/vite-plugin-type-ts": "^0.0.1",
"@types/node": "18.15.11",
"@vitest/coverage-c8": "^0.30.0",
"@vitest/coverage-c8": "^0.30.1",
"bumpp": "9.1.0",
"c8": "^7.13.0",
"eslint": "8.38.0",
"happy-dom": "^9.2.1",
"pnpm": "7.32.0",
"typescript": "4.9.5",
"vite": "3.2.5",
"vitest": "0.30.0"
"happy-dom": "^9.6.1",
"pnpm": "8.2.0",
"typescript": "5.0.4",
"unbuild": "^1.2.1",
"vite": "4.2.1",
"vitest": "0.30.1"
}
}
Loading

0 comments on commit 3dbb313

Please sign in to comment.