Skip to content

Commit 686c4ed

Browse files
committed
Added BigRedButton script & use buildDependencies module
1 parent f2b57df commit 686c4ed

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

package.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,29 @@
22
"name": "nodeos-barebones",
33
"version": "1.0.0-RC3.0",
44
"scripts": {
5+
"BigRedButton": "scripts/BigRedButton",
56
"build": "scripts/build",
67
"prebuild": "scripts/prebuild",
8+
"install": "prebuild-install || (buildDependencies && npm run build)",
79
"start": "scripts/start",
810
"test": "scripts/test",
911
"unbuild": "scripts/unbuild"
1012
},
1113
"author": "Jesús Leganés Combarro 'piranna' <[email protected]>",
1214
"license": "MIT",
1315
"dependencies": {
14-
"cpio2tar": "^0.0.5",
15-
"download-manager": "^0.1.3",
16-
"minimist": "^1.2.0",
17-
"nodeos-nodejs": "^6.9.4"
16+
"builddependencies": "^0.0.1",
17+
"prebuild-install": "^2.1.0"
1818
},
19+
"buildDependencies": [
20+
"download-manager",
21+
"nodeos-nodejs"
22+
],
1923
"devDependencies": {
24+
"download-manager": "^0.1.3",
25+
"minimist": "^1.2.0",
2026
"nodeos-cross-toolchain": "^1.0.0-RC3.0",
27+
"nodeos-nodejs": "NodeOS/nodejs",
2128
"qemu": "^2.8.0",
2229
"suppose": "^0.6.1"
2330
},

scripts/BigRedButton

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
3+
# This script should generate all the possible build combinations of
4+
# nodeos-barebones and test them by being able to exec a Node.js REPL. In some
5+
# cases this could not be fully possible and so the tests should be improved in
6+
# the future
7+
8+
9+
BUILD="npm run build --no-spin"
10+
TEST="npm test"
11+
12+
13+
eval MACHINE=pc BITS=32 $BUILD && $TEST || exit 1
14+
eval MACHINE=pc BITS=64 $BUILD && $TEST || exit 2
15+
eval MACHINE=raspi2 $BUILD || exit 3

0 commit comments

Comments
 (0)