electron 0.2.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.npmignore +2 -0
- package/History.md +35 -0
- package/README.md +148 -3
- package/lib/electron/args.js +31 -7
- package/lib/electron/program.js +38 -10
- package/lib/electron.js +2 -1
- package/package.json +6 -3
- package/docs/data/codex.json +0 -30
- package/docs/data/index.md +0 -19
- package/docs/out/index.html +0 -509
- package/docs/out/public/css/main.css +0 -340
- package/docs/out/public/js/main.js +0 -107
- package/docs/template/assets/js/main.js +0 -107
- package/docs/template/index.jade +0 -51
- package/docs/template/layout.jade +0 -23
- package/docs/template/stylus/code.styl +0 -102
- package/docs/template/stylus/main.styl +0 -99
- package/examples/clean.js +0 -38
- package/examples/simple.js +0 -24
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
@import url(https://fonts.googleapis.com/css?family=Lato:300italic,700italic,300,700);
|
|
2
|
-
@import url(http://fonts.googleapis.com/css?family=Oxygen);
|
|
3
|
-
|
|
4
|
-
@import 'nib'
|
|
5
|
-
@import 'fez'
|
|
6
|
-
|
|
7
|
-
global-reset()
|
|
8
|
-
fez-reset()
|
|
9
|
-
|
|
10
|
-
body
|
|
11
|
-
font 14px/1.5 Lato, "Helvetica Neue", Helvetica, Arial, sans-serif
|
|
12
|
-
font-weight 300
|
|
13
|
-
padding 50px
|
|
14
|
-
color #777
|
|
15
|
-
|
|
16
|
-
h1, h2
|
|
17
|
-
font-family Oxygen, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif
|
|
18
|
-
|
|
19
|
-
h2
|
|
20
|
-
margin-top 30px
|
|
21
|
-
padding-bottom 10px
|
|
22
|
-
border-bottom 1px solid #ccc
|
|
23
|
-
|
|
24
|
-
h1, h2, h4, h5, h6
|
|
25
|
-
color #222
|
|
26
|
-
font-weight bold
|
|
27
|
-
|
|
28
|
-
h3
|
|
29
|
-
color #39C
|
|
30
|
-
|
|
31
|
-
a
|
|
32
|
-
color #cc3300
|
|
33
|
-
text-decoration none
|
|
34
|
-
|
|
35
|
-
code, pre
|
|
36
|
-
font-family Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
|
|
37
|
-
color #333;
|
|
38
|
-
font-size 12px
|
|
39
|
-
|
|
40
|
-
ul
|
|
41
|
-
margin-bottom 1.5em
|
|
42
|
-
list-style disc
|
|
43
|
-
padding-left 40px
|
|
44
|
-
|
|
45
|
-
pre
|
|
46
|
-
padding 8px 15px
|
|
47
|
-
border-radius 5px
|
|
48
|
-
overflow-x auto
|
|
49
|
-
background #F8F8F8
|
|
50
|
-
border 1px solid #E5E5E5
|
|
51
|
-
margin-bottom 1.5em
|
|
52
|
-
|
|
53
|
-
.segment
|
|
54
|
-
margin-bottom 60px
|
|
55
|
-
|
|
56
|
-
ul.tags
|
|
57
|
-
font-size 12px
|
|
58
|
-
li.tag
|
|
59
|
-
span
|
|
60
|
-
margin-right 5px
|
|
61
|
-
span.type
|
|
62
|
-
font-weight bold
|
|
63
|
-
span.types
|
|
64
|
-
font-style italic
|
|
65
|
-
|
|
66
|
-
.wrapper
|
|
67
|
-
width 860px
|
|
68
|
-
margin 0px auto
|
|
69
|
-
|
|
70
|
-
header
|
|
71
|
-
width 270px
|
|
72
|
-
float left
|
|
73
|
-
position fixed
|
|
74
|
-
text-align right
|
|
75
|
-
|
|
76
|
-
section#content
|
|
77
|
-
width 500px
|
|
78
|
-
float right
|
|
79
|
-
|
|
80
|
-
nav
|
|
81
|
-
text-align right
|
|
82
|
-
|
|
83
|
-
.active
|
|
84
|
-
font-weight bold
|
|
85
|
-
|
|
86
|
-
.section
|
|
87
|
-
display none
|
|
88
|
-
|
|
89
|
-
.head > a
|
|
90
|
-
color #222
|
|
91
|
-
.section > a
|
|
92
|
-
color #39C
|
|
93
|
-
|
|
94
|
-
footer
|
|
95
|
-
width 270px
|
|
96
|
-
position fixed
|
|
97
|
-
bottom 50px
|
|
98
|
-
|
|
99
|
-
@import 'code'
|
package/examples/clean.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
var electron = require('..')
|
|
2
|
-
, program = electron('node clean.js');
|
|
3
|
-
|
|
4
|
-
program
|
|
5
|
-
.name('Electron Clean Theme')
|
|
6
|
-
.desc('https://github.com/logicalparadox/electron')
|
|
7
|
-
.version('0.2.x');
|
|
8
|
-
|
|
9
|
-
program
|
|
10
|
-
.command('start simple')
|
|
11
|
-
.description('Start a simple task')
|
|
12
|
-
.option('-p, --port [6000]', 'Set the simple port')
|
|
13
|
-
.option('-f, --file [path]', 'Use a specific file for this task', true)
|
|
14
|
-
.option('-l, --local', 'Flag as local task')
|
|
15
|
-
.action(function (args) {
|
|
16
|
-
console.log(args.mode('l', 'local'));
|
|
17
|
-
console.log(args.param('p', 'port'));
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
program
|
|
21
|
-
.command('start complex')
|
|
22
|
-
.description('Start a complex task')
|
|
23
|
-
.option('-p, --port [6000]', 'Set the comples port')
|
|
24
|
-
.option('-f, --file [path]', 'Use a specific file for this task', true)
|
|
25
|
-
.option('-l, --local', 'Flag as local task')
|
|
26
|
-
.action(function (args) {
|
|
27
|
-
console.log(args.mode('l', 'local'));
|
|
28
|
-
console.log(args.param('p', 'port'));
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
program
|
|
32
|
-
.command('absent')
|
|
33
|
-
.action(function (args) {
|
|
34
|
-
var cmd = args.commands.join(' ');
|
|
35
|
-
console.log(cmd + ' is not a valid command. Try --help for a list.');
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
program.parse();
|
package/examples/simple.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
var electron = require('..');
|
|
2
|
-
|
|
3
|
-
var program = electron('node simple.js');
|
|
4
|
-
|
|
5
|
-
program
|
|
6
|
-
.name('Electron Simple Theme')
|
|
7
|
-
.desc('https://github.com/logicalparadox/electron')
|
|
8
|
-
.theme('simple')
|
|
9
|
-
.version('0.2.x');
|
|
10
|
-
|
|
11
|
-
program
|
|
12
|
-
.command('default')
|
|
13
|
-
.desc('This is sample cli to show off the `simple` theme.')
|
|
14
|
-
.option('-p, --port [6000]', 'Set the simple port')
|
|
15
|
-
.option('-f, --file [path]', 'Use a specific file for this task', true)
|
|
16
|
-
.option('-l, --local', 'Flag as local task')
|
|
17
|
-
.option('-t, --test', 'Run the tests first')
|
|
18
|
-
.option('-w, --watch [dir]', 'Watch directory for changes')
|
|
19
|
-
.action(function (args) {
|
|
20
|
-
console.log('file: ' + args.param('f', 'file'));
|
|
21
|
-
console.log('local: ' + args.mode('l', 'local'));
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
program.parse();
|