Skip to content
This repository was archived by the owner on Aug 19, 2024. It is now read-only.

Commit 578bbb2

Browse files
committed
AG-1921 Allow auto-building for frameworks
1 parent 594c1d9 commit 578bbb2

File tree

1 file changed

+7
-29
lines changed

1 file changed

+7
-29
lines changed

gulpfile.js

Lines changed: 7 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,12 @@ const gulp = require('gulp');
22
const del = require('del');
33
const 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-
325
gulp.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

Comments
 (0)