slight gulpfile changes (#16)

This commit is contained in:
Kelvin Jin 2017-08-31 17:18:39 -07:00 committed by GitHub
parent 7de87642fe
commit 0774aafb01
2 changed files with 144 additions and 142 deletions

View File

@ -4,7 +4,7 @@ const help = require('gulp-help');
// gulp-help monkeypatches tasks to have an additional description parameter // gulp-help monkeypatches tasks to have an additional description parameter
const gulp = help(_gulp); const gulp = help(_gulp);
require('./packages/grpc-js-core/gulpfile')(gulp); require('./packages/grpc-js-core/gulpfile');
gulp.task('lint', 'Emit linting errors in source and test files', ['js.core.lint']); gulp.task('lint', 'Emit linting errors in source and test files', ['js.core.lint']);

View File

@ -1,3 +1,9 @@
const _gulp = require('gulp');
const help = require('gulp-help');
// gulp-help monkeypatches tasks to have an additional description parameter
const gulp = help(_gulp);
const del = require('del'); const del = require('del');
const mocha = require('gulp-mocha'); const mocha = require('gulp-mocha');
const sourcemaps = require('gulp-sourcemaps'); const sourcemaps = require('gulp-sourcemaps');
@ -10,8 +16,6 @@ const through = require('through2');
Error.stackTraceLimit = Infinity; Error.stackTraceLimit = Infinity;
module.exports = function(gulp) {
const jsCoreDir = __dirname; const jsCoreDir = __dirname;
const tslintPath = path.resolve(jsCoreDir, 'node_modules/google-ts-style/tslint.json'); const tslintPath = path.resolve(jsCoreDir, 'node_modules/google-ts-style/tslint.json');
const tsconfigPath = path.resolve(jsCoreDir, 'tsconfig.json'); const tsconfigPath = path.resolve(jsCoreDir, 'tsconfig.json');
@ -160,5 +164,3 @@ module.exports = function(gulp) {
})); }));
} }
); );
};