-
Notifications
You must be signed in to change notification settings - Fork 0
/
nss-runfile.js
32 lines (28 loc) · 942 Bytes
/
nss-runfile.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
const nssRun = require('./lib/index');
/**
* Linting tasks
*/
nssRun.taskGroup('lint', ['lint:source', 'lint:bin', 'lint:nss-runfile'], { description: 'Lint the source code' });
nssRun.task('lint:source', () => nssRun.run('eslint ./src'));
nssRun.task('lint:bin', () => nssRun.run('eslint ./bin'));
nssRun.task('lint:nss-runfile', () => nssRun.run('eslint ./nss-runfile.js'));
/**
* Doc generation task
*/
nssRun.task('doc', () => nssRun.run('jsdoc -d docs -R ./README.md ./src/index.js'), { description: 'Generates the plugin docs' });
/**
* Internal testing task to test interactive commands
*/
nssRun.task('interactive-test', () => nssRun.run('./test/interactive.sh', {
autoAnswer: [
{
search: 'enter your name:',
answer: 'NSS Runfile\n',
},
{
search: 'what is your age:',
answer: '2\n',
hide: true,
},
],
}, { hidden: true }));