plovr
A fork and npm wrapper of Plovr, the Closure (JS compiler) build tool.
Forked from the main plovr repo.
We try to keep it reasonably up to date with the HEAD of each Closure project, but only after testing that it is compatible with our products. There may occasionally be changes introduced to work around temporary issues or to try out fixes in preparation of upstream patches.
Installing
npm install plovr
node_modules/.bin/plovr
What this is really doing is just grabbing a particular "blessed" (by this module) Plovr that we built from the Medium repos.
Note that Plovr requires a Java runtime to operate. It specifically
assumes that there is a binary called java
in the $PATH
and will
undoubtedly fail spectacularly if that's not the case.
Building your own
You will need:
- Apache Ant
- JDK7
Your environment will need to be set up such that
javac
,java
, andant
are on your path- JAVA7_HOME is set to the java /home directory (usually you can get this as
JAVA7_HOME="$(/usr/libexec/java_home)"
Then you need to run
git clone git@github.com:Medium/plovr
cd plovr
./build-package.sh
Contributing
Questions, comments, bug reports, and pull requests are all welcome. We are happy to accept them at this project, but we encourage you to submit them to the main project.
Bug reports that include steps-to-reproduce (including code) are the best. Even better, make them in the form of pull requests.
Author
@nicks, supported by A Medium Corporation.
License
Copyright 2012 A Medium Corporation.
Licensed under the Apache License, Version 2.0. (http://www.apache.org/licenses/LICENSE-2.0).