Skip to content

Commit d85de67

Browse files
committed
site: use master branch of template in svelte-app
1 parent e039cab commit d85de67

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

site/scripts/update_template.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
const sh = require('shelljs');
2-
const fs = require('fs')
2+
const fs = require('fs');
33

4-
sh.cd(__dirname+'/../')
4+
sh.cd(__dirname+'/../');
55

66
// fetch svelte app
7-
sh.rm('-rf','scripts/svelte-app')
8-
sh.exec('npx degit sveltejs/template#v3 scripts/svelte-app')
7+
sh.rm('-rf','scripts/svelte-app');
8+
sh.exec('npx degit sveltejs/template scripts/svelte-app');
99

1010
// remove src (will be recreated client-side) and node_modules
11-
sh.rm('-rf', 'scripts/svelte-app/src')
12-
sh.rm('-rf', 'scripts/svelte-app/node_modules')
11+
sh.rm('-rf', 'scripts/svelte-app/src');
12+
sh.rm('-rf', 'scripts/svelte-app/node_modules');
1313

1414
// build svelte-app.json
15-
const appPath = 'scripts/svelte-app'
16-
let files = []
15+
const appPath = 'scripts/svelte-app';
16+
const files = [];
1717

1818
for (const path of sh.find(appPath).filter(p => fs.lstatSync(p).isFile()) ) {
1919
files.push({ path: path.slice(appPath.length + 1), data: fs.readFileSync(path).toString() });

0 commit comments

Comments
 (0)