Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
037d177
docs: add gh-pages.mjs
Jan 22, 2024
bcf247e
test: remove react source in repo, using cdn resource
Jan 22, 2024
cf091b3
docs: update readme
Jan 22, 2024
3fc0da4
chore: add kover
Jan 22, 2024
1148987
chore: add kover token
Jan 22, 2024
a6229c9
chore: kover.yaml add distribution field
Jan 22, 2024
d8aa82a
Create gradle.properties
yidafu Jan 23, 2024
7290548
chore: gradle-wrapper.properties update distributionUrl
yidafu Jan 23, 2024
b98cd9f
chore: update java-version to 17
yidafu Jan 23, 2024
6a566d2
Update kover.yaml
yidafu Jan 23, 2024
2639d59
Update kover.yaml
yidafu Jan 23, 2024
70696d4
Update kover.yaml
yidafu Jan 23, 2024
a15972d
Update kover.yaml
yidafu Jan 23, 2024
a398fda
chore: update kover.yml
Jan 23, 2024
f0c5930
chore: update rust target
Jan 23, 2024
401117d
chore: update kover.yaml
Jan 23, 2024
e186097
chore: add rustup add targets
Jan 23, 2024
fce0eea
chore: apt add build-essential
Jan 23, 2024
f95b994
chore: sudo apt
Jan 23, 2024
0b9ed94
chore: update kover.yaml
Jan 23, 2024
6534295
chore: add setup-ubuntu.sh
Jan 23, 2024
f227271
chore: add release job
Jan 23, 2024
29edfa0
chore: add release job
Jan 23, 2024
aa93616
chore: x86_64-unknown-linux-gnu remove linker
Jan 23, 2024
4dc6571
chore: update kover.yaml
Jan 23, 2024
7be9f15
chore: update setup-ubuntu.sh
Jan 23, 2024
8d48c91
chore: update setup-ubuntu.sh
Jan 23, 2024
e50c0f7
chore: add llvm
Jan 23, 2024
d9ea8a8
chore: update kover.yaml
Jan 23, 2024
1017e48
chore: update build script
Jan 23, 2024
acad84a
chore: update build script
Jan 23, 2024
f82ded9
feat(swc-generator-kt): implement Kotlin generator with KotlinPoet an…
Oct 21, 2025
db7712c
test: add comprehensive test coverage for swc-binding module
Oct 21, 2025
278bdb6
refactor(swc-generator-kt): remove AST JSON generation and improve CLI
Oct 22, 2025
c71dfa4
feat: upgrade swc-jni dependencies to latest versions
Oct 22, 2025
a3f13ba
docs: update swc-jni README with latest dependency versions and enhan…
Oct 22, 2025
7cedc90
fix: resolve cargo clippy warnings
Oct 22, 2025
904275a
feat: unify project license to MIT
Oct 22, 2025
9af5ba1
fix: resolve swc-binding test failures
Oct 22, 2025
453fec1
fix: partial fix for AST compatibility issues with SWC 43.0.0
Oct 22, 2025
98ed4eb
fix: correct DSL generation directory path
Oct 22, 2025
0e9170b
Optimize build artifact directory structure and toolchain configuration
Oct 22, 2025
5a19fb5
Add build setup automation and fix Linux ARM64 cdylib support
Oct 22, 2025
3ac7328
Rename swc-generator-kt to swc-generator
Oct 22, 2025
ef5a708
refactor(swc-generator): restructure package hierarchy for better cod…
Oct 22, 2025
7d5262d
refactor: implement new architecture for swc-generator
Oct 23, 2025
15c7af0
feat: implement nullable properties and sealed interface generation
Oct 23, 2025
feaeae3
fix: set type property default value to interface name in implementat…
Oct 23, 2025
7da7843
fix: generate string literals for type property default values
Oct 23, 2025
2790b03
fix: ensure implementation classes inherit interfaces instead of classes
Oct 23, 2025
90b99c1
feat: optimize code generator performance and improve type handling
Oct 23, 2025
4d50308
refactor: major restructuring of swc-binding DSL architecture
Oct 23, 2025
ac81d93
Clean up swc-generator test outputs
yidafu Oct 24, 2025
eebb925
refactor: optimize swc-generator architecture and performance
yidafu Oct 25, 2025
a1c755d
feat: optimize swc-generator codebase for performance and maintainabi…
yidafu Oct 25, 2025
65b8fa5
feat: optimize swc-generator codebase for performance and maintainabi…
yidafu Oct 25, 2025
c92c673
fix: improve nested interface handling in code generator
yidafu Oct 25, 2025
ace5a6a
refactor: replace HashMap/HashSet with LinkedHashMap/LinkedHashSet fo…
yidafu Oct 25, 2025
670f973
fix: fix test compilation errors and improve test coverage
Nov 14, 2025
e0f5003
Merge branch 'feature/kotlin-generator-impl' of https://github.com/yi…
Nov 14, 2025
73d7c0d
refactor: restructure swc-generator architecture with Pipeline patter…
yidafu Nov 14, 2025
fb16041
refactor: finalize generator pipeline and add exhaustive tests
yidafu Nov 14, 2025
3835987
refactor: rework union API to drop legacy generated factories
yidafu Nov 14, 2025
321ef30
chore(gradle): centralize dependency versions via libs catalog
yidafu Nov 14, 2025
57619ea
Merge branch 'feature/kotlin-generator-impl' of https://github.com/yi…
yidafu Nov 14, 2025
ccc0bc8
chore(tests): drop redundant generator specs from merge
yidafu Nov 14, 2025
3e8f115
refactor(swc-jni): extract sync work functions and improve error hand…
yidafu Nov 15, 2025
6a22fe9
feat(swc-generator): generate per-Union with-serializers and refactor…
yidafu Nov 16, 2025
eeaf18d
test(swc-generator): add and update tests for union dedupe, DSL pipel…
yidafu Nov 16, 2025
c82e882
refactor(types)!: remove Booleanable; update Union/DSL/JSON; refresh …
yidafu Nov 16, 2025
e2b2112
test: replace custom test assertions with kotlin.test/kotest and remo…
yidafu Nov 16, 2025
4123c47
Resolve merge conflicts from feature/kover: gitignore, docs, gradle p…
yidafu Nov 16, 2025
e353d0b
feat(docs): standardize READMEs and add zh-CN mirrors
yidafu Nov 16, 2025
4b09190
feat(swc-generator): fix kotlinx.serialization polymorphism and discr…
yidafu Nov 16, 2025
f343b8a
feat(generator): introduce NameUtils and enhance Union serialization …
yidafu Nov 16, 2025
3da5a81
test(binding): add E2E pipeline and async file tests; extend options/…
yidafu Nov 16, 2025
68c2d14
refactor(swc-generator)!: remove *Impl generation and UnionFactory; r…
yidafu Nov 16, 2025
0c8fbbf
refactor(generator): streamline union serializer generation and modul…
yidafu Nov 16, 2025
a42b46f
feat(binding): improve SwcNative API; refine DSL/JSON; reorganize tests
yidafu Nov 16, 2025
5ad2262
feat(binding): expand SwcNative API; refine DSL/JSON; reorganize tests
yidafu Nov 16, 2025
5cd37a1
feat(generator): enhance type system with alias expansion and LCA det…
yidafu Nov 17, 2025
8679a02
refactor(generator): improve code maintainability and quality
yidafu Nov 17, 2025
cced169
refactor(swc-jni): remove debug code and translate comments to English
yidafu Nov 17, 2025
42e738c
feat: significantly increase test coverage and fix compilation errors
yidafu Nov 17, 2025
87127c1
refactor(generator): remove hardcoded configuration and improve code …
yidafu Nov 18, 2025
b1deb74
feat(binding): add custom type definitions and comprehensive AST seri…
yidafu Nov 18, 2025
84a40e2
refactor(swc-jni): remove debug code and eliminate duplicate code pat…
yidafu Nov 18, 2025
0c736d6
feat(binding): generate comprehensive AST node classes, DSL builders,…
yidafu Nov 18, 2025
b9738e1
refactor(generator): improve serialization configuration and file com…
yidafu Nov 18, 2025
bf2b8af
feat(generator): add default serializer support and refactor code str…
yidafu Nov 19, 2025
ddcb992
feat(binding): add TruePlusMinusSerializer and expand test coverage
yidafu Nov 19, 2025
c7f3c6d
feat(generator): add default serializer support and refactor code str…
yidafu Nov 19, 2025
90a0889
test(binding): add comprehensive ES feature tests for ES2015-ES2025
yidafu Nov 19, 2025
545d69f
refactor(generator): add CollectionUtils and unify collection initial…
yidafu Nov 19, 2025
b9d39e3
refactor(binding): unify code formatting and translate comments to En…
yidafu Nov 19, 2025
bd36b3c
ci(workflows): update kover workflow to report only swc-binding modul…
yidafu Nov 19, 2025
1bec05c
chore(binding): configure ktlint to exclude generated code directories
yidafu Nov 19, 2025
bea36c7
docs: update READMEs with SwcNative usage guide and DSL documentation
yidafu Nov 19, 2025
3ee67af
Merge branch 'master' of https://github.com/yidafu/swc-binding into d…
yidafu Nov 19, 2025
e48a8b3
chore: add GitHub issue and pull request templates
yidafu Nov 19, 2025
fe971f8
chore: add pull request template
yidafu Nov 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
128 changes: 128 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
name: πŸ› Bug Report
description: Report a bug or unexpected behavior
title: "[Bug] "
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
Thanks for reporting a bug! Please fill out the form below.

