私はsteal/buildjs
JavascriptMVCを使用してビルドを行おうとしています。これは、すべてのjsファイルとcssファイルをproduction.js
とproduction.css
にラップする必要があります。エラーがスローされ、関数が出力されるだけです(私は推測します)。ターミナル内で電話してやっています
./js steal/buildjs appname/appname.html -to appBuild
そして、これが私がターミナルで得ているものです(これはエラーの一部です-実際のエラーはスタックオーバーフローには長すぎます-約500行以上-私はエラーの最初と最後を貼り付けています):
Building to appBuild/
!!!!!!!!!!! ERROR !!!!!!!!!!!
-tokens =
function (prefix, suffix) {
var c;
var from;
var i = 0;
var length = this.length;
var n;
var q;
var str;
var result = [];
var prereg = true, self = this;
var make = function (type, value) {
prereg = (type == "operator" || type === "name") && (value === "return" || ("(,=:[!&|?{};".indexOf(value.charAt(value.length - 1)) >= 0));
return {type:type, value:value, from:from, to:i, toString:function () {
return "Type: " + type + ", value: " + value + ", from: " + from + ", to: " + i;
}, error:function (message) {
throw "steal/parse/tokens.js " + message + " with " + this.value + ".\n" + self.substr(this.from - 20, 70);
}};
};
[ MORE STUFF RIGHT HERE ]
}
-toJSON =
function (key) {
return String(this);
}
-equals$ =
function equals_2(other) {
return $equals_1(this, other);
}
-getClass$ =
function getClass_32() {
return Ljava_lang_String_2_classLit;
}
-hashCode$ =
function hashCode_4() {
return getHashCode_0(this);
}
-toString$ =
function toString_8() {
return this;
}
-typeId$ = 2
適切なエラーなしでデバッグすることはかなり困難です。何か案は?