1
0
mirror of synced 2025-11-08 21:07:23 +00:00
Files
Jason Dreyzehner 390041b510 feat: TS v4, tslint -> eslint, add cspell support (#240)
Update all dependencies, migrate from tslint (deprecated) to typescript-eslint, and add support for
cspell.

BREAKING CHANGE: migrated from tslint (deprecated) to eslint.
2020-09-01 19:13:25 -04:00

28 lines
816 B
TypeScript

import chalk from 'chalk';
import { checkArgs } from './args';
import { inquire } from './inquire';
import { addInferredOptions, LiveTasks } from './tasks';
import { typescriptStarter } from './typescript-starter';
import { getIntro, hasCLIOptions, TypescriptStarterUserOptions } from './utils';
(async () => {
const argInfo = await checkArgs();
const userOptions: TypescriptStarterUserOptions = hasCLIOptions(argInfo)
? argInfo
: {
...(await (async () => {
console.log(getIntro(process.stdout.columns));
return inquire();
})()),
...argInfo,
};
const options = await addInferredOptions(userOptions);
return typescriptStarter(options, LiveTasks);
})().catch((err: Error) => {
console.error(`
${chalk.red(err.message)}
`);
process.exit(1);
});