Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Commit

Permalink
fix ESLint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Zeug committed Jan 12, 2017
1 parent 74567e2 commit a7f0e57
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,10 @@ gulp.task('copy-app-source-files', ['clean:dist'], () => {
'./*.js',
'./clientBinaries.json',
'!gulpfile.js',
], { base: './' })
.pipe(gulp.dest(`./dist_${type}/app`));
], {
base: './'
})
.pipe(gulp.dest(`./dist_${type}/app`));
});


Expand All @@ -136,9 +138,11 @@ gulp.task('copy-build-folder-files', ['clean:dist', 'copy-app-folder-files'], ()
return gulp.src([
`./icons/${type}/*`,
'./interface/public/images/dmg-background.jpg',
], { base: './' })
.pipe(flatten())
.pipe(gulp.dest(`./dist_${type}/build`));
], {
base: './'
})
.pipe(flatten())
.pipe(gulp.dest(`./dist_${type}/build`));
});


Expand All @@ -151,7 +155,7 @@ gulp.task('copy-node-folder-files', ['clean:dist'], () => {
streams.push(gulp.src([
`./nodes/eth/${osArch}/*`,
])
.pipe(gulp.dest(`./dist_${type}/app/nodes/eth/${osArch}`)));
.pipe(gulp.dest(`./dist_${type}/app/nodes/eth/${osArch}`)));
}
});

Expand Down Expand Up @@ -190,15 +194,15 @@ gulp.task('bundling-interface', ['switch-production'], (cb) => {
if (options.walletSource === 'local') {
console.log('Use local wallet at ../meteor-dapp-wallet/app');
exec(`cd interface/ && meteor-build-client ../dist_${type}/app/interface/ -p "" &&` +
`cd ../../meteor-dapp-wallet/app && meteor-build-client ../../mist/dist_${type}/app/interface/wallet -p ""`, (err, stdout) => {
`cd ../../meteor-dapp-wallet/app && meteor-build-client ../../mist/dist_${type}/app/interface/wallet -p ""`, (err, stdout) => {
console.log(stdout);

cb(err);
});
} else {
console.log(`Pulling https://github.com/ethereum/meteor-dapp-wallet/tree/${options.walletSource} "${options.walletSource}" branch...`);
exec(`cd interface/ && meteor-build-client ../dist_${type}/app/interface/ -p "" &&` +
`cd ../dist_${type}/ && git clone --depth 1 https://github.com/ethereum/meteor-dapp-wallet.git && cd meteor-dapp-wallet/app && meteor-build-client ../../app/interface/wallet -p "" && cd ../../ && rm -rf meteor-dapp-wallet`, (err, stdout) => {
`cd ../dist_${type}/ && git clone --depth 1 https://github.com/ethereum/meteor-dapp-wallet.git && cd meteor-dapp-wallet/app && meteor-build-client ../../app/interface/wallet -p "" && cd ../../ && rm -rf meteor-dapp-wallet`, (err, stdout) => {
console.log(stdout);

cb(err);
Expand All @@ -213,8 +217,10 @@ gulp.task('copy-i18n', ['bundling-interface'], () => {
return gulp.src([
'./interface/i18n/*.*',
'./interface/project-tap.i18n',
], { base: './' })
.pipe(gulp.dest(`./dist_${type}/app`));
], {
base: './'
})
.pipe(gulp.dest(`./dist_${type}/app`));
});


Expand All @@ -236,7 +242,7 @@ gulp.task('build-dist', ['download-signatures', 'copy-i18n'], (cb) => {
'build-dist.js',
],
extraFiles: [
'nodes/eth/${os}-${arch}', // eslint-disable-line no-template-curly-in-string
'nodes/eth/${os}-${arch}', // eslint-disable-line no-template-curly-in-string
],
linux: {
target: [
Expand All @@ -263,7 +269,8 @@ gulp.task('build-dist', ['download-signatures', 'copy-i18n'], (cb) => {
x: 441,
y: 142,
type: 'file',
}],
}
],
},
},
directories: {
Expand Down Expand Up @@ -322,7 +329,7 @@ gulp.task('release-dist', ['build-dist'], (done) => {

_.each(osArchList, (osArch) => {
if (platformIsActive(osArch)) {
switch (osArch) { // eslint-disable-line default-case
switch (osArch) { // eslint-disable-line default-case
case 'win-ia32':
// cp(path.join('win-ia32', `${applicationName} Setup ${version}-ia32.exe`), `${appNameHypen}-win32-${versionDashed}.exe`);
cp(`${applicationName}-${version}-ia32-win.zip`, `${appNameHypen}-win32-${versionDashed}.zip`);
Expand Down Expand Up @@ -402,7 +409,9 @@ gulp.task('get-release-checksums', (done) => {
const files = fs.readdirSync(releasePath);

for (const file of files) {
const sha = shell.exec(`shasum -a 256 "${file}"`, { cwd: releasePath });
const sha = shell.exec(`shasum -a 256 "${file}"`, {
cwd: releasePath
});

if (sha.code !== 0) {
return done(new Error(`Error executing shasum: ${sha.stderr}`));
Expand Down

0 comments on commit a7f0e57

Please sign in to comment.