@haxtheweb/create 10.0.6 → 10.0.7
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.
|
@@ -1285,6 +1285,16 @@ async function siteProcess(commandRun, project, port = '3000') {
|
|
|
1285
1285
|
await exec(`cd ${project.path}/${project.name} && git init && git add -A && git commit -m "first commit" && git branch -M main${project.gitRepo ? ` && git remote add origin ${project.gitRepo}` : ''}`);
|
|
1286
1286
|
} catch (e) {}
|
|
1287
1287
|
}
|
|
1288
|
+
// ensure dot files is there because it doesn't copy for some reason for sites :\
|
|
1289
|
+
if (!fs.existsSync(`${project.path}/${project.name}/.gitignore`)) {
|
|
1290
|
+
await fs.copyFileSync(`${process.mainModule.path}/templates/sitedotfiles/_gitignore`, `${project.path}/${project.name}/.gitignore`);
|
|
1291
|
+
}
|
|
1292
|
+
if (!fs.existsSync(`${project.path}/${project.name}/._npmignore`)) {
|
|
1293
|
+
await fs.copyFileSync(`${process.mainModule.path}/templates/sitedotfiles/_npmignore`, `${project.path}/${project.name}/.npmignore`);
|
|
1294
|
+
}
|
|
1295
|
+
if (!fs.existsSync(`${project.path}/${project.name}/._surgeignore`)) {
|
|
1296
|
+
await fs.copyFileSync(`${process.mainModule.path}/templates/sitedotfiles/_surgeignore`, `${project.path}/${project.name}/.surgeignore`);
|
|
1297
|
+
}
|
|
1288
1298
|
// options for install, git and other extras
|
|
1289
1299
|
// can't launch if we didn't install first so launch implies installation
|
|
1290
1300
|
if (project.extras && project.extras.includes && project.extras.includes('launch')) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
node_modules
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!node_modules/
|