This repository was archived by the owner on Aug 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathtest_lib_install.js
70 lines (61 loc) · 1.67 KB
/
test_lib_install.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
var libs = require('./libraries');
//is lib installed
//install lib
//get compile paths
//get include paths
//get list of examples
//search for library, score name highest, then tags, then
//console.log("libs",libs);
/*
console.log("searching for the wire lib by name");
libs.search("wire",function(results) {
console.log("returned",results);
});
console.log("getting the wire lib exactly");
var lib = libs.getById('wire');
console.log(lib);
console.log("is installed",lib.isInstalled());
console.log("installing");
lib.install();
console.log("is installed",lib.isInstalled());
*/
/*
console.log("searching for the NESPad lib by tag 'input'");
libs.search('input',function(results){
console.log("returned",results);
});
var lib = libs.getById('nespad');
console.log("nes installed?",lib.isInstalled());
if(!lib.isInstalled()) {
lib.install(function(status) {
console.log("now it should be installed");
console.log("nes installed?",lib.isInstalled());
});
}
*/
/*
var lib = libs.getById('accelstepper');
if(!lib.isInstalled()) {
console.log("not installed");
lib.install(function(status) {
console.log("now it should be installed");
console.log("accel installed?",lib.isInstalled());
})
} else {
console.log("already installed");
}
*/
//var lib = libs.getById('rbl_nrf8001');
libs.install(['accelstepper','afmotor','nespad','rbl_nrf8001'], function(err) {
console.log('fully installed? ', err);
});
/*
if(!lib.isInstalled()) {
console.log("not installed");
return;
lib.install(function(status) {
console.log("now it should be installed");
console.log("accel installed?",lib.isInstalled());
})
}
*/