-
Notifications
You must be signed in to change notification settings - Fork 65
/
dash4.config.js
56 lines (54 loc) · 1.37 KB
/
dash4.config.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
46
47
48
49
50
51
52
53
54
55
56
/**
*
* DASH4 configuration
* https://github.com/smollweide/dash4
*
*/
// https://github.com/smollweide/dash4/tree/master/plugins/plugin-dependencies
const { PluginDependencies } = require('@dash4/plugin-dependencies');
// https://github.com/smollweide/dash4/tree/master/plugins/plugin-terminal
const { PluginTerminal } = require('@dash4/plugin-terminal');
// https://github.com/smollweide/dash4/tree/master/plugins/plugin-readme
const { PluginReadme } = require('@dash4/plugin-readme');
// https://github.com/smollweide/dash4/tree/master/plugins/plugin-npm-scripts
const { PluginNpmScripts } = require('@dash4/plugin-npm-scripts');
async function getConfig() {
return {
port: 4000,
tabs: [
{
title: 'Root',
rows: [
[
new PluginReadme({
file: 'README.md',
}),
new PluginDependencies(),
new PluginNpmScripts({
scripts: [
{ title: 'install', cmd: 'npm i' },
{ title: 'test', cmd: 'npm run test' },
{ title: 'lint', cmd: 'npm run lint' },
],
}),
],
[
new PluginTerminal({
cmd: 'npm run demo',
autostart: false,
}),
new PluginTerminal({
cmd: 'npm run demo-tunnel',
autostart: false,
}),
new PluginTerminal({
cmd: 'npm run test:watch',
autostart: false,
}),
],
],
},
],
};
}
module.exports = getConfig;