gulpfile.js   B
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 32

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 32
rs 8.8571
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A gulp.task(ꞌdefaultꞌ) 0 11 1
1
;!( function( g ) {
0 ignored issues
show
Unused Code introduced by
The parameter g is not used and could be removed.

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.

Loading history...
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