Skip to content

Commit

Permalink
eslint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBuchholz committed Mar 2, 2017
1 parent 2ad4f81 commit dfd1611
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions make/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/*jshint node: true*/
/*jshint camelcase: false*/ // Because of GitHub API
/*eslint-env node*/
/*eslint-disable camelcase*/ // Because of GitHub API

/*
* STEPS:
Expand Down Expand Up @@ -37,12 +38,6 @@ const
},

spawnProcess = (command, params, label) => new Promise(function (resolve, reject) {
let grunt;
if (/^win/.test(process.platform)) {
grunt = "grunt.cmd";
} else {
grunt = "grunt";
}
let childProcess = require("child_process").spawn(command, params);
childProcess.stdout.on("data", buffer => console.log(trimLeadingLF(buffer)));
childProcess.stderr.on("data", buffer => console.error(trimLeadingLF(buffer)));
Expand Down Expand Up @@ -145,7 +140,7 @@ inquirer.prompt([{
name: versionTitle
}))
.then(() => console.log(`Version ${version} released.`))
.then(() => fs.copySync("build/tests.js", `test/legacy/{version}.js`))
.then(() => fs.copySync("build/tests.js", `test/legacy/${version}.js`))
.then(() => spawnGit(["commit", "-a", "-m", `Tests of v${version}`]))
.then(() => spawnGit(["push"]))
.catch(error => console.error(error));

0 comments on commit dfd1611

Please sign in to comment.