@@ -2,26 +2,26 @@ const gulp = require('gulp')
22const merge = require ( 'gulp-merge-json' )
33
44const bases = {
5- src : 'src/' ,
6- dist : 'dist/' ,
7- components : 'api/components/' ,
8- output : 'output/'
5+ src : 'src/' ,
6+ dist : 'dist/' ,
7+ components : 'api/components/' ,
8+ output : 'output/'
99}
1010
1111const paths = {
12- policy : 'api/components/**/policy.json' ,
13- html : 'api/components/**/templates/*.html'
12+ policy : 'api/components/**/policy.json' ,
13+ html : 'api/components/**/templates/*.html'
1414}
1515
1616// Task for copying html templates
17- gulp . task ( 'copy' , function ( ) {
18- gulp . src ( paths . html , { cwd : bases . src } ) . pipe ( gulp . dest ( bases . components , { cwd : bases . dist } ) )
17+ gulp . task ( 'copy' , ( ) => {
18+ return gulp . src ( paths . html , { cwd : bases . src } ) . pipe ( gulp . dest ( bases . components , { cwd : bases . dist } ) ) ;
1919} )
2020
2121// Task for merging policies
2222gulp . task ( 'merge' , ( ) => {
23- gulp
24- . src ( paths . policy , { cwd : bases . src } )
25- . pipe ( merge ( { fileName : 'policies.combined.json' , concatArrays : true } ) )
26- . pipe ( gulp . dest ( bases . output , { cwd : bases . dist } ) )
23+ return gulp
24+ . src ( paths . policy , { cwd : bases . src } )
25+ . pipe ( merge ( { fileName : 'policies.combined.json' , concatArrays : true } ) )
26+ . pipe ( gulp . dest ( bases . output , { cwd : bases . dist } ) )
2727} )
0 commit comments