mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
36 lines
965 B
JavaScript
36 lines
965 B
JavaScript
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']);
|