forked from Sylius/Sylius
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gulpfile.js
36 lines (30 loc) · 965 Bytes
/
Gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
var gulp = require('gulp');
var chug = require('gulp-chug');
var argv = require('yargs').argv;
config = [
'--rootPath',
argv.rootPath || '../../../../web/assets/',
'--nodeModulesPath',
argv.nodeModulesPath || '../../../../node_modules/'
];
gulp.task('admin', function() {
gulp.src('src/Sylius/Bundle/AdminBundle/Gulpfile.js', { read: false })
.pipe(chug({ args: config }))
;
});
gulp.task('admin-watch', function () {
gulp.src('src/Sylius/Bundle/AdminBundle/Gulpfile.js', { read: false })
.pipe(chug({ args: config, tasks: 'watch' }))
;
});
gulp.task('shop', function() {
gulp.src('src/Sylius/Bundle/ShopBundle/Gulpfile.js', { read: false })
.pipe(chug({ args: config }))
;
});
gulp.task('shop-watch', function () {
gulp.src('src/Sylius/Bundle/ShopBundle/Gulpfile.js', { read: false })
.pipe(chug({ args: config, tasks: 'watch' }))
;
});
gulp.task('default', ['admin', 'shop']);