Skip to content

Commit

Permalink
Prepare For Browser Runtime Implementation
Browse files Browse the repository at this point in the history
Revert "use deno_ast for typescript transpilation"

This reverts commit ae334f5.

Use Module Syntax For Scripts
  • Loading branch information
zicklag committed Aug 13, 2022
1 parent f28c618 commit 1023afc
Show file tree
Hide file tree
Showing 19 changed files with 772 additions and 407 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false

[*.ts]
indent_size = 2
175 changes: 32 additions & 143 deletions Cargo.lock

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

15 changes: 8 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,26 @@ name = "bevy_mod_js_scripting"
version = "0.1.0"
edition = "2021"

[features]
default = ["typescript"]
typescript = [
"deno_ast"
]

[dependencies]
anyhow = "1.0.57"
bevy = { version = "0.8.0", default-features = false, features = ["bevy_asset"] }
bevy_reflect = "0.8.0-dev"
fixedbitset = "0.4"

deno_core = "0.146.0"
deno_ast = { version = "0.17.0", features = ["transpiling"], optional = true }
serde = "1.0"
serde_json = "1.0"

bevy_ecs_dynamic = { git = "https://github.com/jakobhellermann/bevy_ecs_dynamic" }
bevy_reflect_fns = { git = "https://github.com/jakobhellermann/bevy_reflect_fns" }

swc_common = { version = "0.27.4" }
swc_ecma_codegen = { version = "0.121.2" }
swc_ecma_parser = { version = "0.117.2" }
swc_ecma_transforms_base = { version = "0.103.4" }
swc_ecma_transforms_typescript = { version = "0.145.1" }
swc_ecma_visit = { version = "0.76.3" }
swc_atoms = { version = "0.4.3" }

[dev-dependencies]
bevy = { version = "0.8.0", default-features = false, features = ["render", "bevy_winit", "x11", "filesystem_watcher"] }
Loading

0 comments on commit 1023afc

Please sign in to comment.