Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
16 changes: 9 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,23 @@ name: CI
on:
push:
branches:
- main
- '**'
pull_request:
branches:
- main
- '**'

jobs:
ci:
if: github.repository == 'skirtles-code/vue-vnode-utils'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@v5
- name: Set up Node
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 20
node-version: 24
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
Expand All @@ -32,3 +31,6 @@ jobs:
run: pnpm run build
- name: Test
run: pnpm run test:unit
- name: Release
if: github.repository == 'skirtles-code/vue-vnode-utils'
run: pnpx pkg-pr-new publish --commentWithSha --pnpm --packageManager=pnpm,npm,yarn './packages/vue-vnode-utils'
26 changes: 15 additions & 11 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
name: Deploy to GitHub Pages

on:
# Runs on pushes targeting the default branch
push:
branches:
- main
# Allows the workflow to be triggered from other workflows
workflow_call:

# Run on pushes targeting the `main` branch
# push:
# branches:
# - main

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -24,31 +27,32 @@ concurrency:
jobs:
# Single deploy job since we're just deploying
deploy:
if: github.repository == 'skirtles-code/vue-vnode-utils'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@v5
- name: Set up Node
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 20
node-version: 24
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run docs:build
- name: Setup Pages
uses: actions/configure-pages@v4
uses: actions/configure-pages@v6
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
uses: actions/upload-pages-artifact@v5
with:
# Upload docs dist directory
path: './packages/docs/dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v5
41 changes: 41 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Publish package to the npm registry
name: Publish package to npm

on:
# Run the workflow when a new tag is pushed starting with `v`
# push:
# tags:
# - 'v*'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

jobs:
publish:
if: github.repository == 'skirtles-code/vue-vnode-utils'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v5
- name: Set up Node
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm --filter "@skirtle/vue-vnode-utils" run build
- name: Publish
run: pnpm --filter "@skirtle/vue-vnode-utils" publish
docs:
needs: publish
uses: ./.github/workflows/pages.yml
12 changes: 9 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ coverage
packages/docs/.vitepress/cache
packages/vue-vnode-utils/README.md

/cypress/videos/
/cypress/screenshots/

# Editor directories and files
.vscode/*
!.vscode/extensions.json
Expand All @@ -30,3 +27,12 @@ packages/vue-vnode-utils/README.md
*.sw?

*.tsbuildinfo

.eslintcache

# Cypress
/cypress/videos/
/cypress/screenshots/

# Vitest
__screenshots__/
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2022-2025, skirtle
Copyright (c) 2022-2026, skirtle

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ Some browsers do not yet have full support for import maps.

MIT

Copyright © 2022-2025, skirtle
Copyright © 2022-2026, skirtle
4 changes: 2 additions & 2 deletions eslint.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import pluginVitest from '@vitest/eslint-plugin'
export default defineConfigWithVueTs(
{
name: 'app/files-to-lint',
files: ['**/*.{ts,mts,vue}']
files: ['**/*.{vue,ts,mts}']
},

includeIgnoreFile(path.resolve(path.dirname(fileURLToPath(import.meta.url)), '.gitignore')),

pluginVue.configs['flat/essential'],
...pluginVue.configs['flat/essential'],
vueTsConfigs.recommended,

