@d-zero/create-frontend 5.0.0-beta.13 → 5.0.0-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/README.md +3 -4
- package/package.json +3 -3
- package/plopfile.js +8 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [5.0.0-beta.15](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-beta.14...v5.0.0-beta.15) (2025-10-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @d-zero/create-frontend
|
|
9
|
+
|
|
10
|
+
# [5.0.0-beta.14](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-beta.13...v5.0.0-beta.14) (2025-10-20)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- **create-frontend:** prevent gitignore file copy from being skipped ([6b80db7](https://github.com/d-zero-dev/frontend-env/commit/6b80db70238b3e3cb403a18a4b1f03f047ef144c))
|
|
15
|
+
|
|
6
16
|
# [5.0.0-beta.13](https://github.com/d-zero-dev/frontend-env/compare/v5.0.0-beta.12...v5.0.0-beta.13) (2025-10-20)
|
|
7
17
|
|
|
8
18
|
### Bug Fixes
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d-zero/create-frontend",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.15",
|
|
4
4
|
"description": "Create a new frontend project from a scaffolding template",
|
|
5
5
|
"repository": "https://github.com/d-zero-dev/frontend-env.git",
|
|
6
6
|
"author": "D-ZERO Co., Ltd.",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"create-dzero-frontend": "./index.js"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@d-zero/scaffold": "5.0.0-beta.
|
|
16
|
+
"@d-zero/scaffold": "5.0.0-beta.15",
|
|
17
17
|
"glob": "11.0.3",
|
|
18
18
|
"i18n-js": "4.5.1",
|
|
19
19
|
"ignore": "7.0.5",
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"@types/node": "24.8.1",
|
|
26
26
|
"execa": "9.6.0"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "bcbf64fff4aed1835778e4f2d32ce62b728cc7a7"
|
|
29
29
|
}
|
package/plopfile.js
CHANGED
|
@@ -64,8 +64,9 @@ export default function (plop) {
|
|
|
64
64
|
path.dirname(import.meta.resolve('@d-zero/scaffold').replace('file:', '')),
|
|
65
65
|
);
|
|
66
66
|
|
|
67
|
-
const
|
|
68
|
-
|
|
67
|
+
const gitignoreOriginContent =
|
|
68
|
+
readFileSafe(path.resolve(scaffoldDir, '.gitignore')) ?? '';
|
|
69
|
+
const ignoreFiles = gitignoreOriginContent?.split('\n').filter(Boolean) ?? [];
|
|
69
70
|
const hasArgs = argv.length > 2;
|
|
70
71
|
const interactive = !hasArgs;
|
|
71
72
|
|
|
@@ -108,7 +109,7 @@ export default function (plop) {
|
|
|
108
109
|
plop.setActionType('Finalize', async (answers) => {
|
|
109
110
|
const { dest, type, doInstall } = answerToConfig(answers);
|
|
110
111
|
if (doInstall) {
|
|
111
|
-
rewriteDotGitignore(dest);
|
|
112
|
+
rewriteDotGitignore(dest, gitignoreOriginContent);
|
|
112
113
|
}
|
|
113
114
|
|
|
114
115
|
if (type.startsWith('basercms')) {
|
|
@@ -260,13 +261,11 @@ async function installDependencies(dest) {
|
|
|
260
261
|
|
|
261
262
|
/**
|
|
262
263
|
*
|
|
263
|
-
* @param dest
|
|
264
|
+
* @param {string} dest
|
|
265
|
+
* @param {string} gitignoreOriginContent
|
|
264
266
|
*/
|
|
265
|
-
function rewriteDotGitignore(dest) {
|
|
266
|
-
let gitignore =
|
|
267
|
-
if (gitignore == null) {
|
|
268
|
-
return;
|
|
269
|
-
}
|
|
267
|
+
function rewriteDotGitignore(dest, gitignoreOriginContent) {
|
|
268
|
+
let gitignore = gitignoreOriginContent;
|
|
270
269
|
|
|
271
270
|
// Remove after `# Document Root` section
|
|
272
271
|
const documentRootSection = gitignore.indexOf('\n# Document Root\n');
|