e534a911f3
Prettier v2 has the following breaking changes: * enforces spaces between `function` and params * enforces trailing commas by default
23 lines
689 B
JavaScript
23 lines
689 B
JavaScript
const { execNodeJsScriptWithInheritedOutput } = require('./util/exec-file');
|
|
const { createRegisterAsyncTaskFn } = require('./util/async-grunt-task');
|
|
const nodeJs = process.argv0;
|
|
|
|
module.exports = function (grunt) {
|
|
const registerAsyncTask = createRegisterAsyncTaskFn(grunt);
|
|
|
|
registerAsyncTask('test:mocha', async () =>
|
|
execNodeJsScriptWithInheritedOutput('./spec/env/runner')
|
|
);
|
|
|
|
registerAsyncTask('test:cov', async () =>
|
|
execNodeJsScriptWithInheritedOutput('node_modules/nyc/bin/nyc', [
|
|
nodeJs,
|
|
'./spec/env/runner.js',
|
|
])
|
|
);
|
|
|
|
registerAsyncTask('test:min', async () =>
|
|
execNodeJsScriptWithInheritedOutput('./spec/env/runner', ['--min'])
|
|
);
|
|
};
|