- type: textarea
id: description
attributes:
label: Description
description: A clear and concise description of what the bug is
placeholder: Describe the bug...
validations:
required: true

- type: textarea
id: reproduction
attributes:
label: Steps to Reproduce
description: Steps to reproduce the behavior
placeholder: |
1. Create SwcNative instance
2. Call parseSync with...
3. See error
validations:
required: true

- type: textarea
id: expected
attributes:
label: Expected Behavior
description: What you expected to happen
placeholder: The code should...
validations:
required: true

- type: textarea
id: actual
attributes:
label: Actual Behavior
description: What actually happened
placeholder: Instead, I got...
validations:
required: true

- type: textarea
id: code
attributes:
label: Code Example
description: A minimal code example that reproduces the issue
render: kotlin
placeholder: |
```kotlin
val swc = SwcNative()
// Your code here
```
validations:
required: true

- type: textarea
id: error
attributes:
label: Error Message / Stack Trace
description: If applicable, paste the error message or stack trace
render: text
placeholder: |
Exception in thread "main" java.lang.RuntimeException: ...

- type: dropdown
id: module
attributes:
label: Affected Module
description: Which module is affected?
options:
- swc-binding
- swc-generator
- swc-jni
- Documentation
- Other
validations:
required: true

- type: input
id: version
attributes:
label: Version
description: swc-binding version (e.g., 0.7.0)
placeholder: 0.7.0
validations:
required: true

