Skip to content

Commit

Permalink
microflo: Also include LedChainWS from microflo-arduino
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnor committed Dec 31, 2017
1 parent 4e3fbfe commit f476b52
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ microflo_gen = (name, options={}) ->
target: 'linux'
out: "build/#{options.target||'linux'}/#{name}/#{name}.#{options.ext||'cpp'}"
graph: "graphs/#{name}.fbp"
components: "./node_modules/microflo-core/components"
components: ["./node_modules/microflo-core/components", "./node_modules/microflo-arduino/components/LedChainWS.hpp"]
for k,v of defaults
options[k] = v if not options[k]?

Expand All @@ -75,10 +75,13 @@ microflo_gen = (name, options={}) ->
fs.mkdirSync path.join(dir,'builder') if not fs.existsSync path.join(dir,'builder')
cmd = [
options.microflo,
'--target', options.target
'--components', options.components
'generate', options.graph, options.out
'--target', options.target
]

for c in options.components
cmd = cmd.concat(['--components', c])

return cmd.join(' ')

microflo_compile = (name, options={}) ->
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"grunt-noflo-lint": "^0.3.0",
"grunt-string-replace": "^1.3.1",
"microflo-core": "^0.6.0",
"microflo-arduino": "^0.6.0",
"mocha": "^4.0.0",
"noflo-nodejs": "^0.9.0"
},
Expand Down

0 comments on commit f476b52

Please sign in to comment.