Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
214f853
Merge branch 'main' into dev
webdevnerdstuff Dec 12, 2024
a6ed4d2
chore: migrate tooling to eslint flat config and shared configs
webdevnerdstuff Oct 18, 2026
ffc4144
chore(deps): update packages within current majors
webdevnerdstuff Oct 18, 2026
28d1bb0
refactor(plugin): move globals and props into data folder
webdevnerdstuff Oct 18, 2026
3fc87aa
fix: restore prism plugin support (line numbers) and fix option merging
webdevnerdstuff Oct 18, 2026
62075fc
chore: don't count ignored files as lint warnings
webdevnerdstuff Oct 18, 2026
a45d756
test: cover prism line numbers, option priority and code handling
webdevnerdstuff Oct 18, 2026
a21a729
docs: WIP rework of the documentation site
webdevnerdstuff Oct 18, 2026
1203916
build: rebuild dist
webdevnerdstuff Oct 18, 2026
38f5436
docs: add AGENTS.md and CLAUDE.md for coding agents
webdevnerdstuff Oct 18, 2026
1517d4b
build: update lockfile and allow dependency build scripts for pnpm
webdevnerdstuff Oct 18, 2026
2346335
chore: ignore .claude directory
webdevnerdstuff Oct 18, 2026
65fb69b
docs: rebuild examples as individual example containers and fix docs …
webdevnerdstuff Oct 18, 2026
5841b7e
Merge pull request #69 from webdevnerdstuff/fix/docs-rewrite
webdevnerdstuff Oct 18, 2026
01a0a7d
chore: lint all src files, fix lint warnings, update husky hook, stop…
webdevnerdstuff Oct 18, 2026
59606fc
Merge pull request #70 from webdevnerdstuff/chore/lint-glob-husky
webdevnerdstuff Oct 18, 2026
e8adfb1
ci: deploy docs with Node from .nvmrc and pnpm
webdevnerdstuff Oct 19, 2026
8dddc76
ci: run lint, tests and build on pull requests
webdevnerdstuff Oct 19, 2026
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
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2
indent_style = space

[*.{js,ts,mts,vue}]
indent_size = 2
Expand Down
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

65 changes: 65 additions & 0 deletions .eslintrc-auto-import.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"globals": {
"CSSProperties": true,
"Component": true,
"ComponentPublicInstance": true,
"ComputedRef": true,
"EffectScope": true,
"InjectionKey": true,
"PropType": true,
"Ref": true,
"VNode": true,
"computed": true,
"createApp": true,
"customRef": true,
"defineAsyncComponent": true,
"defineComponent": true,
"effectScope": true,
"getCurrentInstance": true,
"getCurrentScope": true,
"h": true,
"inject": true,
"isProxy": true,
"isReactive": true,
"isReadonly": true,
"isRef": true,
"markRaw": true,
"nextTick": true,
"onActivated": true,
"onBeforeMount": true,
"onBeforeUnmount": true,
"onBeforeUpdate": true,
"onDeactivated": true,
"onErrorCaptured": true,
"onMounted": true,
"onRenderTracked": true,
"onRenderTriggered": true,
"onScopeDispose": true,
"onServerPrefetch": true,
"onUnmounted": true,
"onUpdated": true,
"provide": true,
"reactive": true,
"readonly": true,
"ref": true,
"resolveComponent": true,
"shallowReactive": true,
"shallowReadonly": true,
"shallowRef": true,
"toRaw": true,
"toRef": true,
"toRefs": true,
"triggerRef": true,
"unref": true,
"useAttrs": true,
"useCssModule": true,
"useCssVars": true,
"useSlots": true,
"useTheme": true,
"useTemplateRef": true,
"watch": true,
"watchEffect": true,
"watchPostEffect": true,
"watchSyncEffect": true
}
}
143 changes: 0 additions & 143 deletions .eslintrc.js

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Lint, type-check, test and build on pull requests and pushes to dev
name: CI

on:
pull_request:
branches: [ main, dev ]
push:
branches: [ dev ]

permissions:
contents: read

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10.33.0

- name: Use Node.js from .nvmrc
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm

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

- name: Lint
run: pnpm lint

# Type-check, unit tests (Vitest) and library build
- name: Build & Test
run: pnpm build
30 changes: 16 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,29 @@ jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10.33.0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: Use Node.js from .nvmrc
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version-file: .nvmrc
cache: pnpm

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

- name: Build
- name: Build & Deploy
run: |
git config --global user.email "webdevnerdstuff@gmail.com"
git config --global user.name "webdevnerdstuff"
mkdir docs
npm install --g gh-pages
npm i
npm run build:docs
pnpm build:docs
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npm run deploy -u "github-actions-bot <support+actions@github.com>"
pnpm run deploy -u "github-actions-bot <support+actions@github.com>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17 changes: 14 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ lerna-debug.log*

node_modules
docs
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
.history/*
!.vscode/extensions.json
.idea
.DS_Store
Expand All @@ -23,8 +25,17 @@ dist-ssr
*.sln
*.sw?

.history

.stylelintcache
src/plugin/themes/scss/highlight-template.scss
dist/themes/scss/highlight-template.scss


.eslintcache

src/plugin/**/*.bk.*

# Temp files and directories
*__TEMP.*
*__TEMP/

# Claude Code
.claude/
5 changes: 1 addition & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged && npm run test:commit
npx lint-staged && npm run test:build
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
node-version=20.10.0
node-version=22.11.0
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.10.0
22.11.0
Loading
Loading