- type: input
id: kotlin_version
attributes:
label: Kotlin Version
description: Kotlin version (e.g., 2.2.10)
placeholder: 2.2.10

- type: input
id: jvm_version
attributes:
label: JVM Version
description: Java version (e.g., 17)
placeholder: 17

- type: dropdown
id: os
attributes:
label: Operating System
options:
- Linux
- macOS
- Windows
- Other
validations:
required: true

- type: textarea
id: additional
attributes:
label: Additional Context
description: Any other context, screenshots, or information about the problem
placeholder: Add any other context about the problem here...

9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
blank_issues_enabled: false
contact_links:
- name: πŸ’¬ Discussions
url: https://github.com/yidafu/swc-binding/discussions
about: Ask questions and discuss ideas with the community
- name: πŸ“– Documentation
url: https://yidafu.github.io/swc-binding/docs/
about: Check out our documentation

66 changes: 66 additions & 0 deletions .github/ISSUE_TEMPLATE/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: πŸ“š Documentation
description: Report documentation issues or suggest improvements
title: "[Docs] "
labels: ["documentation"]
body:
- type: markdown
attributes:
value: |
Thanks for helping improve our documentation!

- type: dropdown
id: type
attributes:
label: Type
description: What type of documentation issue is this?
options:
- Typo or grammar error
- Missing information
- Unclear or confusing
- Outdated information
- Broken link
- Other
validations:
required: true

