-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Allen Zhang (张涛)
committed
Oct 18, 2024
1 parent
1bb3a2e
commit 6734672
Showing
14 changed files
with
180 additions
and
291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[alias] | ||
xtask = "run --package xtask --" | ||
|
||
|
||
[build] | ||
|
||
rustdocflags = [] | ||
|
||
[target.x86_64-unknown-linux-gnu] | ||
rustflags = ["-C", "target-feature=+sse2"] | ||
|
||
[target.x86_64-unknown-linux-musl] | ||
rustflags = ["-C", "target-feature=+sse2"] | ||
|
||
[target.x86_64-apple-darwin] | ||
rustflags = ["-C", "target-feature=+sse2"] | ||
|
||
[target.x86_64-pc-windows-msvc] | ||
rustflags = ["-C", "target-feature=+sse2"] | ||
|
||
[target.aarch64-unknown-linux-gnu] | ||
linker = "aarch64-linux-gnu-gcc" | ||
|
||
[target.aarch64-unknown-linux-musl] | ||
linker = "aarch64-linux-gnu-gcc" | ||
rustflags = ["-C", "target-feature=-crt-static", "-C", "link-arg=-lgcc"] | ||
|
||
[target.armv7-unknown-linux-gnueabihf] | ||
linker = "arm-linux-gnueabihf-gcc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,39 @@ | ||
name: Publish swc-plugin-canyon | ||
name: Npm Publish swc-plugin-canyon | ||
|
||
on: | ||
push: | ||
branches: [ "*" ] | ||
branches: | ||
- main | ||
- ci | ||
|
||
env: | ||
RUST_LOG: debug | ||
CARGO_INCREMENTAL: 0 | ||
MACOSX_DEPLOYMENT_TARGET: "10.13" | ||
|
||
jobs: | ||
publish-npm: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 20 | ||
registry-url: https://registry.npmjs.org/ | ||
- run: pnpm install | ||
- run: pnpm --filter=swc-plugin-canyon publish -f --no-git-checks --access=public --filter | ||
submodules: true | ||
|
||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
|
||
- name: Install wasm target | ||
shell: bash | ||
run: | | ||
rustup target add wasm32-wasi | ||
- name: Setup node | ||
uses: pnpm/action-setup@v4 | ||
|
||
- run: | | ||
pnpm --filter=swc-plugin-canyon publish -f --no-git-checks --access=public | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
[workspace] | ||
members = ["plugins/*"] | ||
|
||
|
||
resolver = "2" | ||
|
||
|
||
[workspace.package] | ||
authors = ["Allen Zhang <[email protected]>"] | ||
edition = "2021" | ||
homepage = "https://github.com/canyon-project/canyon" | ||
license = "Apache-2.0" | ||
repository = "https://github.com/canyon-project/canyon.git" | ||
rust-version = "1.70" | ||
|
||
[workspace.dependencies] | ||
Inflector = "0.11.4" | ||
anyhow = "1.0.83" | ||
base64 = "0.22" | ||
byteorder = "1" | ||
cargo_metadata = "0.18.1" | ||
cipher = "0.4.4" | ||
clap = "4.5.4" | ||
convert_case = "0.6.0" | ||
default-from-serde = "0.1" | ||
fxhash = "0.2.1" | ||
handlebars = "5.1.2" | ||
hex = "0.4.3" | ||
lightningcss = "1.0.0-alpha.59" | ||
magic-crypt = "3.1.13" | ||
once_cell = "1.19.0" | ||
parcel_selectors = "0.27.0" | ||
phf = "0.11.2" | ||
preset_env_base = "1.0.0" | ||
radix_fmt = "1" | ||
regex = { version = "1.10.4", default-features = false } | ||
serde = "1.0.203" | ||
serde_json = "1.0.117" | ||
sourcemap = "9.0.0" | ||
swc_atoms = "2.0.0" | ||
swc_cached = "1.0.0" | ||
swc_common = "1.0.0" | ||
swc_core = "1.0.0" | ||
swc_css_ast = "1.0.0" | ||
swc_css_codegen = "1.0.0" | ||
swc_css_compat = "1.0.0" | ||
swc_css_minifier = "1.0.0" | ||
swc_css_parser = "1.0.0" | ||
swc_css_prefixer = "1.0.0" | ||
swc_css_visit = "1.0.0" | ||
swc_ecma_ast = "1.0.0" | ||
swc_ecma_codegen = "1.0.0" | ||
swc_ecma_minifier = "1.0.0" | ||
swc_ecma_parser = "1.0.0" | ||
swc_ecma_transforms = "1.0.0" | ||
swc_ecma_transforms_base = "1.0.0" | ||
swc_ecma_transforms_react = "1.0.0" | ||
swc_ecma_transforms_testing = "1.0.0" | ||
swc_ecma_utils = "1.0.0" | ||
swc_ecma_visit = "1.0.0" | ||
swc_plugin_macro = "1.0.0" | ||
swc_plugin_proxy = "1.0.0" | ||
swc_trace_macro = "2.0.0" | ||
testing = "1.0.0" | ||
tracing = "0.1.40" | ||
|
||
|
||
[profile.release] | ||
codegen-units = 1 | ||
# debug = true | ||
lto = true | ||
|
||
# Optimize for size | ||
opt-level = "s" | ||
|
||
# Strip debug symbols | ||
strip = "symbols" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,131 +1,2 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
*.lcov | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# Snowpack dependency directory (https://snowpack.dev/) | ||
web_modules/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Microbundle cache | ||
.rpt2_cache/ | ||
.rts2_cache_cjs/ | ||
.rts2_cache_es/ | ||
.rts2_cache_umd/ | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
.env.test | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
.parcel-cache | ||
|
||
# Next.js build output | ||
.next | ||
out | ||
|
||
# Nuxt.js build / generate output | ||
.nuxt | ||
dist | ||
# Gatsby files | ||
.cache/ | ||
# Comment in the public line in if your project uses Gatsby and not Next.js | ||
# https://nextjs.org/blog/next-9-1#public-directory-support | ||
# public | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ | ||
|
||
# TernJS port file | ||
.tern-port | ||
|
||
# Stores VSCode versions used for testing VSCode extensions | ||
.vscode-test | ||
|
||
# yarn v2 | ||
.yarn/cache | ||
.yarn/unplugged | ||
.yarn/build-state.yml | ||
.yarn/install-state.gz | ||
.pnp.* | ||
|
||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
*.code-workspace | ||
|
||
# Local History for Visual Studio Code | ||
.history/ | ||
|
||
demo/ | ||
|
||
.idea/ | ||
|
||
pnpm-lock.yaml | ||
/target | ||
Cargo.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
transform/ | ||
tests/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[package] | ||
|
||
description = "Canyon plugin for debugging." | ||
|
||
|
||
authors = { workspace = true } | ||
edition = { workspace = true } | ||
homepage = { workspace = true } | ||
license = { workspace = true } | ||
name = "swc_plugin_canyon" | ||
publish = false | ||
repository = { workspace = true } | ||
rust-version = { workspace = true } | ||
version = "0.18.4" | ||
|
||
|
||
[lib] | ||
crate-type = ["cdylib", "rlib"] | ||
|
||
[dependencies] | ||
swc_common = { workspace = true, features = ["concurrent"] } | ||
swc_core = { workspace = true, features = ["ecma_plugin_transform"] } | ||
swc_ecma_ast = { workspace = true } | ||
swc_ecma_utils = { workspace = true } | ||
swc_ecma_visit = { workspace = true } | ||
swc_plugin_macro = { workspace = true } | ||
tracing = { workspace = true, features = ["release_max_level_off"] } |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.