project-path-feat #7

Merged
roman merged 16 commits from project-path-feat into master 2023-02-17 08:18:42 +00:00
Showing only changes of commit bd5cafa549 - Show all commits
+2 -2
View File
@@ -131,7 +131,7 @@ app.get('/publish', async (req, res) => {
} }
if (responseData.uploadUrl) { if (responseData.uploadUrl) {
await zipProject(path.join(projectPath, 'src')); await zipProject(path.join(projectPath, 'src'), path.join(projectPath, 'disp.zip'));
const body = await fs.readFile(path.join(projectPath, 'dist.zip')); const body = await fs.readFile(path.join(projectPath, 'dist.zip'));
const response = await fetch(`${responseData.uploadUrl}`, { const response = await fetch(`${responseData.uploadUrl}`, {
method: 'PUT', method: 'PUT',
@@ -227,7 +227,7 @@ function startBrowserSync() {
return cb(); return cb();
}])); }]));
bs.watch("src/**/*.hbs", function (event, file) { bs.watch(path.join(projectPath, "src/**/*.hbs"), function (event, file) {
browserSyncReload(bs, '', 'Template File Change: ' + file) browserSyncReload(bs, '', 'Template File Change: ' + file)
}); });