1 | easy-mincer
|
2 | ===========
|
3 |
|
4 | ```
|
5 | sudo npm install -g easy-mincer
|
6 | ```
|
7 |
|
8 | ```
|
9 | mkdir my-project
|
10 | cd my-project
|
11 | sudo easy-mincer init
|
12 |
|
13 | cd app/assets/javascripts
|
14 | vi main.coffee # => class Main
|
15 |
|
16 | easy-mincer start # => http://localhost:3000/main.coffee
|
17 | ```
|
18 |
|
19 | ```
|
20 | sudo easy-mincer init # create init project
|
21 | sudo easy-mincer start # start server
|
22 | sudo 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 |
|