-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gulpfile.js
40 lines (34 loc) · 1.11 KB
/
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
37
38
39
40
/*
* Copyright (C) 2015-2016 Libre Informatique
*
* This file is licenced under the GNU GPL v3.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
var gulp = require('gulp');
var chug = require('gulp-chug');
var argv = require('yargs').argv;
config_admin = [
'--rootPath',
argv.rootPath || '../../../../../../../web/assets/',
'--nodeModulesPath',
'../../../../../../../node_modules/'
];
gulp.task('sylius-admin', function() {
gulp.src('vendor/sylius/sylius/src/Sylius/Bundle/AdminBundle/Gulpfile.js', { read: false })
.pipe(chug({ args: config_admin }))
;
});
config_shop = [
'--rootPath',
argv.rootPath || '../../../../web/assets/',
'--nodeModulesPath',
'../../../../node_modules/'
];
gulp.task('sylius-shop', function() {
// original file : vendor/sylius/sylius/src/Sylius/Bundle/ShopBundle/Gulpfile.js
gulp.src('app/themes/LisemTheme/SyliusShopBundle/Gulpfile.js', { read: false })
.pipe(chug({ args: config_shop }))
;
});
gulp.task('default', ['sylius-admin', 'sylius-shop']);