UNPKG

1.68 kBMarkdownView Raw
1# Fire Keeper
2
3A little helper to make things simple.
4
5## Install
6
7```shell
8npm install --save-dev fire-keeper
9```
10
11### Usage
12
13```coffeescript
14$$ = require './source/index'
15
16$$.task 'build', -> await $$.compile './source/index.coffee', './'
17```
18
19### Method
20
21>
22 $$.backup(source)
23 $$.compile(source, [target], [option])
24 $$.copy(source, target, [option])
25 $$.delay([time], [callback])
26 $$.download(source, target, [option])
27 $$.isExisted(source)
28 $$.isSame(source)
29 $$.link(source, target)
30 $$.lint(source)
31 $$.mkdir(source)
32 $$.move(source, target)
33 $$.read(source, [option])
34 $$.recover(source)
35 $$.reload(source)
36 $$.remove(source)
37 $$.rename(source, option)
38 $$.replace(source, option...)
39 $$.say(text)
40 $$.shell(cmd, [option])
41 $$.source(source)
42 $$.ssh()
43 $$.ssh.connect(option)
44 $$.ssh.disconnect()
45 $$.ssh.mkdir(source)
46 $$.ssh.remove(source)
47 $$.ssh.shell(cmd, [option])
48 $$.ssh.upload(source, target, [option])
49 $$.stat(source)
50 $$.task(name, [fn])
51 $$.unzip(source, [target])
52 $$.update()
53 $$.walk(source, callback)
54 $$.watch(source)
55 $$.write(source, data, [option])
56 $$.yargs()
57 $$.zip(source, [target], [option])
58
59### Variable
60
61```coffeescript
62$$.argv
63$$.os
64$$.path
65```
66
67### Library
68
69```coffeescript
70$$.library.$ # node-jquery-extend, a little toolkit like jQuery
71$$.library._ # lodash
72$$.library.fse # fs-extra
73$$.library.gulp # gulp
74```
75
76### Test
77
78```shell
79gulp test
80```
81
82### Caution
83
84This project is **NOT STABLE**.
85
86I made this project for writing gulpfile(s) , which of my own projects, a little easier. And that might be not very suitable for yours.
\No newline at end of file