UNPKG

906 BMarkdownView Raw
1easy-mincer
2===========
3
4```
5sudo npm install -g easy-mincer
6```
7
8```
9mkdir my-project
10cd my-project
11sudo easy-mincer init
12
13cd app/assets/javascripts
14vi main.coffee # => class Main
15
16easy-mincer start # => http://localhost:3000/main.coffee
17```
18
19```
20sudo easy-mincer init # create init project
21sudo easy-mincer start # start server
22sudo easy-mincer compile # compile src
23```
24
25
26```
27# easy-mincer.json
28{
29 "targets": ["main.js", "main.css"], # compile target file name.
30 "paths": [
31 "app/assets/javascripts", # mincer appendPath
32 "app/assets/stylesheets" # mincer appendPath
33 ]
34}
35```
36
37* project-tree
38 * app
39 * assets
40 * javascripts
41 * stylesheets
42 * templates
43 * test
44 * assets
45 * javascripts
46 * stylesheets
47 * templates
48 * dest # targets compile file
49 * bower.json
50 * easy-mincer.json # easy-mincer config file.
51 * LICENSE
52 * package.json
53 * README.md
54