enyojs/enyo — Issue #33: minify.sh doesn't work in a clean repo
Author: fahhem
Created: 2012-03-10 04:44:02+00:00
State: open

Even in a clean pull of the repo, running "./tools/minify.sh" throws this error:

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Cannot call method 'replace' of undefined
at Object.rewrite (eval at (/home/fahhem/projects/webvnc/frontend/enyo_clean/tools/minifier/node_modules/walker.js:11:10))
at Object.walk (/home/fahhem/projects/webvnc/frontend/enyo_clean/tools/minifier/node_modules/walker.js:38:20)
at Object. (/home/fahhem/projects/webvnc/frontend/enyo_clean/tools/minifier/minify.js:170:8)
at Module._compile (module.js:411:26)
at Object..js (module.js:417:10)
at Module.load (module.js:343:31)
at Function._load (module.js:302:12)
at Array. (module.js:430:10)
at EventEmitter._tickCallback (node.js:126:26)

This is running nodejs v0.4.12.

It seems to want an argument, but no matter what I put (enyo.js, source/package.js, package.json) it fails with a variety of errors and there's nothing that explains how to use it. The Readme just says you need nodejs, and the help just shows flags, not arguments.