Permalink
Browse files

depend on uglifyjs

use `npm run uglify` to uglify
  • Loading branch information...
1 parent f37fd5a commit 9bf8155c9394cb9a8bbde6b32ae6d7f5965b7083 @stereosteve stereosteve committed May 9, 2013
Showing with 4 additions and 1 deletion.
  1. +0 −1 optjs.sh
  2. +4 −0 package.json
View
@@ -1 +0,0 @@
-uglifyjs -nc public/ws-rpc-client.js > public/ws-rpc-client.min.js
View
@@ -9,6 +9,9 @@
"type": "git",
"url": "git://github.com/ypocat/ws-rpc.git"
},
+ "scripts": {
+ "uglify": "uglifyjs public/ws-rpc-client.js > public/ws-rpc-client.min.js"
+ },
"main": "./lib/ws-rpc.js",
"directories": {
"lib": "./lib"
@@ -19,6 +22,7 @@
"dependencies": {
},
"devDependencies": {
+ "uglify-js": "*"
},
"licenses": [
{ "type" : "BSD New", "url" : "https://raw.github.com/ypocat/ws-rpc/master/LICENSE" }

0 comments on commit 9bf8155

Please sign in to comment.