hybridgroup / cylon-tessel

Cylon adaptor for the Tessel
http://cylonjs.com
Other
13 stars 3 forks source link

When cylon-tessel is deployed, no modules are bundled with it. #2

Closed tcr closed 10 years ago

tcr commented 10 years ago

Right now the very gaudy CLI command DEBUG=* tessel pack . -d exposes that only these modules are deployed to Tessel:

➜  cylon-tessel git:(master) DEBUG=* tessel pack -d examples/blink.js
  tessel compiling +0ms _start.js
  tessel writing +26ms _start.js
  tessel compiling +1ms app/examples/blink.js
  tessel writing +8ms app/examples/blink.js
  tessel compiling +1ms app/lib/cylon-tessel.js
  tessel writing +10ms app/lib/cylon-tessel.js
  tessel compiling +0ms app/lib/tessel.js
  tessel writing +64ms app/lib/tessel.js
INFO wrote 31.00 KB bytes
➜  cylon-tessel git:(master)

The culprit is https://github.com/hybridgroup/cylon-tessel/blob/master/package.json#L19. "*": false, makes no modules included by default, but I had to add "cylon": true to explicitly require it again.

zankich commented 10 years ago

@tcr you can use the cylon-cli to create a new Tessel project which has a package.json that has been properly formatted for the Tessel.

$ sudo npm install -g cylon-cli
$ cylon generate tessel my-tessel-project
$ cd my-tessel-project
$ npm install
$ tessel push blink.js
edgarsilva commented 10 years ago

@tcr Were you able to solve this problem?