Skip to content

Commit d4dde4d

Browse files
committed
Node support.
1 parent a000e8a commit d4dde4d

File tree

540 files changed

+1170615
-63
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

540 files changed

+1170615
-63
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ target
1414
*.xcuserdatad
1515
local.properties
1616
.DS_Store
17+
dist

Makefile.toml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,25 @@ script = '''
9090
pod install
9191
xcodebuild -workspace "demo-ios.xcworkspace" -scheme "demo-ios-Example" -sdk iphonesimulator -configuration "Debug" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGN_ENTITLEMENTS="" CODE_SIGNING_ALLOWED="NO" ARCHS="x86_64" clean build
9292
'''
93-
dependencies = ["build-ios-demo"]
93+
dependencies = ["build-ios-demo"]
94+
95+
[tasks.build-node-demo]
96+
description = "Test through nodejs demo"
97+
cwd = "demo-node/rustlib"
98+
script = '''
99+
cargo run --manifest-path ../../toolchain/rsbind/Cargo.toml . nodejs all
100+
'''
101+
102+
#cargo build --release
103+
#cp target/release/libnode_rustlib.dylib ../
104+
#mv ../libnode_rustlib.dylib ../libnode_rustlib.node
105+
106+
[tasks.test-node-demo]
107+
description = "Test through nodejs demo"
108+
cwd = "demo-node"
109+
script = '''
110+
npm install
111+
npm run build
112+
npm run test
113+
'''
114+
dependencies = ["build-node-demo"]

demo-jar/rustlib/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo-node/node_modules/.bin/acorn

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo-node/node_modules/.bin/ts-node

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo-node/node_modules/.bin/ts-node-cwd

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo-node/node_modules/.bin/ts-node-esm

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo-node/node_modules/.bin/ts-node-script

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo-node/node_modules/.bin/ts-node-transpile-only

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo-node/node_modules/.bin/ts-script

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)