UNPKG

build-dependencies-unjar

Version:

Unjar dependency files into your projects bin/classes directory.

26 lines (21 loc) 913 B
# Unjar build dependencies This is an extension you can use to unjar the dependency jar files into your `bin/classes` directory. This is useful if you want to use npm as your [build tool](http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/), e.g. to build your Java applications. ## General usage In order to use this script, create the following config properties in your `package.json` file (Note: config option `dependencies_dest` optional and defaults to 'lib'): ``` "config": { "dependencies_dest": "lib", "dependencies": [ "some-dependency-3.4.5.jar" ] } ``` Then the only thing you have to do is creating a scripts part in your `package.json` in order to collect the dependencies and add this extension into your dev-dependencies: ``` "devDependencies": { "build-dependencies-unjar": "^1.0.0" }, "scripts": { "dependencies-unjar": "build-dependencies-unjar" } ```