feat: enable extra command & jsdockerfile (#43)

This commit is contained in:
Evo
2022-06-18 12:17:26 +05:30
committed by GitHub
parent 3eb63835d9
commit 7cf62c0308
3 changed files with 17 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
import { init } from './commands/init.js';
import { help } from './commands/help.js';
import { extra } from './commands/extra.js';
import { Command } from 'commander';
import { version } from './utilities/version.js';
@@ -24,4 +25,9 @@ program
.option('-n --name', 'Name of plugin')
.action(plugins);
program
.command(extra.name)
.description('Easy way to add extra things in your sern project')
.action(extra);
program.parse();

View File

@@ -13,7 +13,6 @@ export const extraPrompt = {
title: 'Dockerfile (JavaScript)',
description: 'Dockerfile for JavaScript',
value: 'Dockerfile-javascript',
disabled: true,
},
],
};

View File

@@ -0,0 +1,11 @@
FROM node:latest
WORKDIR /app
COPY package.json ./
RUN npm install
COPY . .
RUN node src/index.js