projmate-cli

0.1.0-dev • Public • Published

projmate-cli

Projmate takes the best of Jake, Grunt and my experience with project deployments.

  • Build environments are first class citizens
  • Uses pipe and filters instead of everything-is-a-task hammer
  • Watch is built into every task
  • HTTP and HTTPS server for testing non-secure connections

Installation

To install

npm install projmate-cli@0.1.0-dev -g

Example Projfile.coffee

 
exports.project = (pm) ->
  = pm.filters()
  = pm.shell()
 
  pm.registerTasks
    stylesheets:
      desc: "Builds all stylesheets"
      files:
        include: [
          "client/css/barclet.less"
          "client/css/style.less"
          "client/css/styleEmbedded.less"
          "client/css/styleInline.less"
        ]
        # Watch all less files not just the main ones for rebuilding. 
        watch: [
          "client/css/**/*.less"
        ]
 
      development: [
        f.less(dumpLineNumbers: "comments")
        f.addHeader(text: "/* Stylesheets are belong to us! */")
        f.writeFile(lchomp: "client"destinationDir: "build")
      ]
 
      production: [
        f.less(dumpLineNumbers: "comments")
        f.addHeader(text: "/* Stylesheets are belong to us! */")
        f.cssMinify
        f.gzip
        f.writeFile(lchomp: "client"destinationDir: "build")
      ]

Watch

Watching files is usually capped.

On Linux (debian/ubuntu)

  • Add this line to /etc/sysctl.conf

    fs.inotify.max_user_watches = 524288
    
  • Then apply changes:

    sudo sysctl -p
    

License

Copyright (c) 2013 Mario Gutierrez mario@projmate.com

See the file LICENSE for copying permission.

Readme

Keywords

none

Package Sidebar

Install

npm i projmate-cli

Weekly Downloads

0

Version

0.1.0-dev

License

MIT

Last publish

Collaborators

  • mgutz