easy-mincer

easy start mincer

easy-mincer

sudo npm install -g easy-mincer
mkdir my-project
cd my-project
sudo easy-mincer init
 
cd app/assets/javascripts
vi main.coffee # => class Main
 
easy-mincer start # => http://localhost:3000/main.coffee
sudo easy-mincer init  # create init project
sudo easy-mincer start   # start server
sudo easy-mincer compile # compile src
# easy-mincer.json
{
  "targets": ["main.js", "main.css"], # compile target file name.
  "paths": [
    "app/assets/javascripts", # mincer appendPath
    "app/assets/stylesheets"  # mincer appendPath
  ]
}
  • project-tree
    • app
      • assets
        • javascripts
        • stylesheets
        • templates
    • test
      • assets
        • javascripts
        • stylesheets
        • templates
    • dest # targets compile file
    • bower.json
    • easy-mincer.json # easy-mincer config file.
    • LICENSE
    • package.json
    • README.md