Commit Graph

474 Commits

Author SHA1 Message Date
Donny/강동윤
a6d1db8611
chore(ci): Bump crates before publishing (#9308)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/9304
2024-07-22 11:55:51 +09:00
magic-akari
27ca712812
fix(es/typescript): Fix typings (#9301)
Some checks are pending
CI / Cargo fmt (push) Waiting to run
CI / Cargo clippy (push) Waiting to run
CI / Check license of dependencies (push) Waiting to run
CI / Check (macos-latest) (push) Waiting to run
CI / Check (ubuntu-latest) (push) Waiting to run
CI / Check (windows-latest) (push) Waiting to run
CI / Test wasm (binding_core_wasm) (push) Waiting to run
CI / Test wasm (binding_minifier_wasm) (push) Waiting to run
CI / Test wasm (binding_typescript_wasm) (push) Waiting to run
CI / List crates (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Blocked by required conditions
CI / Test node bindings - ${{ matrix.os }} (macos-latest) (push) Waiting to run
CI / Test node bindings - ${{ matrix.os }} (windows-latest) (push) Waiting to run
CI / Test with @swc/cli (push) Waiting to run
CI / Miri (better_scoped_tls) (push) Waiting to run
CI / Miri (string_enum) (push) Waiting to run
CI / Miri (swc) (push) Waiting to run
CI / Miri (swc_bundler) (push) Waiting to run
CI / Miri (swc_ecma_codegen) (push) Waiting to run
CI / Miri (swc_ecma_minifier) (push) Waiting to run
CI / Done (push) Blocked by required conditions
Benchmark / Bench everything (push) Waiting to run
2024-07-21 04:10:35 +09:00
magic-akari
d10cb9ffa2
feat(es/typescript): Add esm build for fast ts strip (#9286)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/9283
2024-07-20 12:51:51 +00:00
Donny/강동윤
33284c128e
refactor: Remove unused files (#9285) 2024-07-19 18:52:16 +09:00
Donny/강동윤
6afa40b7b4
chore(ci): Integrate changeset (#9284)
**Description:**

@swc-bot works, but as it works by creating a commit after merging each PR, it makes reading commit log harder and it causes problems with caching in CI.

Changeset itself does not support managing Rust crates, but there's a crate for this purpose.
2024-07-19 18:44:43 +09:00
강동윤 (Donny)
c69e0307a6 chore(ci): Implement Wasm breaking mode 2024-07-18 11:39:15 +09:00
강동윤 (Donny)
1c652f913e chore(ci): Use $NPM_TAG env var
- Closes https://github.com/swc-project/swc/issues/9269
2024-07-18 08:30:51 +09:00
강동윤 (Donny)
3d40f84976 chore(ci): Fix Wasm publish action 2024-07-15 19:10:35 +09:00
Donny/강동윤
037dad52f4
fix(allocator): Fix allocator & add benchmark (#9234)
**Related issue:**

 - This PR is a part of https://github.com/swc-project/swc/pull/9230.
2024-07-14 16:20:42 +09:00
Donny/강동윤
cbfeac35d6
chore(ci): Use dynamic matrix for cargo-test action (#9233)
**Description:**

We can dynamically create a matrix to make managing CI simpler.
2024-07-14 13:19:15 +09:00
Donny/강동윤
c40b5b97e4
chore(ci): Fix CI (#9219) 2024-07-12 15:06:53 +09:00
강동윤 (Donny)
ddb47a82f3 chore: Run benchmark in parallel 2024-07-12 13:37:27 +09:00
강동윤 (Donny)
58c1d13840 chore: Do not cancel benchmark 2024-07-12 13:33:40 +09:00
Donny/강동윤
e3eb197f00
chore(ci): Fix codspeed benchmark (#9194) 2024-07-10 21:43:51 +09:00
강동윤 (Donny)
6f285a53c2 chore: Skip benchmark on chores 2024-07-10 15:30:53 +09:00
Donny/강동윤
e7b9c552a7
chore(ci): Configure codspeed (#9189) 2024-07-10 15:20:27 +09:00
강동윤 (Donny)
d9810a769b chore(ci): Checkout main while publishing 2024-07-06 19:06:42 +09:00
강동윤 (Donny)
a4c313a14b chore: Use ./scripts/build.sh if exists for Wasm 2024-07-06 15:38:14 +09:00
강동윤 (Donny)
3348530d08 chore(ci): Fix npm publish action 2024-07-06 13:48:48 +09:00
Donny/강동윤
3fa54e05ef
chore(ci): Fix CI (#9160) 2024-07-06 13:46:41 +09:00
강동윤 (Donny)
8628042b0c chore(ci): Skip ref for previous steps 2024-07-06 12:47:24 +09:00
강동윤 (Donny)
c380ada398 chore(ci): Specify ref 2024-07-06 12:25:07 +09:00
Donny/강동윤
8b4d4676be
chore(ci): Tag releases from new publish pipeline (#9156) 2024-07-06 10:35:17 +09:00
Donny/강동윤
b80a4d8aad
chore(ci): Use taiki-e/install-action if possible (#9157) 2024-07-06 10:18:03 +09:00
강동윤 (Donny)
8560729a54 chore(ci): Restore publish-core.yml 2024-07-05 21:52:44 +09:00
Donny/강동윤
6acce0c86f
chore: Implement publish action with swc-ecosystem-ci (#9087) 2024-07-05 21:41:46 +09:00
Donny/강동윤
b129343c94
feat(es/typescript): Add swc_fast_ts_strip (#9143)
**Description:**

This PR also adds a CI process for each Wasm binding.

---------

Co-authored-by: magic-akari <akari.ccino@gmail.com>
2024-07-05 21:07:24 +09:00
Donny/강동윤
648830a9a9
perf(es): Reduce allocations for dynamic stacks (#9133) 2024-07-05 09:18:38 +00:00
강동윤 (Donny)
0d830ee3be chore(ci): Fix Wasm test 2024-07-05 09:48:42 +09:00
강동윤 (Donny)
0a919cea31 chore(ci): Fix tagging of releases 2024-07-04 21:05:08 +09:00
강동윤 (Donny)
d55d9659fc chore: Fix Wasm publish action 2024-07-04 18:39:50 +09:00
Donny/강동윤
307b6f27a6
refactor(bindings/ts): Inline Wasm file into wasm.js (#9139)
**Description:**

Requested by https://github.com/marco-ippolito/node/pull/2/files#r1665267733
2024-07-04 18:23:55 +09:00
강동윤 (Donny)
b021dd237d chore(ci): Fix Wasm publish action 2024-07-04 12:42:11 +09:00
Donny/강동윤
cdfd4c85e4
fix(ci): Restore disabled CI checks (#9002) 2024-07-04 12:24:05 +09:00
Donny/강동윤
6b3c0da755
feat(binding): Create Wasm package for stripping only TypeScript (#9124)
**Description:**

This PR adds a Wasm binding which is only capable of stripping TypeScript types.


**Related issue:**

 - https://github.com/marco-ippolito/node/pull/2
2024-07-03 00:50:59 +00:00
Donny/강동윤
1597c5dee5
chore: Improve Wasm publish pipeline (#9123)
Some checks are pending
CI / Test with @swc/cli (push) Waiting to run
CI / Miri (better_scoped_tls) (push) Waiting to run
CI / Miri (string_enum) (push) Waiting to run
CI / Miri (swc) (push) Waiting to run
CI / Miri (swc_bundler) (push) Waiting to run
CI / Miri (swc_ecma_codegen) (push) Waiting to run
CI / Miri (swc_ecma_minifier) (push) Waiting to run
CI / Done (push) Blocked by required conditions
Benchmark / List crates (push) Waiting to run
Benchmark / Bench ${{ matrix.crate }} (push) Blocked by required conditions
Benchmark / Process result (push) Blocked by required conditions
Bot / Start (push) Waiting to run
Publish (core) / stable - ${{ matrix.settings.target }} - node@20 (map[build:cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features plugin --target x86_64-apple-darwin cp ../../bindings/target/x86_64-apple-darwin/release/swc . chmod +x ./swc… (push) Waiting to run
Publish (core) / stable - ${{ matrix.settings.target }} - node@20 (map[build:export CARGO_PROFILE_RELEASE_LTO=false yarn build --target x86_64-pc-windows-msvc cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features plugin --target x86_64-pc-w… (push) Waiting to run
Publish (core) / stable - ${{ matrix.settings.target }} - node@20 (map[build:export DISABLE_PLUGIN_E2E_TESTS=true export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=256 export CARGO_PROFILE_RELEASE_LTO=false cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --relea… (push) Waiting to run
Publish (core) / stable - ${{ matrix.settings.target }} - node@20 (map[build:export DISABLE_PLUGIN_E2E_TESTS=true export CARGO_PROFILE_RELEASE_LTO=false cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --target i686-pc-windows-msvc cp ../../bindi… (push) Waiting to run
Publish (core) / stable - ${{ matrix.settings.target }} - node@20 (map[build:export DISABLE_PLUGIN_E2E_TESTS=true yarn napi build --bin swc --release --target armv7-unknown-linux-gnueabihf --manifest-path ../../bindings/swc_cli/Cargo.toml -x --target-dir ../release -o … (push) Waiting to run
Publish (core) / stable - ${{ matrix.settings.target }} - node@20 (map[build:export JEMALLOC_SYS_WITH_LG_PAGE=16 && rustup toolchain install $(cat ../../rust-toolchain) && rustup target add aarch64-unknown-linux-musl && RUSTFLAGS='-C target-feature=+crt-static -C link-… (push) Waiting to run
Publish (core) / stable - ${{ matrix.settings.target }} - node@20 (map[build:set -e && export CARGO_PROFILE_RELEASE_LTO=false && RUSTFLAGS='-C target-feature=+sse2' cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features plugin --target x86_6… (push) Waiting to run
Publish (core) / stable - ${{ matrix.settings.target }} - node@20 (map[build:set -e && export JEMALLOC_SYS_WITH_LG_PAGE=16 && rustup target add aarch64-unknown-linux-gnu && RUSTFLAGS='' cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features … (push) Waiting to run
Publish (core) / stable - ${{ matrix.settings.target }} - node@20 (map[build:set -e && unset CC_x86_64_unknown_linux_gnu && unset CC && RUSTFLAGS='-C target-feature=+sse2' cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features plugin --targe… (push) Waiting to run
Publish (core) / stable - ${{ matrix.settings.target }} - node@20 (map[build:sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*; export CC=$(xcrun -f clang); export CXX=$(xcrun -f clang++); SYSROOT=$(xcrun --sdk macosx --show-sdk-path); export CFLAGS="-isysroot $SY… (push) Waiting to run
Publish (core) / Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }} (18, map[host:macos-latest target:x86_64-apple-darwin]) (push) Blocked by required conditions
Publish (core) / Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }} (18, map[host:windows-latest target:x86_64-pc-windows-msvc]) (push) Blocked by required conditions
Publish (core) / Test bindings on Linux-x64-gnu - node@${{ matrix.node }} (18) (push) Blocked by required conditions
Publish (core) / Test bindings on x86_64-unknown-linux-musl - node@${{ matrix.node }} (18) (push) Blocked by required conditions
Publish (core) / Test bindings on armv7-unknown-linux-gnueabihf - node@${{ matrix.node }} (18) (push) Blocked by required conditions
Publish (core) / npm (push) Blocked by required conditions
Publish (core) / Build - wasm (${{ matrix.settings.npm }}) for node.js (map[crate:binding_core_wasm npm:@swc/wasm target:nodejs]) (push) Waiting to run
Publish (core) / Build - wasm (${{ matrix.settings.npm }}) for node.js (map[crate:binding_core_wasm npm:@swc/wasm-web target:web]) (push) Waiting to run
**Description:**

I'm going to create a TypeScript-strip-only Wasm publish pipeline so it can be used by node.js.

**Related issue:**

 - https://github.com/marco-ippolito/node/pull/2
2024-07-03 08:10:02 +09:00
Donny/강동윤
2a490ad0b2
perf(es/parser): Remove unnecessary check (#9102)
**Description:**

We can skip some checks for error recovery.
2024-06-25 09:31:10 +09:00
Donny/강동윤
a8551592b2
feat(typescript): Implement Isolated Declaration (#9086)
**Description:**

This PR adds TypeScript Isolated Declarations implementation by forking Deno's implementation.
2024-06-21 09:54:59 +00:00
강동윤 (Donny)
ae6ab656fa chore: Skip benchmark for chore: commits 2024-06-17 16:59:19 +09:00
Donny/강동윤
aa59ca3727
chore: Restore benchmark action (#9067)
**Description:**

Let's restore https://swc.rs/docs/benchmarks
2024-06-17 16:08:01 +09:00
Donny/강동윤
2e153707a3
chore: Enable more tests for swc-ecosystem-ci (#9065) 2024-06-17 12:07:46 +09:00
Donny/강동윤
e755bce438
chore: Implement Verify release with ecosystem (#9064)
**Description:**

This is a follow-up PR for https://github.com/swc-project/swc/pull/9062. This PR integrates swc-ecosystem-ci to publish pipeline. For faster debugging, I disabled the build process.
2024-06-17 08:58:52 +09:00
Donny/강동윤
2122756394
chore: Implement Publish nightly to npm (#9062)
**Description:**

This is a follow-up PR of https://github.com/swc-project/swc/pull/9061
2024-06-16 22:07:37 +09:00
Donny/강동윤
e7ec1e541d
chore: Reduce cache of CI (#9063) 2024-06-16 20:19:40 +09:00
Donny/강동윤
886bf0e9c2
chore: Implement Determine nightly version (#9061)
**Description:**

This is a follow-up PR of https://github.com/swc-project/swc/pull/9060. I'll integrate `swc-ecosystem-ci` into publish pipeline to prevent regressions.
2024-06-16 19:29:18 +09:00
Donny/강동윤
79e737caac
chore: Prepare publish CI action (#9060)
**Description:**

I'm trying to build a publishing pipeline that verifies ecosystem packages before publishing.
2024-06-16 18:15:08 +09:00
강동윤 (Donny)
ea7191e185 chore: Fix nightly publish action 2024-06-14 23:56:07 +09:00
Donny/강동윤
3337bb26f9
fix(ci): Make publish action upload cli artifacts (#9040)
**Related issue:**

 - Closes #9035
2024-06-12 14:22:08 +09:00
강동윤 (Donny)
e23af00a8c chore(ci): Disable testing on node@20 2024-06-10 14:16:10 +09:00
Donny/강동윤
6fa79be081
feat(es/transforms): Add experimental output API for transforms (#9000)
**Description:**

This interface will provide a way to emit some outputs from transforms. This data will be emitted back to the JS caller.
2024-06-05 15:38:28 +09:00