UNPKG

@tetcoin/dev

Version:

A collection of shared CI scripts and development environment used by @tetcoin projects

30 lines (25 loc) 804 B
#!/usr/bin/env node // Copyright 2017-2020 @polkadot/dev authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. const execSync = require('./execSync'); const argv = require('yargs') .options({ 'skip-eslint': { description: 'Skips running eslint', type: 'boolean' }, 'skip-tsc': { description: 'Skips running tsc', type: 'boolean' } }) .strict() .argv; console.log('$ tetcoin-dev-run-lint', process.argv.slice(2).join(' ')); if (!argv['skip-eslint']) { execSync(`yarn tetcoin-exec-eslint --resolve-plugins-relative-to ${__dirname} --ext .js,.ts,.tsx ${process.cwd()}`); } if (!argv['skip-tsc']) { execSync('yarn tetcoin-exec-tsc --noEmit --pretty'); }