mirror of
https://github.com/sveltejs/svelte.git
synced 2024-11-30 00:46:29 +01:00
12 lines
272 B
JavaScript
12 lines
272 B
JavaScript
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));
|