Skip to content

Commit

Permalink
Fix standalone example. Update CI. Minify release binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
willcrichton committed Jul 1, 2024
1 parent 465f25e commit dac3386
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 70 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"
}
}
}
}
3 changes: 2 additions & 1 deletion 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 Down
8 changes: 4 additions & 4 deletions example/standalone/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dac3386

Please sign in to comment.