Skip to content

Commit

Permalink
fix(vue-generator): support utils expression
Browse files Browse the repository at this point in the history
  • Loading branch information
chilingling committed Apr 18, 2024
1 parent dc4447d commit dc6c424
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"vue": "^3.3.9",
"vue-i18n": "^9.2.0-beta.3",
"vue-router": "^4.2.5",
"pinia": "^2.1.7"
"pinia": "^2.1.7",
"@opentiny/tiny-engine-builtin-component": "^1.0.1"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.5.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ describe('generate whole application', () => {
// 写入文件
genResult.forEach(({ fileName, path: filePath, fileContent }) => {
fs.mkdirSync(path.resolve(__dirname, `./result/appdemo01/${filePath}`), { recursive: true })
fs.writeFileSync(path.resolve(__dirname, `./result/appdemo01/${filePath}/${fileName}`), fileContent)
fs.writeFileSync(
path.resolve(__dirname, `./result/appdemo01/${filePath}/${fileName}`),
// 这里需要将换行符替换成 CRLF 格式的
fileContent.replace(/\r?\n/g, '\r\n')
)
})

const compareOptions = {
Expand Down

0 comments on commit dc6c424

Please sign in to comment.