EndemolShineGroup/generator-nodejs-ts

View on GitHub
src/repo/index.ts

Summary

Maintainability
A
3 hrs
Test Coverage
import { AbstractGenerator } from '../lib/AbstractGenerator';
import files from './files';

class RepoGenerator extends AbstractGenerator {
  constructor(args: string | string[], options: {}) {
    super(args, options, __dirname);

    this.option('projectName', {
      description: 'Project Name: ',
      type: String,
    });
    this.option('isPublic', {
      description: 'Is this a public package?',
      type: Boolean,
    });
  }

  writing() {
    this.copyTemplates(files);
  }
}

export = RepoGenerator;