Skip to content

Commit

Permalink
feat: init project
Browse files Browse the repository at this point in the history
  • Loading branch information
2fd committed Apr 16, 2024
1 parent 9ad1f44 commit 5306057
Show file tree
Hide file tree
Showing 17 changed files with 9,370 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "cargo" # See documentation for possible values
directory: "/" # Location of package manifests
open-pull-requests-limit: 20
schedule:
interval: "daily"
reviewers:
- "2fd"
40 changes: 40 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: pull_request

on:
pull_request:
branches:
- master

jobs:
test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-10.15
- windows-latest
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
with:
submodules: true

- uses: actions-rs/toolchain@v1
with:
profile: minimal

- name: Cache
uses: actions/cache@v2
with:
path: |
~/.cargo/
target
Cargo.lock
key: cargo-dev--${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
cargo-dev--${{ runner.os }}
# Ensure that all components are compilable.
- run: cargo test --color always --all
46 changes: 46 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: release

on:
push:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: true

- uses: actions-rs/toolchain@v1
with:
profile: minimal

- name: Cache
uses: actions/cache@v2
with:
path: |
~/.cargo/
target
Cargo.lock
key: cargo-dev--${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
cargo-dev--${{ runner.os }}
# Ensure that all components are compilable.
- run: cargo test --color always --all

- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
registry-url: https://registry.npmjs.org/

- run: npm ci

- run: npm run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,20 @@ Cargo.lock

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb


# Added by cargo

/target


# Added by cargo
#
# already existing elements were commented out

#/target

node_modules/
tests/fixture/*/input.js
*.wasm
.swc/
41 changes: 41 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[package]
name = "allow_importing_ts_extensions"
version = "0.0.0-development"
edition = "2021"
publish = false

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
crate-type = ["cdylib", "rlib"]

[profile.release]
# This removes more dead code
codegen-units = 1
lto = true
# Optimize for size
opt-level = "s"
# Optimize for performance, this is default so you don't need to specify it
# opt-level = "z"

# Strip debug symbols
strip = "symbols"

[dependencies]
serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.115"
swc_atoms = "0.6.6"
swc_common = "0.33.22"
swc_core = { version = "0.90.30", features = ["ecma_plugin_transform"] }
swc_ecma_ast = "0.112.7"
swc_ecma_utils = "0.127.17"
swc_ecma_visit = "0.98.7"
swc_plugin_macro = "0.9.16"

[dev-dependencies]
swc_ecma_parser = "0.143.13"
swc_ecma_transforms_base = "0.137.19"
swc_ecma_transforms_testing = "0.140.18"
swc_ecma_transforms_typescript = "0.188.18"
testing = "0.35.22"
tracing = { version="0.1", features = ["release_max_level_info"] }
Loading

0 comments on commit 5306057

Please sign in to comment.