Correct syntax outside of tests
This commit is contained in:
parent
846161c004
commit
8b1f342964
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "cylon",
|
||||
"version": "0.0.0",
|
||||
"main": "lib/cylon.js",
|
||||
"main": "dist/cylon.js",
|
||||
"description": "A JavaScript robotics framework for node.js",
|
||||
"homepage": "http://cylonjs.com",
|
||||
"bugs": "https://github.com/hybridgroup/cylon/issues",
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
Port = source("port")
|
||||
Port = require("./port")
|
||||
|
||||
module.exports = class Connection
|
||||
constructor: (opts) ->
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
Robot = source("robot")
|
||||
Robot = require("./robot")
|
||||
|
||||
exports.robot = (opts) ->
|
||||
new Robot(opts)
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
Connection = source("connection")
|
||||
Device = source("device")
|
||||
Connection = require("./connection")
|
||||
Device = require("./device")
|
||||
|
||||
module.exports = class Robot
|
||||
@connectionTypes = {}
|
||||
|
|
Loading…
Reference in New Issue