-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
45 lines (40 loc) · 966 Bytes
/
index.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
41
42
43
44
45
import browserSync from './tasks/browserSync';
import clean from './tasks/clean';
import copy from './tasks/copy';
import css from './tasks/css';
import js from './tasks/js';
import lintCSS from './tasks/lintCSS';
import lintJS from './tasks/lintJS';
import run from './tasks/run';
import svg from './tasks/svg';
import watch from './tasks/watch';
import Config from './config';
const options = (options = {}) => {
Object.assign(Config, options);
};
const tasks = {
browserSync,
clean,
copy,
css,
js,
lintCSS,
lintJS,
run,
svg,
watch,
};
export { tasks, options };
// API
// tasks.clean({ directories: [] });
// tasks.copy({ paths: [] });
// tasks.js({ src, destination });
// tasks.css({ src, destination });
// tasks.run({ cmd: 'ls', args: ['-la'] });
// tasks.svg({ paths: [] });
// tasks.browserSync({ files: [] });
// options({
// projectTitle: 'frontend-tasks',
// showNotifications: true,
// generateVersionManifest: false,
// });