gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 5544Rust 88Markdown 11TOML 91926 Sutichaykuna

Implement js bindings

d28a2b60cfa9d247949dfe9a6651bfb609ad0e7f · ruwaq Emil Sjölander · (7 wata ñawpaq) · tayta 00dc24f1a · kay commitpi sach'ata qhaway

Semántico sayk'uy

Mana ima sutichaypas t'ikrakurqanchu: qillqalla, yachachiylla utaq willaylla t'ikrakurqan.

2 qillqakuna · +28 −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