@@ -17,40 +17,40 @@ const coverallsCoverageLcovPath = `${coverallsCoverageDirPath}/lcov.info`;
1717const coverallsBinPath = './node_modules/coveralls/bin/coveralls.js' ;
1818const coverallsCommand = ( process . platform === 'win32' )
1919// Windows (we have to resolve the paths).
20- ? `nyc report --reporter=lcov`
21- + ` && type ${ path . resolve ( coverallsCoverageLcovPath ) } | ${ path . resolve ( coverallsBinPath ) } `
22- + ` && rmdir /s /q ${ path . resolve ( coverallsCoverageDirPath ) } `
20+ ? `nyc report --reporter=lcov`
21+ + ` && type ${ path . resolve ( coverallsCoverageLcovPath ) } | ${ path . resolve ( coverallsBinPath ) } `
22+ + ` && rmdir /s /q ${ path . resolve ( coverallsCoverageDirPath ) } `
2323// Linux.
24- : `nyc report --reporter=lcov`
25- + ` && cat ${ coverallsCoverageLcovPath } | ${ coverallsBinPath } `
26- + ` && rm -rf ${ coverallsCoverageDirPath } ` ;
24+ : `nyc report --reporter=lcov`
25+ + ` && cat ${ coverallsCoverageLcovPath } | ${ coverallsBinPath } `
26+ + ` && rm -rf ${ coverallsCoverageDirPath } ` ;
2727
2828gulp . task ( 'default' , ( done ) => gulp . src ( [ observableSlimPath , proxyPath ] )
29- . pipe ( babel ( {
30- presets : [ '@babel/preset-env' ] ,
31- sourceType : 'script' // Prevent insertion of "use strict".
32- } ) )
33- . pipe ( useref ( ) )
34- . pipe ( uglify ( ) )
35- . pipe ( rename ( {
36- suffix : '.min' // Add .min to the minified filename.
37- } ) )
38- . pipe ( gulp . dest ( './' ) ) // Write it to the current directory.
39- . on ( 'end' , done )
29+ . pipe ( babel ( {
30+ presets : [ '@babel/preset-env' ] ,
31+ sourceType : 'script' // Prevent insertion of "use strict".
32+ } ) )
33+ . pipe ( useref ( ) )
34+ . pipe ( uglify ( ) )
35+ . pipe ( rename ( {
36+ suffix : '.min' // Add .min to the minified filename.
37+ } ) )
38+ . pipe ( gulp . dest ( './' ) ) // Write it to the current directory.
39+ . on ( 'end' , done )
4040) ;
4141
4242gulp . task ( 'test' , ( done ) => gulp . src ( [ testPath ] )
43- . pipe ( mocha ( {
44- compilers : babel
45- } ) )
46- . on ( 'end' , done )
43+ . pipe ( mocha ( {
44+ compilers : babel
45+ } ) )
46+ . on ( 'end' , done )
4747) ;
4848
4949gulp . task ( 'coveralls' , shell . task ( [ coverallsCommand ] ) ) ;
5050
5151gulp . task ( 'lint' , ( done ) => gulp . src ( [ observableSlimPath , proxyPath , testPath ] )
52- . pipe ( eslint ( ) )
53- . pipe ( eslint . format ( ) )
54- . pipe ( eslint . failOnError ( ) ) // Brick on failure to be super strict.
55- . on ( 'end' , done )
52+ . pipe ( eslint ( ) )
53+ . pipe ( eslint . format ( ) )
54+ . pipe ( eslint . failOnError ( ) ) // Brick on failure to be super strict.
55+ . on ( 'end' , done )
5656) ;
0 commit comments