for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
var gulp = require('gulp');
var rollup = require('rollup').rollup;
var typescript = require('rollup-plugin-typescript');
var ts = require('gulp-typescript');
var tsProject = ts.createProject('tsconfigTypeChecking.json', {noExternalResolve : true});
const globals = {
'@angular/core': 'ng.core',
'@angular/platform-browser-dynamic': 'ng.platformBrowserDynamic'
};
gulp.task('script', () => {
return rollup({
entry: 'src/bootstrap.ts',
plugins: [
typescript()
],
external: Object.keys(globals)
}).then((bundle)=> {
return bundle.write({
globals,
format: 'iife',
dest: './dist/app.js',
sourceMap: 'inline'
});
gulp.task('script:typechecking', (done) => {
done
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.
return gulp.src([
"src/**/*.ts",
"includes/**/*.ts"
])
.pipe(ts(tsProject));
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.