Skip to content

Commit 40d08cf

Browse files
committed
🚀 fields
1 parent 82c8140 commit 40d08cf

18 files changed

Lines changed: 14668 additions & 1 deletion

.attw.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"profile": "esm-only",
3+
"summary": false
4+
}

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
screenshot.png export-ignore

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
checks:
15+
name: VitePlus checks
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 10
18+
env:
19+
CI: true
20+
NPM_CONFIG_CACHE: ${{ runner.temp }}/npm-cache
21+
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Setup Node
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 22.12.0
30+
cache: npm
31+
32+
- name: Install dependencies
33+
run: npm ci
34+
35+
- name: Run VitePlus checks
36+
run: npx vp check .
37+
38+
- name: Run TypeScript
39+
run: npm run typecheck
40+
41+
- name: Validate VitePlus package build
42+
run: npx vp pack src/index.ts src/admin.tsx --format esm --dts --clean --tsconfig tsconfig.json --publint
43+
44+
- name: Validate published types
45+
run: npm run types:check
46+
47+
- name: Verify npm tarball
48+
run: npm pack --dry-run

.github/workflows/release.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
permissions:
9+
contents: read
10+
id-token: write
11+
12+
jobs:
13+
publish:
14+
name: Publish to npm
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 10
17+
env:
18+
CI: true
19+
NPM_CONFIG_CACHE: ${{ runner.temp }}/npm-cache
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Setup Node
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 24
29+
registry-url: https://registry.npmjs.org
30+
31+
- name: Install dependencies
32+
run: npm ci
33+
34+
- name: Verify release tag
35+
run: node -e "const fs = require('node:fs'); const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8')); const tag = process.env.RELEASE_TAG; if (tag !== pkg.version && tag !== `v${pkg.version}`) { console.error(`Release tag ${tag} does not match package version ${pkg.version}`); process.exit(1); }"
36+
env:
37+
RELEASE_TAG: ${{ github.event.release.tag_name }}
38+
39+
- name: Run VitePlus checks
40+
run: npx vp check .
41+
42+
- name: Run TypeScript
43+
run: npm run typecheck
44+
45+
- name: Validate VitePlus package build
46+
run: npx vp pack src/index.ts src/admin.tsx --format esm --dts --clean --tsconfig tsconfig.json --publint
47+
48+
- name: Validate published types
49+
run: npm run types:check
50+
51+
- name: Publish to npm
52+
run: npm publish --access public

.gitignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Dependencies
2+
node_modules/
3+
4+
# Build output
5+
dist/
6+
build/
7+
*.tsbuildinfo
8+
9+
# Test and coverage output
10+
coverage/
11+
.nyc_output/
12+
.vitest/
13+
14+
# Tool caches
15+
.eslintcache
16+
.vite/
17+
.turbo/
18+
.cache/
19+
20+
# Logs
21+
logs/
22+
*.log
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
pnpm-debug.log*
27+
28+
# Local environment files
29+
.env
30+
.env.*
31+
!.env.example
32+
33+
# OS and editor metadata
34+
.DS_Store
35+
Thumbs.db
36+
*.swp
37+
*.swo

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Changelog
2+
3+
All notable changes to this package will be documented in this file.
4+
5+
This project follows semantic versioning.
6+
7+
## 0.1.0 - 2026-06-12
8+
9+
- Initial public package setup for the `@bnomei/emdash-fields` EmDash field
10+
widgets.
11+
- Added object, structure, link, and choices JSON field widgets.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 Bruno Meilick
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)