Skip to content

Commit

Permalink
feat: 去除ejs依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
taomas committed Feb 4, 2021
1 parent 713bf30 commit 69bfc03
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,8 @@
"devDependencies": {
"@fbi-js/eslint-config-typescript": "^1.2.0",
"@fbi-js/tsconfig": "^1.2.0",
"@types/ejs": "^3.0.5",
"@types/node": "*",
"@types/semver": "^7",
"ejs": "^3.1.5",
"eslint": "^7",
"prettier": "^2.2.1",
"typescript": "^4"
Expand Down
3 changes: 1 addition & 2 deletions src/core/template.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { isAbsolute, join } from 'path'
import * as ejs from 'ejs'
import { BaseClass } from './base'
import { Factory } from './factory'
import { isValidObject } from '../utils'
Expand Down Expand Up @@ -27,7 +26,7 @@ export abstract class Template extends BaseClass {
// absolute path to template dir
public path = ''
public templates: Template[] = []
protected renderer = ejs.render
protected renderer = () => {}
protected data: Record<string | number, any> = {}
protected files: Files = {}
protected targetDir = process.cwd()
Expand Down

0 comments on commit 69bfc03

Please sign in to comment.