Skip to content

Commit db3c66e

Browse files
committed
board.json => device.json
1 parent 22439b7 commit db3c66e

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Blink an LED without any JavaScript code.
99
npm install -g iotjs
1010
```
1111

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.
1414
```json
1515
{
1616
"modules": {

bin/iotjs.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env node
22

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);

index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
'use strict';
22

3-
var parser = require('./lib/board-parser');
3+
var parser = require('./lib/device-parser');
44
var path = require('path');
55
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);
89

910
module.exports = {
1011
modules: modules,
File renamed without changes.

0 commit comments

Comments
 (0)