forked from Sylius/Sylius-Standard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGulpfile.js
More file actions
24 lines (20 loc) · 669 Bytes
/
Copy pathGulpfile.js
File metadata and controls
24 lines (20 loc) · 669 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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('vendor/sylius/sylius/src/Sylius/Bundle/AdminBundle/Gulpfile.js', { read: false })
.pipe(chug({ args: config }))
;
});
gulp.task('shop', function() {
gulp.src('vendor/sylius/sylius/src/Sylius/Bundle/ShopBundle/Gulpfile.js', { read: false })
.pipe(chug({ args: config }))
;
});
gulp.task('default', ['admin', 'shop']);