Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed dependency issue

  • Loading branch information...
commit 431feb9cc33d2ce339a9095e344e3f9b4adc18e0 1 parent a58895a
Moon Kyong authored
Showing with 117 additions and 7 deletions.
  1. +99 −0 npm-debug.log
  2. +5 −6 package.json
  3. +13 −1 uglifyjs-watcher.js
View
99 npm-debug.log
@@ -0,0 +1,99 @@
+0 info it worked if it ends with ok
+1 verbose cli [ 'node', '/usr/local/bin/npm', 'publish', '.' ]
+2 info using npm@1.1.66
+3 info using node@v0.8.15
+4 verbose publish [ '.' ]
+5 verbose read json /Users/mkk/Projects/git/uglifyjs-watcher/package.json
+6 verbose cache add [ '.', null ]
+7 silly cache add name=undefined spec="." args=[".",null]
+8 verbose parsed url { pathname: '.', path: '.', href: '.' }
+9 silly lockFile 3a52ce78- .
+10 verbose lock . /Users/mkk/.npm/3a52ce78-.lock
+11 verbose read json package.json
+12 verbose tar pack [ '/Users/mkk/tmp/npm-49276/1360030544850-0.4221698334440589/tmp.tgz',
+12 verbose tar pack '.' ]
+13 verbose tarball /Users/mkk/tmp/npm-49276/1360030544850-0.4221698334440589/tmp.tgz
+14 verbose folder .
+15 info prepublish uglifyjs-watcher@0.0.2
+16 silly lockFile e66e7167-44850-0-4221698334440589-tmp-tgz /Users/mkk/tmp/npm-49276/1360030544850-0.4221698334440589/tmp.tgz
+17 verbose lock /Users/mkk/tmp/npm-49276/1360030544850-0.4221698334440589/tmp.tgz /Users/mkk/.npm/e66e7167-44850-0-4221698334440589-tmp-tgz.lock
+18 silly lockFile e66e7167-44850-0-4221698334440589-tmp-tgz /Users/mkk/tmp/npm-49276/1360030544850-0.4221698334440589/tmp.tgz
+19 verbose tar unpack /Users/mkk/tmp/npm-49276/1360030544850-0.4221698334440589/tmp.tgz
+20 silly lockFile 60cbf009-44850-0-4221698334440589-package /Users/mkk/tmp/npm-49276/1360030544850-0.4221698334440589/package
+21 verbose lock /Users/mkk/tmp/npm-49276/1360030544850-0.4221698334440589/package /Users/mkk/.npm/60cbf009-44850-0-4221698334440589-package.lock
+22 silly gunzTarPerm modes [ '755', '644' ]
+23 silly gunzTarPerm extractEntry package.json
+24 silly gunzTarPerm extractEntry uglifyjs-watcher.js
+25 silly gunzTarPerm extractEntry bin/uglifyjs-watcher
+26 silly gunzTarPerm extractEntry minify.json
+27 silly gunzTarPerm extractEntry readme.md
+28 verbose read json /Users/mkk/tmp/npm-49276/1360030544850-0.4221698334440589/package/package.json
+29 silly lockFile 60cbf009-44850-0-4221698334440589-package /Users/mkk/tmp/npm-49276/1360030544850-0.4221698334440589/package
+30 verbose from cache /Users/mkk/tmp/npm-49276/1360030544850-0.4221698334440589/package/package.json
+31 verbose tar pack [ '/Users/mkk/.npm/uglifyjs-watcher/0.0.2/package.tgz',
+31 verbose tar pack '/Users/mkk/tmp/npm-49276/1360030544850-0.4221698334440589/package' ]
+32 verbose tarball /Users/mkk/.npm/uglifyjs-watcher/0.0.2/package.tgz
+33 verbose folder /Users/mkk/tmp/npm-49276/1360030544850-0.4221698334440589/package
+34 silly lockFile 4a9cac22-lifyjs-watcher-0-0-2-package-tgz /Users/mkk/.npm/uglifyjs-watcher/0.0.2/package.tgz
+35 verbose lock /Users/mkk/.npm/uglifyjs-watcher/0.0.2/package.tgz /Users/mkk/.npm/4a9cac22-lifyjs-watcher-0-0-2-package-tgz.lock
+36 silly lockFile 4a9cac22-lifyjs-watcher-0-0-2-package-tgz /Users/mkk/.npm/uglifyjs-watcher/0.0.2/package.tgz
+37 silly lockFile 37500620-m-uglifyjs-watcher-0-0-2-package /Users/mkk/.npm/uglifyjs-watcher/0.0.2/package
+38 verbose lock /Users/mkk/.npm/uglifyjs-watcher/0.0.2/package /Users/mkk/.npm/37500620-m-uglifyjs-watcher-0-0-2-package.lock
+39 silly lockFile 37500620-m-uglifyjs-watcher-0-0-2-package /Users/mkk/.npm/uglifyjs-watcher/0.0.2/package
+40 verbose tar unpack /Users/mkk/.npm/uglifyjs-watcher/0.0.2/package.tgz
+41 silly lockFile 37500620-m-uglifyjs-watcher-0-0-2-package /Users/mkk/.npm/uglifyjs-watcher/0.0.2/package
+42 verbose lock /Users/mkk/.npm/uglifyjs-watcher/0.0.2/package /Users/mkk/.npm/37500620-m-uglifyjs-watcher-0-0-2-package.lock
+43 silly gunzTarPerm modes [ '755', '644' ]
+44 silly gunzTarPerm extractEntry package.json
+45 silly gunzTarPerm extractEntry uglifyjs-watcher.js
+46 silly gunzTarPerm extractEntry bin/uglifyjs-watcher
+47 silly gunzTarPerm extractEntry minify.json
+48 silly gunzTarPerm extractEntry readme.md
+49 verbose read json /Users/mkk/.npm/uglifyjs-watcher/0.0.2/package/package.json
+50 silly lockFile 37500620-m-uglifyjs-watcher-0-0-2-package /Users/mkk/.npm/uglifyjs-watcher/0.0.2/package
+51 silly shasum updated bytes 1640
+52 info shasum 5bcfa8ed2c7c1e06db7376dd68ce8d18d07077d7
+52 info shasum /Users/mkk/.npm/uglifyjs-watcher/0.0.2/package.tgz
+53 verbose from cache /Users/mkk/.npm/uglifyjs-watcher/0.0.2/package/package.json
+54 verbose chmod /Users/mkk/.npm/uglifyjs-watcher/0.0.2/package.tgz 644
+55 verbose chown /Users/mkk/.npm/uglifyjs-watcher/0.0.2/package.tgz [ 0, 20 ]
+56 silly lockFile 3a52ce78- .
+57 silly publish { author: { name: 'Moon', email: 'kmk1986@gmail.com' },
+57 silly publish name: 'uglifyjs-watcher',
+57 silly publish version: '0.0.2',
+57 silly publish repository: { url: 'https://github.com/kmk1986/uglifyjs-watcher' },
+57 silly publish engines: 'node >= 0.4.1',
+57 silly publish dependencies: { 'uglify-js': '1.x.x' },
+57 silly publish devDependencies: {},
+57 silly publish optionalDependencies: {},
+57 silly publish main: './uglifyjs-watcher.js',
+57 silly publish preferGlobal: true,
+57 silly publish bin: { 'uglifyjs-watcher': './bin/uglifyjs-watcher' },
+57 silly publish readme: 'About\n=====\n\nTired of minifiying your JS files manually? You can use uglifyjs-watcher to watch your changes in js files. Uglifyjs-watcher will minify all your files whenever you save your files.\n\nInstallation\n============\n\n```html\nnpm install uglifyjs-watcher -g\n```\n\n* Until I make a patch, you MUST install this module with -g option.\n\nJSON Format\n========================================\n\n```javascript\n{\n\n\t"uglify-js-arguments": "-o",\n\t"scripts": [\n\t],\n\n\t"minifiedFilename": "minified.js"\n\n}\n```\n\nSyntax\n======\n\n```html\nuglifyjs-watcher minify.json\n```\n',
+57 silly publish readmeFilename: 'readme.md',
+57 silly publish _id: 'uglifyjs-watcher@0.0.2',
+57 silly publish description: 'About =====',
+57 silly publish dist: { shasum: '5bcfa8ed2c7c1e06db7376dd68ce8d18d07077d7' } }
+58 verbose url raw uglifyjs-watcher
+59 verbose url resolving [ 'https://registry.npmjs.org/', './uglifyjs-watcher' ]
+60 verbose url resolved https://registry.npmjs.org/uglifyjs-watcher
+61 info trying registry request attempt 1 at 18:15:44
+62 http PUT https://registry.npmjs.org/uglifyjs-watcher
+63 http 409 https://registry.npmjs.org/uglifyjs-watcher
+64 verbose url raw uglifyjs-watcher
+65 verbose url resolving [ 'https://registry.npmjs.org/', './uglifyjs-watcher' ]
+66 verbose url resolved https://registry.npmjs.org/uglifyjs-watcher
+67 info trying registry request attempt 1 at 18:15:45
+68 http GET https://registry.npmjs.org/uglifyjs-watcher
+69 http 200 https://registry.npmjs.org/uglifyjs-watcher
+70 error publish fail Cannot publish over existing version.
+70 error publish fail Bump the 'version' field, set the --force flag, or
+70 error publish fail npm unpublish 'uglifyjs-watcher@0.0.2'
+70 error publish fail and try again
+71 error System Darwin 11.4.2
+72 error command "node" "/usr/local/bin/npm" "publish" "."
+73 error cwd /Users/mkk/Projects/git/uglifyjs-watcher
+74 error node -v v0.8.15
+75 error npm -v 1.1.66
+76 error code EPUBLISHCONFLICT
+77 verbose exit [ 1, true ]
View
11 package.json
@@ -6,19 +6,18 @@
},
"name": "uglifyjs-watcher",
- "version": "0.0.0",
+ "version": "0.0.2",
"repository": {
- "url": ""
- },
- "engines": {
- "node": "~0.6.10"
+ "url": "https://github.com/kmk1986/uglifyjs-watcher"
},
+ "engines": "node >= 0.4.1",
"dependencies": {
- "uglify-js": "1.2.6"
+ "uglify-js": "1.x.x"
},
"devDependencies": {},
"optionalDependencies": {},
"main": "./uglifyjs-watcher.js",
+ "preferGlobal": true,
"bin" : {
"uglifyjs-watcher" : "./bin/uglifyjs-watcher"
}
View
14 uglifyjs-watcher.js
@@ -12,10 +12,22 @@ var uglifyjsWatcher = (function(process, fs, exec){
var isWatching = false;
var cmdString = "cat";
var minifiedIndex = 1;
+ var uglifyjsPath;
var loadSettingFile = function()
{
+ // check to see if we have uglify-js
+ uglifyjsPath = require.resolve("uglify-js");
+
+ if( uglifyjsPath ) {
+ uglifyjsPath = uglifyjsPath.replace("uglify-js.js","")+"bin/uglifyjs";
+ } else {
+ console.log("Please install uglify-js");
+ process.exit();
+ }
+
+
if( process.argv[2] == undefined )
{
console.log("missing argument: filename");
@@ -73,7 +85,7 @@ var uglifyjsWatcher = (function(process, fs, exec){
});
- cmdString += " | uglifyjs " + list['uglify-js-arguments'] + " " + list.minifiedFilename;
+ cmdString += " | " + uglifyjsPath + " " + list['uglify-js-arguments'] + " " + list.minifiedFilename;
}
Please sign in to comment.
Something went wrong with that request. Please try again.