Commit b60b2ec9 authored by qinhaitao's avatar qinhaitao

update

parent 4277e2f2
......@@ -51,11 +51,12 @@ gulp.task('build', function () {
return codeGenerate.run(gulp, nunjucksRender, rename, nunjucksRenderConfig)
})
gulp.task('format', () => {
return gulp
.src(nunjucksRenderConfig.ServerFullPath + '/controller/**/*.ts')
gulp.task('format', async () => {
await gulp
.src(nunjucksRenderConfig.ServerFullPath + '/**/*.ts')
.pipe(prettier(prettierConfig))
.pipe(gulp.dest(nunjucksRenderConfig.ServerFullPath + '/controller'))
.pipe(gulp.dest(nunjucksRenderConfig.ServerFullPath + '/'))
})
gulp.task('code', gulp.series('build', 'format'))
/** @format */
{%- for type, type_item in controllers -%}
{%- for controller, controller_item in type_item %}
import {{type | capitalize}}{{controller | capitalize}}Controller from './controller/{{type}}/{{controller}}.controller'
......
......@@ -8,6 +8,4 @@ const custom = {
export default custom
export {
test1
}
export { test1 }
/** @format */
import CommonUserController from './controller/common/user.controller'
const CommonUserControllerInstance = new CommonUserController()
import CommonTaskController from './controller/common/task.controller'
......
......@@ -7,6 +7,4 @@ const custom = {
export default custom
export {
CustomTestService
}
export { CustomTestService }
/** @format */
const custom = {
}
const custom = {}
export default custom
export {
}
export {}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment