Skip to content

Commit

Permalink
Update to latest Depot (#45)
Browse files Browse the repository at this point in the history
* Update to latest Depot

* Fix standalone example. Update CI. Minify release binaries

* Add biome to package.json of standalone
  • Loading branch information
willcrichton authored Jul 1, 2024
1 parent 9d3dadc commit 99c4ea2
Show file tree
Hide file tree
Showing 29 changed files with 462 additions and 3,051 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -44,20 +44,20 @@ 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

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
Expand All @@ -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: |
Expand All @@ -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
Expand Down
6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ members = ["crates/*"]

[workspace.dependencies]
toml = "0.5.4"
anyhow = "1.0.75"
anyhow = "1.0.75"

[profile.release]
strip = true
lto = true
48 changes: 0 additions & 48 deletions example/standalone/.eslintrc.cjs

This file was deleted.

9 changes: 0 additions & 9 deletions example/standalone/.prettierrc.cjs

This file was deleted.

41 changes: 41 additions & 0 deletions example/standalone/biome.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
12 changes: 3 additions & 9 deletions example/standalone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"type": "module",
"depot": {
"platform": "browser",
"target": "site"
"target": "site",
"depot-version": "0.2.17"
},
"pnpm": {
"overrides": {
Expand All @@ -13,24 +14,17 @@
}
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@iarna/toml": "^2.2.5",
"@trivago/prettier-plugin-sort-imports": "^4.1",
"@types/node": "^20.12.12",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.9.0",
"@typescript-eslint/parser": "^7.9.0",
"@vitejs/plugin-react": "^4.2.1",
"@wcrichto/quiz": "^0.3.5",
"eslint": "^8.57.0",
"eslint-plugin-prettier": "^4",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.2",
"jsdom": "^24.0.0",
"mobx": "^6.12.3",
"mobx-react": "8",
"normalize.css": "^8.0.1",
"prettier": "^2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sass": "^1.77.1",
Expand Down
Loading

0 comments on commit 99c4ea2

Please sign in to comment.