diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 744ceab..146a1a6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,7 @@ jobs: tests: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup uses: ./.github/workflows/setup - name: Install Aquascope diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b206a6e..898e842 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,7 +34,7 @@ jobs: kind: bare runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup uses: ./.github/workflows/setup with: @@ -44,7 +44,7 @@ jobs: - name: Package artifact run: tar -czf mdbook-quiz_${{ matrix.target }}_${{ matrix.kind }}.tar.gz mdbook-quiz working-directory: target/release - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: ${{ matrix.target }}_${{ matrix.kind }} path: target/release/mdbook-quiz_${{ matrix.target }}_${{ matrix.kind }}.tar.gz @@ -52,12 +52,12 @@ jobs: build-schema: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup uses: ./.github/workflows/setup - name: Build schema run: cargo run --bin gen-json-schema --features json-schema > mdbook-quiz.schema.json - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: schema path: mdbook-quiz.schema.json @@ -66,7 +66,7 @@ jobs: needs: [build-artifacts, build-schema] runs-on: ubuntu-latest steps: - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v4 - uses: softprops/action-gh-release@v1 with: files: | @@ -81,7 +81,7 @@ jobs: needs: publish-artifacts runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup uses: ./.github/workflows/setup - name: Install cargo-workspaces diff --git a/Cargo.toml b/Cargo.toml index 359225d..449528c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,4 +4,8 @@ members = ["crates/*"] [workspace.dependencies] toml = "0.5.4" -anyhow = "1.0.75" \ No newline at end of file +anyhow = "1.0.75" + +[profile.release] +strip = true +lto = true \ No newline at end of file diff --git a/example/standalone/.eslintrc.cjs b/example/standalone/.eslintrc.cjs deleted file mode 100644 index 664a3bd..0000000 --- a/example/standalone/.eslintrc.cjs +++ /dev/null @@ -1,48 +0,0 @@ -module.exports = { - "env": { - "es2021": true - }, - "extends": [ - "eslint:recommended" - ], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": 13, - "sourceType": "module" - }, - "plugins": [ - "@typescript-eslint", - "prettier", - "react" - ], - "ignorePatterns": [ - "*.d.ts" - ], - "rules": { - "no-empty-pattern": "off", - "no-undef": "off", - "no-unused-vars": "off", - "no-cond-assign": "off", - "@typescript-eslint/no-unused-vars": [ - "error", - { - "argsIgnorePattern": "^_", - "varsIgnorePattern": "^_" - } - ], - "no-constant-condition": [ - "error", - { - "checkLoops": false - } - ], - "prettier/prettier": "error", - "react/prop-types": "off", - "react/no-unescaped-entities": "off" - }, - "settings": { - "react": { - "version": "detect" - } - } -} \ No newline at end of file diff --git a/example/standalone/.prettierrc.cjs b/example/standalone/.prettierrc.cjs deleted file mode 100644 index 0bdcbb9..0000000 --- a/example/standalone/.prettierrc.cjs +++ /dev/null @@ -1,9 +0,0 @@ -module.exports = { - tabWidth: 2, - arrowParens: "avoid", - importOrder: ["", "^[./]"], - importOrderSeparation: true, - importOrderSortSpecifiers: true, - parser: "typescript", - plugins: [require("@trivago/prettier-plugin-sort-imports")], -}; diff --git a/example/standalone/biome.json b/example/standalone/biome.json new file mode 100644 index 0000000..5b07106 --- /dev/null +++ b/example/standalone/biome.json @@ -0,0 +1,41 @@ +{ + "$schema": "https://biomejs.dev/schemas/1.8.2/schema.json", + "javascript": { + "formatter": { + "arrowParentheses": "asNeeded", + "trailingCommas": "none" + }, + "jsxRuntime": "reactClassic" + }, + "formatter": { + "indentStyle": "space" + }, + "linter": { + "rules": { + "recommended": true, + "a11y": { + "useKeyWithClickEvents": "off", + "useValidAnchor": "off" + }, + "correctness": { + "noUnusedImports": "warn", + "useExhaustiveDependencies": "off", + "useJsxKeyInIterable": "off" + }, + "style": { + "noNonNullAssertion": "off", + "useConst": "off", + "noUselessElse": "off", + "noParameterAssign": "off" + }, + "complexity": { + "noBannedTypes": "off", + "noForEach": "off" + }, + "suspicious": { + "noArrayIndexKey": "off", + "noExplicitAny": "off" + } + } + } +} \ No newline at end of file diff --git a/example/standalone/package.json b/example/standalone/package.json index deb22f1..1ef493c 100644 --- a/example/standalone/package.json +++ b/example/standalone/package.json @@ -4,7 +4,8 @@ "type": "module", "depot": { "platform": "browser", - "target": "site" + "target": "site", + "depot-version": "0.2.17" }, "pnpm": { "overrides": { diff --git a/example/standalone/pnpm-lock.yaml b/example/standalone/pnpm-lock.yaml index a5ae351..326e62b 100644 --- a/example/standalone/pnpm-lock.yaml +++ b/example/standalone/pnpm-lock.yaml @@ -406,8 +406,8 @@ packages: resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} engines: {node: '>= 8'} - '@rollup/wasm-node@4.17.2': - resolution: {integrity: sha512-4F6C3XaUn02XY/GJMQTXncWrLyCkRHdRZe4OyWuQUprWKmU2u+esISOtCYdr3Bp9AqCIo/X3So2Ik7N9dNDwow==} + '@rollup/wasm-node@4.18.0': + resolution: {integrity: sha512-DkLoyblRMhJw9ZogW9zCpyH0CNJ+7GaM7Ty+Vl+G21z/Gr7uKBaXqcJqwWUiNYVxTOgxZrxhDG6pmOFxOuswvw==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true @@ -2221,7 +2221,7 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.17.1 - '@rollup/wasm-node@4.17.2': + '@rollup/wasm-node@4.18.0': dependencies: '@types/estree': 1.0.5 optionalDependencies: @@ -3833,7 +3833,7 @@ snapshots: dependencies: esbuild: 0.20.2 postcss: 8.4.38 - rollup: '@rollup/wasm-node@4.17.2' + rollup: '@rollup/wasm-node@4.18.0' optionalDependencies: '@types/node': 20.12.12 fsevents: 2.3.3