diff --git a/src/commands/create-js-project.ts b/src/commands/create-js-project.ts index 3cb8f5f..243020c 100644 --- a/src/commands/create-js-project.ts +++ b/src/commands/create-js-project.ts @@ -37,7 +37,7 @@ export function createJSProject( cmd: any, options: any ): void { break; } - case 'graphql': { + case 'gql': { console.log( 'DM-Tools is generating a TypeScript Apollo GraphQL Server project...' ); sh.cp( '-r', path.resolve( __dirname, '../../.templates/apollo-graphql-server/' ), `${ options.project }` ); break; diff --git a/src/main.ts b/src/main.ts index 4b0c0b0..0f1d92f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -35,7 +35,7 @@ cmd .version( `DevMentor Tools Project Generator v${ VERSION }`, '-v, --version' ) .usage( ' [options...]\n\n commands: new' ) .arguments( ' ' ) - .option( '-t, --type ', 'project types: glq, js, koa, node, ts, web' ) + .option( '-t, --type ', 'project types: gql, js, koa, node, ts, web' ) .option( '--e2e', 'end to end testing' ) .option( '-w, --web', 'simple static Web setup' ) .option( '--cpp [items]', 'C++ project', source_files )