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
20 changes: 20 additions & 0 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Written by Copier: never edit this file by hand. `copier update` reads it.
_commit: v1.3.1
_src_path: https://github.com/whatsaaaa/template.git
agents_md: false
brand_kit: form-builder
browser_tests: false
copyright_year: 2026
description: Define Formisch forms in JSON, render them with your own components,
or compile them to typed Valibot code.
design_system: false
framework: vue
kind: library
license: MIT
name: form-builder
pages: true
publish: true
stack: typescript
starter: false
visibility: public
workspace: monorepo
12 changes: 10 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue,css,scss,sass,less,styl}]
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf

[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue,astro,css,html,json,jsonc,yml,yaml,sh}]
max_line_length = 100

# Two trailing spaces are a line break in Markdown
[*.md]
trim_trailing_whitespace = false
10 changes: 10 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
* text=auto eol=lf
*.sh text eol=lf

*.png binary
*.jpg binary
*.gif binary
*.webp binary
*.ico binary
*.pdf binary
*.woff binary
*.woff2 binary
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ concurrency:
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
# The checks are named `ci / check`, which the main ruleset requires: format:check, lint with
# the guard against what it auto-fixed, type-check, test and build.
# The checks are named `ci / check`, which the main ruleset requires
ci:
uses: whatsaaaa/template/.github/workflows/node-ci.yml@v1

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

permissions: {}

# One deployment at a time, and an in-progress deployment is never cancelled.
# One deployment at a time, and an in-progress deployment is never cancelled
concurrency:
group: pages
cancel-in-progress: false
Expand Down
42 changes: 11 additions & 31 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,45 +1,25 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
coverage
Thumbs.db
*.log
*.local
.env
.env.*
!.env.example

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

node_modules
dist
coverage
*.tsbuildinfo

*.tgz
.eslintcache

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

# Vitest
__screenshots__/

# Vite
*.timestamp-*-*.mjs

*.tgz
.attw/
# Packed by lint:package for attw to check
.attw

# VitePress
**/.vitepress/cache
Expand Down
1 change: 1 addition & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"extends": ["./node_modules/@whatsaaaa/oxlint-config/vue.json"],
"ignorePatterns": ["**/dist"],
"overrides": [
{
// The shared config adds Node's globals; the code here has only ever had the browser's.
Expand Down
4 changes: 2 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"recommendations": [
"Vue.volar",
"oxc.oxc-vscode",
"dbaeumer.vscode-eslint",
"EditorConfig.EditorConfig",
"oxc.oxc-vscode"
"Vue.volar"
]
}
4 changes: 4 additions & 0 deletions oxfmt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import whatsaaaa from '@whatsaaaa/format-config/oxfmt'
export default defineConfig({
...whatsaaaa,
ignorePatterns: [
'pnpm-lock.yaml',
'.github/assets',
// Copier writes it, and wraps the long description in a style oxfmt would change.
'.copier-answers.yml',
'packages/schema/definition.schema.json',
'apps/docs/api/schema/field-types.md',
'apps/docs/api/schema/rules.md',
Expand Down
22 changes: 12 additions & 10 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
packages:
- packages/*
- apps/*
- frameworks/*
- integration
- packages/*

# Install scripts that may run. The postinstalls of unrs-resolver and esbuild (used by
# size-limit), and of @parcel/watcher, lmdb and msgpackr-extract (used by @angular/build in the
# integration tests), only re-download, check or build the native binding, which pnpm already
# installs through their optional platform packages.
# pnpm installs no package younger than a day (minimumReleaseAge). Our own packages are let in
# as soon as they are published, so a project can take a release of them right away.
minimumReleaseAgeExclude:
- '@whatsaaaa/*'

# A dependency's install script runs only when allowBuilds lists it: true to run it, false to
# skip it, each with a comment that says why.
allowBuilds:
# The postinstalls of unrs-resolver and esbuild (used by size-limit), and of @parcel/watcher,
# lmdb and msgpackr-extract (used by @angular/build in the integration tests), only
# re-download, check or build the native binding, which pnpm already installs through their
# optional platform packages
'@parcel/watcher': false
esbuild: false
lmdb: false
Expand Down Expand Up @@ -47,8 +54,3 @@ packageExtensions:
peerDependenciesMeta:
'@types/react':
optional: true

# The docs theme's design-system release was installed before it was a day old, pnpm's minimum
# release age.
minimumReleaseAgeExclude:
- '@whatsaaaa/*'
Loading