Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A cli tool written in nodejs useful for building projects
JavaScript
tag: v2.1.0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
.gitignore
LICENSE
README.md
forge.js
package.json

README.md

forge

Install

npm install forge -g

What?

Forge has a pretty specific use case: you'd like to automate the application of a set of transformations on a specific file.

If you're tired of writing the same [M|J|Sl|C]afiles over and over, juggling command line scripts, node.js scripts, or even dealing with the hassle of having a configuration file sitting in your file directory; then this program is for you.

Philosophy

  • No configuration or build files you have to check-in to source control
  • Simple command line interface
  • Easy to program your own custom transformers
  • Use existing transformers that work with browserify

Right tool for the job

If you need to automate all the things or love configuring then grunt is for you.

If you want something simple and powerful and don't mind programming some then write a fucking Makefile.

How?

forge my_file.js transform1 transform2 transform3

Example, if you want to lint a file then mangle it:

forge my_file.js jshintify mangleify

Outputs to stdout

Pro-tip: you can include your forge command in the scripts section of your package.json file.

"scripts": {
  "prepublish": "forge foo.js mangleify > build/foo.min.js"
}

For more information see npm scripts

Included plug-ins

Available plug-ins

License

MIT

Something went wrong with that request. Please try again.