diff --git a/.copier-answers.yml b/.copier-answers.yml new file mode 100644 index 0000000..8b12e58 --- /dev/null +++ b/.copier-answers.yml @@ -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 diff --git a/.editorconfig b/.editorconfig index 3b510aa..2dc5c9d 100644 --- a/.editorconfig +++ b/.editorconfig @@ -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 diff --git a/.gitattributes b/.gitattributes index 6313b56..599c19d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2f2ab63..69f1f84 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 9799f48..8ed0366 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -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 diff --git a/.gitignore b/.gitignore index 90dd21d..9489669 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/.oxlintrc.json b/.oxlintrc.json index 030d3de..35d4158 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -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. diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 55ad03c..3f11023 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,8 +1,8 @@ { "recommendations": [ - "Vue.volar", + "oxc.oxc-vscode", "dbaeumer.vscode-eslint", "EditorConfig.EditorConfig", - "oxc.oxc-vscode" + "Vue.volar" ] } diff --git a/oxfmt.config.ts b/oxfmt.config.ts index 47654e3..58c41c1 100644 --- a/oxfmt.config.ts +++ b/oxfmt.config.ts @@ -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', diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 1624894..68dc980 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -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 @@ -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/*'