forked from darkreader/darkreader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.js
More file actions
37 lines (34 loc) · 878 Bytes
/
Copy pathdebug.js
File metadata and controls
37 lines (34 loc) · 878 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
25
26
27
28
29
30
31
32
33
34
35
36
37
const bundleCSS = require('./bundle-css');
const bundleHtml = require('./bundle-html');
const bundleJS = require('./bundle-js');
const bundleLocales = require('./bundle-locales');
const clean = require('./clean');
const copy = require('./copy');
const foxify = require('./foxify');
const reload = require('./reload');
const {runTasks, log} = require('./utils');
const watch = require('./watch');
const options = {
production: false,
};
async function debug() {
log.ok('DEBUG');
try {
await runTasks([
clean,
bundleJS,
bundleCSS,
bundleHtml,
bundleLocales,
copy,
foxify,
reload,
], options);
watch(options);
log.ok('Watching...');
} catch (err) {
log.error('Debugging cancelled');
process.exit(13);
}
}
debug();