mirror of https://github.com/sveltejs/svelte
12 lines
272 B
12 lines
272 B
6 years ago
|
const fs = require('fs');
|
||
|
|
||
|
const files = [];
|
||
|
|
||
|
for (const path of process.argv.slice(2)) {
|
||
|
if (!path.includes('/.')) {
|
||
|
files.push({ path: path.slice(19), data: fs.readFileSync(path).toString() });
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fs.writeFileSync('static/svelte-app.json', JSON.stringify(files));
|