forked from SnowdogApps/magento2-frontools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
executable file
·30 lines (27 loc) · 1 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
'use strict';
// Plugins / Functions / Modules
const plugins = require('gulp-load-plugins')({
pattern: ['*', '!gulp', '!gulp-load-plugins'],
rename : {
'browser-sync' : 'browserSync',
'fs-extra' : 'fs',
'gulp-multi-dest' : 'multiDest',
'js-yaml' : 'yaml',
'marked-terminal' : 'markedTerminal',
'merge-stream' : 'mergeStream',
'postcss-reporter': 'reporter',
'run-sequence' : 'runSequence'
}
}),
config = {};
config.projectPath = plugins.fs.realpathSync('../../../') + '/';
config.tempPath = config.projectPath + 'var/view_preprocessed/frontools';
config.themes = require('./helper/config-loader')('themes.json', plugins, config, false);
plugins.errorMessage = require('./helper/error-message')(plugins);
plugins.getThemes = require('./helper/get-themes')(plugins, config);
// Tasks loading
require('gulp-task-loader')({
dir : 'task',
plugins: plugins,
configs: config
});