File tree 4 files changed +10
-8
lines changed
4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ Blink an LED without any JavaScript code.
9
9
npm install -g iotjs
10
10
```
11
11
12
- ### 2. Setup board .json
13
- Add a new file ` board .json` and add the below JSON object.
12
+ ### 2. Setup device .json
13
+ Add a new file ` device .json` and add the below JSON object.
14
14
``` json
15
15
{
16
16
"modules" : {
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
3
- var parser = require ( '../lib/board-parser' ) ;
4
- var board = require ( process . cwd ( ) + '/board.json' ) ;
5
- parser . parse ( board ) ;
3
+ var parser = require ( '../lib/device-parser' ) ;
4
+ // Parse the `device.json` file by default.
5
+ var device = require ( process . cwd ( ) + '/device.json' ) ;
6
+ parser . parse ( device ) ;
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var parser = require ( './lib/board -parser' ) ;
3
+ var parser = require ( './lib/device -parser' ) ;
4
4
var path = require ( 'path' ) ;
5
5
var parentDir = path . dirname ( module . parent . filename ) ;
6
- var board = require ( parentDir + '/board.json' ) ;
7
- var modules = parser . parse ( board ) ;
6
+ // Parse the `device.json` file by default.
7
+ var device = require ( parentDir + '/device.json' ) ;
8
+ var modules = parser . parse ( device ) ;
8
9
9
10
module . exports = {
10
11
modules : modules ,
File renamed without changes.
You can’t perform that action at this time.
0 commit comments