Skip to content

Commit

Permalink
chore: Remove dprint plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed Aug 17, 2024
1 parent 3f15657 commit b383510
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 421 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,23 +113,9 @@ jobs:
name: build
path: crates/ruff_fmt/pkg

- name: Build dprint plugin
run: cargo build --release --target=wasm32-unknown-unknown -p ruff_fmt_dprint

- name: Get tag version
id: get_tag_version
run: echo "TAG_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT

- name: Pre-release
run: |
sed -i 's/ruff_fmt\/0.0.0/ruff_fmt\/${{ steps.get_tag_version.outputs.TAG_VERSION }}/' crates/ruff_fmt_dprint/schema.json
(cd target/wasm32-unknown-unknown/release/ && mv ruff_fmt_dprint.wasm plugin.wasm)
- name: Release
uses: softprops/action-gh-release@69320dbe05506a9a39fc8ae11030b214ec2d1f87
with:
files: |
crates/ruff_fmt/pkg/ruff_fmt_bg.wasm
crates/ruff_fmt/pkg/wasm-fmt-ruff_fmt-*.tgz
crates/ruff_fmt_dprint/schema.json
target/wasm32-unknown-unknown/release/plugin.wasm
95 changes: 4 additions & 91 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ resolver = "2"


anyhow = "1"
dprint-core = "0.67.0"
serde = "1.0"
serde-wasm-bindgen = "0.6"
serde_json = "1.0"
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ import init, { format } from "@wasm-fmt/ruff_fmt/vite";

# dprint plugin

> [!NOTE]
> dpint plugin is deprecated, please use https://dprint.dev/plugins/ruff instead.
```bash
dprint config add wasm-fmt/ruff_fmt
```
Expand Down
28 changes: 0 additions & 28 deletions crates/ruff_fmt_dprint/Cargo.toml

This file was deleted.

57 changes: 0 additions & 57 deletions crates/ruff_fmt_dprint/schema.json

This file was deleted.

43 changes: 0 additions & 43 deletions crates/ruff_fmt_dprint/src/configuration/configuration.rs

This file was deleted.

6 changes: 0 additions & 6 deletions crates/ruff_fmt_dprint/src/configuration/mod.rs

This file was deleted.

Loading

0 comments on commit b383510

Please sign in to comment.