Socket
Socket
Sign inDemoInstall

forge

Package Overview
Dependencies
68
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    forge

A no customization 'build' system


Version published
Weekly downloads
937
increased by10.11%
Maintainers
1
Install size
16.5 MB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 23 Nov 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc