Skip to content

Commit b49416d

Browse files
committed
Inserting http framework fastify
1 parent 2017b15 commit b49416d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/generators/ProjectGenerator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import Log from '../Log';
1313
const createProject = (
1414
projectName: string,
1515
packageManager: 'yarn' | 'npm',
16-
httpFramework: 'koa' | 'express' | 'hapi'
16+
httpFramework: 'koa' | 'express' | 'hapi' | 'fastify'
1717
) => {
1818
Log.Instance.infoHeap(`Creating the project`);
1919

@@ -66,7 +66,7 @@ const createProjectWithOptions = () => {
6666
message: 'Http Framework:',
6767
type: 'list',
6868
default: 'koa',
69-
choices: ['koa', 'express', 'hapi']
69+
choices: ['koa', 'express', 'hapi', 'fastify']
7070
}
7171
])
7272
.then((answers: any) => {

src/stages/CreatePackageJson.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ import Log from '../Log';
55
const versions = {
66
koa: '^0.1.0',
77
express: '^0.1.0',
8-
hapi: '^0.1.0'
8+
hapi: '^0.1.0',
9+
fastify: '^0.1.0'
910
};
1011

1112
const createPackageJson = (
1213
target: string,
1314
name: string,
14-
httpFramework: 'koa' | 'express' | 'hapi'
15+
httpFramework: 'koa' | 'express' | 'hapi' | 'fastify'
1516
) => {
1617
Log.Instance.infoHeap(`Creating file package.json`);
1718

0 commit comments

Comments
 (0)