- type: textarea
id: location
attributes:
label: Location
description: Where is the documentation issue? (file path, URL, section name)
placeholder: README.md, swc-binding/README.md, API docs, etc.
validations:
required: true

- type: textarea
id: description
attributes:
label: Description
description: Describe the documentation issue or improvement
placeholder: The documentation says... but it should say...
validations:
required: true

- type: textarea
id: suggestion
attributes:
label: Suggested Change
description: If you have a suggestion for how to fix it, please provide it here
placeholder: |
Change:
```
Old text
```

To:
```
New text
```

- type: textarea
id: additional
attributes:
label: Additional Context
description: Any other context about the documentation issue
placeholder: Add any other context here...

81 changes: 81 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: ✨ Feature Request
description: Suggest a new feature or enhancement
title: "[Feature] "
labels: ["enhancement"]
body:
- type: markdown
attributes:
value: |
Thanks for suggesting a feature! Please fill out the form below.

- type: textarea
id: problem
attributes:
label: Problem Statement
description: What problem does this feature solve?
placeholder: I'm always frustrated when...
validations:
required: true

- type: textarea
id: solution
attributes:
label: Proposed Solution
description: Describe the solution you'd like
placeholder: I would like to see...
validations:
required: true

- type: textarea
id: alternatives
attributes:
label: Alternatives Considered
description: Describe any alternative solutions or features you've considered
placeholder: Other approaches I've thought about...

- type: dropdown
id: module
attributes:
label: Affected Module
description: Which module would this feature affect?
options:
- swc-binding
- swc-generator
- swc-jni
- Documentation
- Other
validations:
required: true

- type: textarea
id: api
attributes:
label: Proposed API
description: If applicable, describe the proposed API or interface
render: kotlin
placeholder: |
```kotlin
// Proposed API example
swc.newMethod(...)
```

- type: dropdown
id: priority
attributes:
label: Priority
description: How important is this feature to you?
options:
- Low - Nice to have
- Medium - Would be helpful
- High - Important for my use case
- Critical - Blocking my project
validations:
required: true

- type: textarea
id: additional
attributes:
label: Additional Context
description: Any other context, examples, or mockups about the feature request
placeholder: Add any other context or screenshots about the feature request here...

59 changes: 59 additions & 0 deletions .github/ISSUE_TEMPLATE/question.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: ❓ Question
description: Ask a question about the project
title: "[Question] "
labels: ["question"]
body:
- type: markdown
attributes:
value: |
Have a question? We're here to help!

- type: textarea
id: question
attributes:
label: Question
description: What would you like to know?
placeholder: Your question here...
validations:
required: true

- type: textarea
id: context
attributes:
label: Context
description: Provide any relevant context about your question
placeholder: |
I'm trying to...
I've looked at...
I'm using version...

- type: textarea
id: code
attributes:
label: Code Example (if applicable)
description: If your question involves code, please share a minimal example
render: kotlin
placeholder: |
```kotlin
// Your code here
```

- type: dropdown
id: module
attributes:
label: Related Module
description: Which module is your question about?
options:
- swc-binding
- swc-generator
- swc-jni
- General
- Other

- type: textarea
id: additional
attributes:
label: Additional Information
description: Any other information that might help answer your question
placeholder: Add any other context here...

Loading
Loading