All files / create-gas-project index.js

0% Statements 0/16
0% Branches 0/4
0% Functions 0/1
0% Lines 0/16

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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 33 34                                                                   
const process = require( 'process' );
 
const prompt = require( './lib/prompt' );
const packageConfig = require( './config/package.config' );
const eslintrcConfig = require( './config/eslintrc.config' );
const eslintOptions = require( './config/eslint-config-associations.json' );
 
const schemas = require( './schemas' );
 
const configFileObjs = { /*
  'filename'  : ''
  'dir'       : '.',
  'dot'       : true,
  'extension' : '',
  'content'   : {},
*/ };
 
( async() => {
  const args = process.argv.slice( 2 );
  const workDir = args[ 0 ] || process.cwd();
 
  const initOptions = await prompt( workDir );
 
  if ( !initOptions.eslintUseExisting ) {
    const eslintConfig = initOptions.eslintConfigType;
    initOptions.eslint = eslintOptions[ eslintConfig ].package.devDependencies;
  } else {
    initOptions.eslint = eslintrcConfig( initOptions );
  }
 
  const pkg = packageConfig( initOptions );
 
} )();