0.1.0-dev • Published 11 years ago

projmate-cli v0.1.0-dev

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

projmate-cli

Projmate is a declarative and more intuitive project system

  • Build environments are first class citizens
  • Uses pipe and filters instead of everything-is-task hammer
  • Watch is built into every task

This is the CLI. The sexy drag 'n drop GUI to follow.

Installation

To install

npm install projmate-cli -g

Example Projfile.coffee

exports.project = (pm) ->
  f = pm.filters()

  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")
      ]

License

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

See the file LICENSE for copying permission.

0.1.0-dev

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago