Skip to content

Commit

Permalink
chore: add dash4
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Mollweide committed Dec 22, 2019
1 parent d7ebd62 commit 8053957
Show file tree
Hide file tree
Showing 3 changed files with 2,313 additions and 41 deletions.
55 changes: 55 additions & 0 deletions dash4.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/**
*
* 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-code-coverage
const { PluginCodeCoverage } = require('@dash4/plugin-code-coverage');
// 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 test:watch',
autostart: false,
}),
new PluginCodeCoverage(),
],
],
},
],
};
}

module.exports = getConfig;

0 comments on commit 8053957

Please sign in to comment.