added old data
This commit is contained in:
6
project2/node_modules/jshint/bin/apply
generated
vendored
Executable file
6
project2/node_modules/jshint/bin/apply
generated
vendored
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
var shjs = require("shelljs");
|
||||
var url = "https://github.com/jshint/jshint/pull/" + process.argv[2] + ".diff";
|
||||
|
||||
shjs.exec('curl "' + url + '" | git apply');
|
38
project2/node_modules/jshint/bin/build
generated
vendored
Executable file
38
project2/node_modules/jshint/bin/build
generated
vendored
Executable file
@@ -0,0 +1,38 @@
|
||||
#!/usr/bin/env node
|
||||
/*jshint shelljs:true */
|
||||
|
||||
"use strict";
|
||||
|
||||
var path = require("path");
|
||||
var build = require("../scripts/build");
|
||||
require("shelljs/make");
|
||||
|
||||
var distDir = path.join(__dirname, "../dist");
|
||||
|
||||
if (!test("-e", distDir))
|
||||
mkdir(distDir);
|
||||
|
||||
build("web", function(err, version, src) {
|
||||
if (err) {
|
||||
console.error(err);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
src.to(distDir + "/jshint.js");
|
||||
console.log("Built: " + version + " (web)");
|
||||
});
|
||||
|
||||
build("rhino", function(err, version, src) {
|
||||
var dest;
|
||||
|
||||
if (err) {
|
||||
console.error(err);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
dest = distDir + "/jshint-rhino.js";
|
||||
chmod("+x", dest);
|
||||
|
||||
src.to(dest);
|
||||
console.log("Built: " + version + " (Rhino)");
|
||||
});
|
3
project2/node_modules/jshint/bin/jshint
generated
vendored
Executable file
3
project2/node_modules/jshint/bin/jshint
generated
vendored
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
require("../src/cli.js").interpret(process.argv);
|
36
project2/node_modules/jshint/bin/land
generated
vendored
Executable file
36
project2/node_modules/jshint/bin/land
generated
vendored
Executable file
@@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
"use strict";
|
||||
|
||||
var url = "https://github.com/jshint/jshint/pull/" + process.argv[2] + ".patch";
|
||||
var https = require("https");
|
||||
var shjs = require("shelljs");
|
||||
var opts = require("url").parse(url);
|
||||
var msg = process.argv[3];
|
||||
|
||||
opts.rejectUnauthorized = false;
|
||||
opts.agent = new https.Agent(opts);
|
||||
|
||||
https.get(opts, succ).on("error", err);
|
||||
|
||||
function succ(res) {
|
||||
if (res.statusCode !== 200)
|
||||
return void console.log("error:", res.statusCode);
|
||||
|
||||
var data = "";
|
||||
res.on("data", function (chunk) {
|
||||
data += chunk.toString();
|
||||
});
|
||||
|
||||
res.on("end", function () {
|
||||
data = data.split("\n");
|
||||
data = data[1].replace(/^From\:\s/, "");
|
||||
data = data.replace(/"/g, "");
|
||||
|
||||
shjs.exec("git commit -s --author=\"" + data + "\" --message=\"" + msg + "\"");
|
||||
});
|
||||
}
|
||||
|
||||
function err(res) {
|
||||
console.log("error:", res.message);
|
||||
}
|
Reference in New Issue
Block a user