First development of the deploy action (#6)
Some checks failed
Lint / pre-commit Linting (push) Has been cancelled
Some checks failed
Lint / pre-commit Linting (push) Has been cancelled
Deploy js code to an instance of screeps. Some debugging tools are implemented. Reviewed-on: #6 Co-authored-by: Philipp Horstenkamp <philipp@horstenkamp.de> Co-committed-by: Philipp Horstenkamp <philipp@horstenkamp.de>
This commit is contained in:
93
node_modules/yamljs/lib/Yaml.js
generated
vendored
Normal file
93
node_modules/yamljs/lib/Yaml.js
generated
vendored
Normal file
@ -0,0 +1,93 @@
|
||||
// Generated by CoffeeScript 1.12.4
|
||||
var Dumper, Parser, Utils, Yaml;
|
||||
|
||||
Parser = require('./Parser');
|
||||
|
||||
Dumper = require('./Dumper');
|
||||
|
||||
Utils = require('./Utils');
|
||||
|
||||
Yaml = (function() {
|
||||
function Yaml() {}
|
||||
|
||||
Yaml.parse = function(input, exceptionOnInvalidType, objectDecoder) {
|
||||
if (exceptionOnInvalidType == null) {
|
||||
exceptionOnInvalidType = false;
|
||||
}
|
||||
if (objectDecoder == null) {
|
||||
objectDecoder = null;
|
||||
}
|
||||
return new Parser().parse(input, exceptionOnInvalidType, objectDecoder);
|
||||
};
|
||||
|
||||
Yaml.parseFile = function(path, callback, exceptionOnInvalidType, objectDecoder) {
|
||||
var input;
|
||||
if (callback == null) {
|
||||
callback = null;
|
||||
}
|
||||
if (exceptionOnInvalidType == null) {
|
||||
exceptionOnInvalidType = false;
|
||||
}
|
||||
if (objectDecoder == null) {
|
||||
objectDecoder = null;
|
||||
}
|
||||
if (callback != null) {
|
||||
return Utils.getStringFromFile(path, (function(_this) {
|
||||
return function(input) {
|
||||
var result;
|
||||
result = null;
|
||||
if (input != null) {
|
||||
result = _this.parse(input, exceptionOnInvalidType, objectDecoder);
|
||||
}
|
||||
callback(result);
|
||||
};
|
||||
})(this));
|
||||
} else {
|
||||
input = Utils.getStringFromFile(path);
|
||||
if (input != null) {
|
||||
return this.parse(input, exceptionOnInvalidType, objectDecoder);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
Yaml.dump = function(input, inline, indent, exceptionOnInvalidType, objectEncoder) {
|
||||
var yaml;
|
||||
if (inline == null) {
|
||||
inline = 2;
|
||||
}
|
||||
if (indent == null) {
|
||||
indent = 4;
|
||||
}
|
||||
if (exceptionOnInvalidType == null) {
|
||||
exceptionOnInvalidType = false;
|
||||
}
|
||||
if (objectEncoder == null) {
|
||||
objectEncoder = null;
|
||||
}
|
||||
yaml = new Dumper();
|
||||
yaml.indentation = indent;
|
||||
return yaml.dump(input, inline, 0, exceptionOnInvalidType, objectEncoder);
|
||||
};
|
||||
|
||||
Yaml.stringify = function(input, inline, indent, exceptionOnInvalidType, objectEncoder) {
|
||||
return this.dump(input, inline, indent, exceptionOnInvalidType, objectEncoder);
|
||||
};
|
||||
|
||||
Yaml.load = function(path, callback, exceptionOnInvalidType, objectDecoder) {
|
||||
return this.parseFile(path, callback, exceptionOnInvalidType, objectDecoder);
|
||||
};
|
||||
|
||||
return Yaml;
|
||||
|
||||
})();
|
||||
|
||||
if (typeof window !== "undefined" && window !== null) {
|
||||
window.YAML = Yaml;
|
||||
}
|
||||
|
||||
if (typeof window === "undefined" || window === null) {
|
||||
this.YAML = Yaml;
|
||||
}
|
||||
|
||||
module.exports = Yaml;
|
Reference in New Issue
Block a user