Skip to content

Commit

Permalink
Merge branch '2.5' of https://github.com/steedos/steedos-platform int…
Browse files Browse the repository at this point in the history
…o 2.5
  • Loading branch information
baozhoutao committed Nov 6, 2023
2 parents da0a784 + 6281825 commit 95a8e90
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 111 deletions.
49 changes: 25 additions & 24 deletions packages/create-steedos-app/create-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,32 +279,33 @@ export async function createApp({
/**
* Copy the template files to the target directory.
*/
await cpy('**', root, {
await cpy(['**'], root, {
dot: true,
parents: true,
cwd: path.join(__dirname, 'templates', template),
rename: (name) => {
switch (name) {
case 'env':
case 'gitignore':
case 'gitpod.yml':
case 'npmrc':
case 'yarnrc':
case 'eslintrc.json': {
return '.'.concat(name)
}
// README.md is ignored by webpack-asset-relocator-loader used by ncc:
// https://github.com/vercel/webpack-asset-relocator-loader/blob/e9308683d47ff507253e37c9bcbb99474603192b/src/asset-relocator.js#L227
case 'README-template.md': {
return 'README.md'
}
case 'README.md': {
return 'README.md'
}
default: {
return name
}
}
},
// rename: (name) => {
// switch (name) {
// case 'env':
// case 'gitignore':
// case 'gitpod.yml':
// case 'npmrc':
// case 'yarnrc':
// case 'eslintrc.json': {
// return '.'.concat(name)
// }
// // README.md is ignored by webpack-asset-relocator-loader used by ncc:
// // https://github.com/vercel/webpack-asset-relocator-loader/blob/e9308683d47ff507253e37c9bcbb99474603192b/src/asset-relocator.js#L227
// case 'README-template.md': {
// return 'README.md'
// }
// case 'README.md': {
// return 'README.md'
// }
// default: {
// return name
// }
// }
// },
})
}

Expand Down
87 changes: 0 additions & 87 deletions packages/create-steedos-app/templates/default/README-template.md

This file was deleted.

0 comments on commit 95a8e90

Please sign in to comment.