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
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,19 @@ gen-cppjswasm: ## regenerate the cppjswasm template from scratch
cd ../python-template-cppjswasm && $(SED) 's#_src_path: .#_src_path: https://github.com/python-project-templates/base.git#g' ./.copier-answers.yaml

gen-uitk-svelte: ## regenerate the Svelte UI toolkit template from scratch
mkdir -p ../javascript-template-uitk-svelte && cd ../javascript-template-uitk-svelte && rm -rf ./* && rm -rf .copier-answers.yaml .github .gitignore .prettierignore .prettierrc
mkdir -p ../javascript-template-uitk-svelte && cd ../javascript-template-uitk-svelte && rm -rf ./* && rm -rf .copier-answers.yaml .github .gitignore .prettierignore .prettierrc .oxfmtrc.json .oxlintrc.json
copier copy -w . ../javascript-template-uitk-svelte --data-file examples/uitk-svelte.yaml

gen-uitk-webawesome: ## regenerate the Lit and Web Awesome UI toolkit template from scratch
mkdir -p ../javascript-template-uitk-webawesome && cd ../javascript-template-uitk-webawesome && rm -rf ./* && rm -rf .copier-answers.yaml .github .gitignore .prettierignore .prettierrc
mkdir -p ../javascript-template-uitk-webawesome && cd ../javascript-template-uitk-webawesome && rm -rf ./* && rm -rf .copier-answers.yaml .github .gitignore .prettierignore .prettierrc .oxfmtrc.json .oxlintrc.json
copier copy -w . ../javascript-template-uitk-webawesome --data-file examples/uitk-webawesome.yaml

gen-site-sveltekit: ## regenerate the SvelteKit site template from scratch
mkdir -p ../javascript-template-site-sveltekit && cd ../javascript-template-site-sveltekit && rm -rf ./* && rm -rf .copier-answers.yaml .github .gitignore .prettierignore .prettierrc
mkdir -p ../javascript-template-site-sveltekit && cd ../javascript-template-site-sveltekit && rm -rf ./* && rm -rf .copier-answers.yaml .github .gitignore .prettierignore .prettierrc .oxfmtrc.json .oxlintrc.json
copier copy -w . ../javascript-template-site-sveltekit --data-file examples/site-sveltekit.yaml

gen-site-webawesome: ## regenerate the Web Awesome site template from scratch
mkdir -p ../javascript-template-site-webawesome && cd ../javascript-template-site-webawesome && rm -rf ./* && rm -rf .copier-answers.yaml .github .gitignore .prettierignore .prettierrc
mkdir -p ../javascript-template-site-webawesome && cd ../javascript-template-site-webawesome && rm -rf ./* && rm -rf .copier-answers.yaml .github .gitignore .prettierignore .prettierrc .oxfmtrc.json .oxlintrc.json
copier copy -w . ../javascript-template-site-webawesome --data-file examples/site-webawesome.yaml

.PHONY: test-python test-cpp test-js test-jupyter test-rust test-rustjswasm test-cppjswasm test-uitk-svelte test-uitk-webawesome test-site-sveltekit test-site-webawesome
Expand Down
18 changes: 18 additions & 0 deletions javascript/site-sveltekit/.oxfmtrc.json.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"printWidth": 120,
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "none",
"sortPackageJson": false,
"svelte": true,
"ignorePatterns": [
".svelte-kit/**",
".copier-answers.yaml",
"build/**",
"coverage/**",
"playwright-report/**",
"test-results/**"
]
}
9 changes: 9 additions & 0 deletions javascript/site-sveltekit/.oxlintrc.json.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"env": {
"browser": true,
"es6": true,
"node": true,
"svelte": true
}
}
8 changes: 0 additions & 8 deletions javascript/site-sveltekit/.prettierignore.jinja

This file was deleted.

9 changes: 0 additions & 9 deletions javascript/site-sveltekit/.prettierrc.jinja

This file was deleted.

8 changes: 4 additions & 4 deletions javascript/site-sveltekit/package.json.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"lint": "prettier --check .",
"fix": "prettier --write .",
"lint": "oxlint . && oxfmt --check .",
"fix": "oxlint --fix . && oxfmt --write .",
"test": "pnpm test:e2e",
"test:e2e": "playwright test",
"test:e2e:update": "playwright test --update-snapshots"
Expand All @@ -27,8 +27,8 @@
"@sveltejs/vite-plugin-svelte": "^7.1.2",
"@tailwindcss/vite": "^4.3.3",
"@types/node": "^24.0.0",
"prettier": "^3.8.4",
"prettier-plugin-svelte": "^4.1.1",
"oxfmt": "^0.63.0",
"oxlint": "^1.78.0",
"svelte": "^5.56.0",
"svelte-check": "^4.3.0",
"tailwindcss": "^4.3.3",
Expand Down
10 changes: 10 additions & 0 deletions javascript/site-webawesome/.oxfmtrc.json.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"printWidth": 120,
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "none",
"sortPackageJson": false,
"ignorePatterns": [".copier-answers.yaml", "coverage/**", "dist/**", "playwright-report/**", "test-results/**"]
}
8 changes: 8 additions & 0 deletions javascript/site-webawesome/.oxlintrc.json.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"env": {
"browser": true,
"es6": true,
"node": true
}
}
7 changes: 0 additions & 7 deletions javascript/site-webawesome/.prettierignore.jinja

This file was deleted.

7 changes: 0 additions & 7 deletions javascript/site-webawesome/.prettierrc.jinja

This file was deleted.

7 changes: 4 additions & 3 deletions javascript/site-webawesome/package.json.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"build": "vite build",
"preview": "vite preview",
"check": "tsc --noEmit",
"lint": "prettier --check .",
"fix": "prettier --write .",
"lint": "oxlint . && oxfmt --check .",
"fix": "oxlint --fix . && oxfmt --write .",
"test": "pnpm test:e2e",
"test:e2e": "playwright test",
"test:e2e:update": "playwright test --update-snapshots"
Expand All @@ -26,7 +26,8 @@
"@axe-core/playwright": "^4.12.1",
"@playwright/test": "^1.60.0",
"@types/node": "^24.0.0",
"prettier": "^3.8.4",
"oxfmt": "^0.63.0",
"oxlint": "^1.78.0",
"typescript": "^5.9.3",
"vite": "^8.1.5"
}
Expand Down
19 changes: 19 additions & 0 deletions javascript/uitk-svelte/.oxfmtrc.json.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"printWidth": 120,
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "none",
"sortPackageJson": false,
"svelte": true,
"ignorePatterns": [
".svelte-kit/**",
".copier-answers.yaml",
"build/**",
"coverage/**",
"dist/**",
"playwright-report/**",
"test-results/**"
]
}
9 changes: 9 additions & 0 deletions javascript/uitk-svelte/.oxlintrc.json.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"env": {
"browser": true,
"es6": true,
"node": true,
"svelte": true
}
}
9 changes: 0 additions & 9 deletions javascript/uitk-svelte/.prettierignore.jinja

This file was deleted.

9 changes: 0 additions & 9 deletions javascript/uitk-svelte/.prettierrc.jinja

This file was deleted.

8 changes: 4 additions & 4 deletions javascript/uitk-svelte/package.json.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"prepare": "svelte-kit sync",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"preview": "vite preview",
"lint": "prettier --check .",
"fix": "prettier --write .",
"lint": "oxlint . && oxfmt --check .",
"fix": "oxlint --fix . && oxfmt --write .",
"test": "pnpm test:unit && pnpm test:e2e",
"test:unit": "vitest run",
"test:e2e": "playwright test",
Expand All @@ -53,8 +53,8 @@
"@sveltejs/vite-plugin-svelte": "^7.1.2",
"@types/node": "^24.0.0",
"jsdom": "^29.0.0",
"prettier": "^3.8.4",
"prettier-plugin-svelte": "^4.1.1",
"oxfmt": "^0.63.0",
"oxlint": "^1.78.0",
"publint": "^0.3.21",
"svelte": "^5.56.0",
"svelte-check": "^4.3.0",
Expand Down
18 changes: 18 additions & 0 deletions javascript/uitk-webawesome/.oxfmtrc.json.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"printWidth": 120,
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "none",
"sortPackageJson": false,
"ignorePatterns": [
".svelte-kit/**",
".copier-answers.yaml",
"build/**",
"coverage/**",
"dist/**",
"playwright-report/**",
"test-results/**"
]
}
8 changes: 8 additions & 0 deletions javascript/uitk-webawesome/.oxlintrc.json.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"env": {
"browser": true,
"es6": true,
"node": true
}
}
9 changes: 0 additions & 9 deletions javascript/uitk-webawesome/.prettierignore.jinja

This file was deleted.

9 changes: 0 additions & 9 deletions javascript/uitk-webawesome/.prettierrc.jinja

This file was deleted.

7 changes: 4 additions & 3 deletions javascript/uitk-webawesome/package.json.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"build": "vite build && tsc -p tsconfig.build.json --emitDeclarationOnly && publint",
"check": "tsc --noEmit",
"preview": "vite preview",
"lint": "prettier --check .",
"fix": "prettier --write .",
"lint": "oxlint . && oxfmt --check .",
"fix": "oxlint --fix . && oxfmt --write .",
"test": "pnpm test:unit && pnpm test:e2e",
"test:unit": "vitest run",
"test:e2e": "playwright test",
Expand All @@ -50,7 +50,8 @@
"lit": "^3.3.3",
"@types/node": "^24.0.0",
"jsdom": "^29.0.0",
"prettier": "^3.8.4",
"oxfmt": "^0.63.0",
"oxlint": "^1.78.0",
"publint": "^0.3.21",
"typescript": "^5.9.3",
"vite": "^8.1.5",
Expand Down
3 changes: 0 additions & 3 deletions python/cppjswasm/.vscode/settings.json

This file was deleted.

5 changes: 5 additions & 0 deletions python/cppjswasm/js/.oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"printWidth": 80,
"sortPackageJson": false
}
11 changes: 11 additions & 0 deletions python/cppjswasm/js/.oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"env": {
"browser": true,
"es6": true,
"node": true
},
"rules": {
"unicorn/no-empty-file": "off"
}
}
7 changes: 4 additions & 3 deletions python/cppjswasm/js/package.json.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
"build": "npm-run-all build:cpp build:prod",
"clean": "rm -rf dist lib playwright-report ../{{ module }}/extension",
"dev": "npm-run-all -p start watch",
"lint:js": "prettier --check \"src/**/*.{js,ts,jsx,tsx,css}\" \"tests/**/*.{js,ts,jsx,tsx}\" \"*.mjs\" \"*.json\"",
"lint:js": "oxlint . && oxfmt --check \"src/**/*.{js,ts,jsx,tsx,css}\" \"tests/**/*.{js,ts,jsx,tsx}\" \"*.mjs\" \"*.json\"",
"lint:cpp": "clang-format --dry-run -Werror -style=file:../.clang-format src/cpp/*.cpp",
"lint": "npm-run-all lint:*",
"fix:js": "prettier --write \"src/**/*.{js,ts,jsx,tsx,css}\" \"tests/**/*.{js,ts,jsx,tsx}\" \"*.mjs\" \"*.json\"",
"fix:js": "oxlint --fix . && oxfmt --write \"src/**/*.{js,ts,jsx,tsx,css}\" \"tests/**/*.{js,ts,jsx,tsx}\" \"*.mjs\" \"*.json\"",
"fix:cpp": "clang-format -i -style=file:../.clang-format src/cpp/*.cpp",
"fix": "npm-run-all fix:*",
"preinstall": "npx only-allow pnpm",
Expand All @@ -55,7 +55,8 @@
"http-server": "^14.1.1",
"nodemon": "^3.1.10",
"npm-run-all": "^4.1.5",
"prettier": "^3.9.6",
"oxfmt": "^0.63.0",
"oxlint": "^1.78.0",
"typescript": "^7.0.2"
}
}
2 changes: 1 addition & 1 deletion python/cppjswasm/js/tests/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test, expect } from "@playwright/test";

test.describe("Basics", () => {
test("basic", async ({ page }) => {
test("basic", async () => {
await expect("").toBe("");
});
});
Loading
Loading