Skip to content

Commit

Permalink
add package.json scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Santos committed Dec 19, 2014
1 parent a36eabe commit ea33c68
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -3,3 +3,6 @@ build/

/buck-out/
/.nobuckcheck

package/node_modules
package/bin/plovr.jar
9 changes: 9 additions & 0 deletions build-package.sh
@@ -0,0 +1,9 @@
#!/bin/bash

set -ex

cd `dirname $0`
rm -f package/bin/plovr.jar
ant clean
ant jar
cp build/plovr.jar package/bin/plovr.jar
27 changes: 27 additions & 0 deletions package/package.json
@@ -0,0 +1,27 @@
{
"name": "plovr",
"version": "2.0.0",
"keywords":
["javascript", "compiler", "closure", "build"],
"description":
"Build tool that uses the Closure JavaScript compiler",
"homepage": "https://github.com/Medium/plovr",
"repository": {
"type": "git",
"url": "https://github.com/Medium/plovr.git"
},
"licenses": [ {
"type": "Apache 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
} ],
"bin": {
"plovr": "./bin/plovr"
},
"files": [
"bin"
],
"preferGlobal": true,
"scripts": {
"prepublish": "../build-package.sh"
}
}

0 comments on commit ea33c68

Please sign in to comment.