@@ -2,34 +2,12 @@ const gulp = require('gulp');
22const del = require ( 'del' ) ;
33const runSequence = require ( 'run-sequence' ) ;
44
5- gulp . task ( 'copy-from-ag-grid' , ( ) => {
6- return gulp . src ( [ '../../ag-grid/*' , '../ag-grid/dist/**/*' ] , { base : '../../ag-grid' } )
7- . pipe ( gulp . dest ( './node_modules/ag-grid' ) ) ;
8- } ) ;
9-
10- gulp . task ( 'copy-from-ag-grid-enterprise' , ( ) => {
11- return gulp . src ( [ '../../ag-grid-enterprise/*' , '../../ag-grid-enterprise/dist/**/*' ] , { base : '../../ag-grid-enterprise' } )
12- . pipe ( gulp . dest ( './node_modules/ag-grid-enterprise' ) ) ;
13- } ) ;
14-
15- gulp . task ( 'copy-from-ag-grid-angular' , ( ) => {
16- return gulp . src ( [ '../../ag-grid-angular/*' , '../../ag-grid-angular/dist/**/*' ] , { base : '../../ag-grid-angular' } )
17- . pipe ( gulp . dest ( './node_modules/ag-grid-angular' ) ) ;
18- } ) ;
19-
20- gulp . task ( 'clean-nm-ag-grid-enterprise' , ( ) => {
21- del ( [ 'node_modules/ag-grid-enterprise' , '!node_modules' ] ) ;
22- } ) ;
23-
24- gulp . task ( 'clean-nm-ag-grid' , ( ) => {
25- del ( [ 'node_modules/ag-grid' , '!node_modules' ] ) ;
26- } ) ;
27-
28- gulp . task ( 'copy-nm-dirs' , ( callback ) => {
29- runSequence ( 'copy-from-ag-grid' , 'copy-from-ag-grid-enterprise' , callback ) ;
30- } ) ;
31-
325gulp . task ( 'watch' , [ 'copy-nm-dirs' ] , ( ) => {
33- gulp . watch ( [ '../ag-grid/dist/**/*' , '../ag-grid/src/**/*' ] , [ 'copy-from-ag-grid' ] ) ;
34- gulp . watch ( [ '../ag-grid-enterprise/dist/**/*' , '../ag-grid-enterprise/src/**/*' ] , [ 'copy-from-ag-grid-enterprise' ] ) ;
6+ gulp . watch ( [
7+ './node_modules/ag-grid/dist/lib/**/*' ,
8+ './node_modules/ag-grid-enterprise/dist/lib/**/*' ,
9+ './node_modules/ag-grid-angular/dist/**/*' ,
10+ './src/app/**/*'
11+ ] ,
12+ [ 'copy-from-ag-grid' ] ) ;
3513} ) ;
0 commit comments