Skip to content

Commit ef7a121

Browse files
committed
Scaffold ink app
0 parents  commit ef7a121

File tree

9 files changed

+9162
-0
lines changed

9 files changed

+9162
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
end_of_line = lf
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
indent_size = 2

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
3+
.DS_Store

cli.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env node
2+
'use strict';
3+
const React = require('react');
4+
const {render} = require('ink');
5+
const meow = require('meow');
6+
7+
const ui = require('import-jsx')('./ui');
8+
9+
const cli = meow(`
10+
Usage
11+
$ arduino-cereal
12+
13+
Options
14+
--baud Baud rate (default: 9600)
15+
`);
16+
17+
render(React.createElement(ui, cli.flags));

0 commit comments

Comments
 (0)