mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
24 lines
626 B
JavaScript
24 lines
626 B
JavaScript
#!/usr/bin/env node
|
|
|
|
'use strict';
|
|
|
|
const {logPromise, runYarnTask} = require('../utils');
|
|
|
|
module.exports = async ({cwd}) => {
|
|
await logPromise(runYarnTask(cwd, 'lint', 'Lint failed'), 'Running ESLint');
|
|
await logPromise(
|
|
runYarnTask(cwd, 'flow-ci', 'Flow failed'),
|
|
'Running Flow checks'
|
|
);
|
|
await logPromise(
|
|
runYarnTask(cwd, 'test', 'Jest tests failed in development'),
|
|
'Running Jest tests in the development environment',
|
|
true
|
|
);
|
|
await logPromise(
|
|
runYarnTask(cwd, 'test-prod', 'Jest tests failed in production'),
|
|
'Running Jest tests in the production environment',
|
|
true
|
|
);
|
|
};
|