1 | ;!( function( g ) { |
||
0 ignored issues
–
show
|
|||
2 | |||
3 | 'use strict'; |
||
4 | |||
5 | var gulp = require( 'gulp' ), |
||
6 | |||
7 | stylus = require( 'gulp-stylus' ), |
||
8 | watch = require( 'gulp-watch' ), |
||
9 | plumber = require( 'gulp-plumber' ), |
||
10 | uglify = require( 'gulp-uglify' ), |
||
11 | |||
12 | stylusPath = 'src/stylus', |
||
13 | cssPath = 'dist/css', |
||
14 | |||
15 | jsPath = 'src/js', |
||
16 | minifiedJsPath = 'dist/js', |
||
17 | |||
18 | COMPRESS = true; |
||
19 | |||
20 | gulp.task( 'default', function() { |
||
21 | |||
22 | gulp.src( stylusPath + '/*.styl' ).pipe( plumber() ).pipe( watch( stylusPath + '/*.styl' ) ).pipe( stylus({ |
||
23 | |||
24 | compress: COMPRESS |
||
25 | |||
26 | }) ).pipe( gulp.dest( cssPath ) ); |
||
27 | |||
28 | gulp.src( jsPath + '/*.js' ).pipe( uglify() ).pipe( gulp.dest( minifiedJsPath ) ); |
||
29 | |||
30 | }); |
||
31 | |||
32 | })( this ); |
||
33 |
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.