stylistic.configs.customize({
Expand Down
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
{
"private": true,
"type": "module",
"packageManager": "pnpm@10.13.1",
"packageManager": "pnpm@10.33.0",
"engines": {
"node": "^20.19.0 || >=22.12.0"
},
"devDependencies": {
"@eslint/compat": "^1.3.1",
"@stylistic/eslint-plugin": "^5.2.2",
"@tsconfig/node22": "^22.0.2",
"@types/node": "^22.16.5",
"@vitest/eslint-plugin": "^1.3.4",
"@vue/eslint-config-typescript": "^14.6.0",
"eslint": "^9.31.0",
"eslint-plugin-vue": "~10.3.0",
"jiti": "^2.4.2",
"lint-staged": "^16.1.2",
"npm-run-all2": "^8.0.4",
"simple-git-hooks": "^2.13.0",
"typescript": "~5.8.0"
"@eslint/compat": "catalog:",
"@stylistic/eslint-plugin": "catalog:",
"@tsconfig/node24": "catalog:",
"@types/node": "catalog:",
"@vitest/eslint-plugin": "catalog:",
"@vue/eslint-config-typescript": "catalog:",
"eslint": "catalog:",
"eslint-plugin-vue": "catalog:",
"jiti": "catalog:",
"lint-staged": "catalog:",
"npm-run-all2": "catalog:",
"simple-git-hooks": "catalog:",
"typescript": "catalog:"
},
"scripts": {
"clean": "pnpm run -r clean",
Expand All @@ -29,8 +29,8 @@
"type-check": "run-p type-check:*",
"type-check:packages": "pnpm run -r type-check",
"type-check:self": "tsc",
"lint": "eslint",
"lint:fix": "eslint --fix",
"lint": "eslint --cache",
"lint:fix": "eslint --fix --cache",
"lint:staged": "lint-staged",
"build": "pnpm run -r build",
"preinstall": "node scripts/preinstall.js",
Expand All @@ -40,6 +40,6 @@
"pre-commit": "pnpm exec run-s type-check lint:staged"
},
"lint-staged": {
"*.{vue,js,jsx,cjs,mjs,ts,tsx,cts,mts}": "eslint --fix"
"*.{vue,js,jsx,cjs,mjs,ts,tsx,cts,mts}": "eslint --fix --cache"
}
}
19 changes: 10 additions & 9 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@
"private": true,
"type": "module",
"dependencies": {
"vue": "^3.5.18"
"vue": "catalog:"
},
"devDependencies": {
"@tsconfig/node22": "^22.0.2",
"@types/node": "^22.16.5",
"@vue/tsconfig": "^0.7.0",
"npm-run-all2": "^8.0.4",
"rimraf": "^6.0.1",
"typescript": "~5.8.0",
"vitepress": "^1.6.3",
"vue-tsc": "^3.0.4"
"@tsconfig/node24": "catalog:",
"@types/node": "catalog:",
"@vue/tsconfig": "catalog:",
"npm-run-all2": "catalog:",
"rimraf": "catalog:",
"typescript": "catalog:",
"vite": "^5.4.21",
"vitepress": "catalog:",
"vue-tsc": "catalog:"
},
"scripts": {
"clean": "rimraf dist .vitepress/cache",
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@tsconfig/node22/tsconfig.json",
"extends": "@tsconfig/node24/tsconfig.json",
"include": [".vitepress/config.*"],
"compilerOptions": {
"noEmit": true,
Expand Down
38 changes: 19 additions & 19 deletions packages/vue-vnode-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,25 @@
"vue": "^3.2.0"
},
"devDependencies": {
"@rollup/plugin-replace": "^6.0.2",
"@tsconfig/node22": "^22.0.2",
"@types/jsdom": "^21.1.7",
"@types/node": "^22.16.5",
"@vitejs/plugin-vue": "^6.0.1",
"@vitest/coverage-v8": "^3.2.4",
"@vue/test-utils": "^2.4.6",
"@vue/tsconfig": "^0.7.0",
"copyfiles": "^2.4.1",
"jsdom": "^26.1.0",
"npm-run-all2": "^8.0.4",
"publint": "^0.3.12",
"rimraf": "^6.0.1",
"typescript": "~5.8.0",
"vite": "^7.0.6",
"vite-plugin-dts": "^4.5.4",
"vitest": "^3.2.4",
"vue": "^3.5.18",
"vue-tsc": "^3.0.4"
"@rollup/plugin-replace": "catalog:",
"@tsconfig/node24": "catalog:",
"@types/jsdom": "catalog:",
"@types/node": "catalog:",
"@vitejs/plugin-vue": "catalog:",
"@vitest/coverage-v8": "catalog:",
"@vue/test-utils": "catalog:",
"@vue/tsconfig": "catalog:",
"copyfiles": "catalog:",
"jsdom": "catalog:",
"npm-run-all2": "catalog:",
"publint": "catalog:",
"rimraf": "catalog:",
"typescript": "catalog:",
"vite": "catalog:",
"vite-plugin-dts": "catalog:",
"vitest": "catalog:",
"vue": "catalog:",
"vue-tsc": "catalog:"
},
"scripts": {
"clean:dist": "rimraf dist",
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-vnode-utils/tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@tsconfig/node22/tsconfig.json",
"extends": "@tsconfig/node24/tsconfig.json",
"include": [
"vite.config.*",
"vitest.config.*",
Expand Down
3 changes: 2 additions & 1 deletion packages/vue-vnode-utils/tsconfig.vitest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.vitest.tsbuildinfo",
"lib": [],
"types": ["node", "jsdom"]
"types": ["node", "jsdom"],
"noUncheckedIndexedAccess": false
}
}
Loading
Loading