koatty_cli
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -229,3 +229,4 @@ #!/usr/bin/env node | ||
copyFile('controller' + path.sep + file, APP_PATH + path.sep + 'controller' + path.sep + module + path.sep + controller + 'Controller.ts', { | ||
'<New>': controller.toLowerCase(), | ||
'<Path>': '../..', | ||
'<New>': module.toLowerCase(), | ||
'<NewController>': controller + 'Controller' | ||
@@ -235,2 +236,3 @@ }); | ||
copyFile('controller' + path.sep + file, APP_PATH + path.sep + 'controller' + path.sep + controller + 'Controller.ts', { | ||
'<Path>': '..', | ||
'<New>': controller.toLowerCase(), | ||
@@ -301,2 +303,3 @@ '<NewController>': controller + 'Controller' | ||
copyFile('service' + path.sep + 'service.ts', APP_PATH + path.sep + 'service' + path.sep + module + path.sep + service + 'Service.ts', { | ||
'<Path>': '../..', | ||
'<Service>': service + 'Service' | ||
@@ -306,2 +309,3 @@ }); | ||
copyFile('service' + path.sep + 'service.ts', APP_PATH + path.sep + 'service' + path.sep + service + 'Service.ts', { | ||
'<Path>': '..', | ||
'<Service>': service + 'Service' | ||
@@ -308,0 +312,0 @@ }); |
@@ -5,6 +5,6 @@ /** | ||
* @ license: Apache License 2.0 | ||
* @ version: 2019-10-18 10:32:59 | ||
* @ version: 2019-10-18 11:26:50 | ||
*/ | ||
import * as Koa from "Koa"; | ||
import { App } from "../App"; | ||
import { App } from "<Path>/App"; | ||
import { Controller, BaseController, GetMaping } from "koatty"; | ||
@@ -11,0 +11,0 @@ |
@@ -5,5 +5,5 @@ /** | ||
* @ license: Apache License 2.0 | ||
* @ version: 2019-10-17 11:04:33 | ||
* @ version: 2019-10-18 11:28:39 | ||
*/ | ||
import { App } from "../App"; | ||
import { App } from "<Path>/App"; | ||
import { Service } from "koatty"; | ||
@@ -10,0 +10,0 @@ |
{ | ||
"name": "koatty_cli", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Koatty command line tool.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
29185
609