Skip to content

Commit

Permalink
include the linux arm build of drivers as optional dependency to core…
Browse files Browse the repository at this point in the history
… drivers module
  • Loading branch information
Jonahss committed Mar 11, 2023
1 parent 71579ba commit 89d502a
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
target
.DS_Store
.DS_Store

node_modules
3 changes: 3 additions & 0 deletions examples/simple-demo/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
let { sum } = require('@wyldcard/drivers')

console.log(sum(400, 20))
25 changes: 25 additions & 0 deletions examples/simple-demo/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "@wyldcard/simple-demo",
"version": "1.0.0",
"description": "Simple demo for Wyldcard SDK. Display a random image whenever a button is pressed.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/jonahss/wyldcard-public.git"
},
"keywords": [
"wyldcard"
],
"author": "jonahss",
"license": "AGPL-3.0-or-later",
"bugs": {
"url": "https://github.com/jonahss/wyldcard-public/issues"
},
"homepage": "https://github.com/jonahss/wyldcard-public#readme",
"dependencies": {
"@wyldcard/drivers": "^0.0.5"
}
}
15 changes: 15 additions & 0 deletions examples/simple-demo/yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


"@wyldcard/[email protected]":
version "0.0.5"
resolved "https://registry.yarnpkg.com/@wyldcard/drivers-linux-arm-gnueabihf/-/drivers-linux-arm-gnueabihf-0.0.5.tgz#bd0f095eeefd2fcadd08b8eedb4f36848b52b73b"
integrity sha512-rFns1i/H3dwqgYI7rlEAASaMK1MwxmuhZHbhdT0cwX5g4Rj5DfFVXqFStP1H4qIlT3ynX5K1fjuQavLWGGVovg==

"@wyldcard/drivers@^0.0.5":
version "0.0.5"
resolved "https://registry.yarnpkg.com/@wyldcard/drivers/-/drivers-0.0.5.tgz#e484ed3d01e22d8f606421c47247c618f9f7a53e"
integrity sha512-s/Pwg3f7z2CJc5osmX86IBVh1batoqneu77hhzPuQOZimJ1gDChJeYAIHVGwk60+I2d9KyFGb0zX5QHv8RBObw==
optionalDependencies:
"@wyldcard/drivers-linux-arm-gnueabihf" "0.0.5"
5 changes: 4 additions & 1 deletion napi-rust-drivers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@
]
}
},
"license": "MIT",
"license": "AGPL-3.0-or-later",
"devDependencies": {
"@napi-rs/cli": "^2.14.3",
"ava": "^4.3.3"
},
"optionalDependencies": {
"@wyldcard/drivers-linux-arm-gnueabihf": "0.0.5"
},
"ava": {
"timeout": "3m"
},
Expand Down

0 comments on commit 89d502a

Please sign in to comment.