Implement js bindings
Delta semántico
Ninguna definición cambió: el cambio es de texto, documentación o datos.
2 archivos · +28 −0
- .circleci/config.yml +27 −0
- .gitignore +1 −0
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 3eae40097..38f787e65 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -24,6 +24,7 @@ jobs:
paths:
- ~/.cargo
- ./target
+
ios:
macos:
xcode: "10.0.0"
@@ -32,6 +33,30 @@ jobs:
- checkout
- run: cd bindings/swift && xcodebuild test -workspace Example/StretchKit.xcworkspace -scheme StretchKit -destination 'platform=iOS Simulator,name=iPhone XR,OS=12.0'
+ js:
+ docker:
+ - image: rust:1
+
+ steps:
+ - checkout
+
+ - restore_cache:
+ key: target-cache
+
+ - run: rustc --version; cargo --version; rustup --version
+ - run: rustup component add rustfmt
+ - run: rustup component add clippy
+ - run: cargo install wasm-pack
+ - run: cargo fmt -- --check
+ - run: wasm-pack test --node
+ - run: cargo clippy
+ - run: cargo bench
+
+ - save_cache:
+ key: target-cache
+ paths:
+ - ~/.cargo
+ - ./target
workflows:
version: 2
@@ -39,3 +64,5 @@ workflows:
jobs:
- core
- ios
+ - js
+
diff --git a/.gitignore b/.gitignore
index d0ecad27b..2e87205f3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@
/scripts/gentest/target
/bindings/kotlin/stretch/src/main/rust/target
/bindings/swift/StretchCore/target
+/bindings/js/target
**/*.rs.bk
Cargo.lock