mirror of
https://github.com/expo/react-mapbox-gl.git
synced 2026-11-14 19:11:41 -10:00
23 lines
450 B
JavaScript
23 lines
450 B
JavaScript
const { readFile, writeFile } = require('fs');
|
|
|
|
const files = [
|
|
'allShapes.tsx',
|
|
'londonCycle.tsx',
|
|
'htmlFeatures.tsx',
|
|
'threeDMap.tsx',
|
|
'htmlCluster.tsx',
|
|
'switchStyle.tsx',
|
|
'geojsonLayer.tsx',
|
|
'heatmap.tsx'
|
|
];
|
|
|
|
files.forEach((file) => {
|
|
readFile(`./src/demos/${file}`, (err, data) => {
|
|
if (err) {
|
|
return console.log(err);
|
|
}
|
|
|
|
writeFile(`./src/demos/raws/${file.replace('tsx', 'raw')}`, data, () => {});
|
|
});
|
|
});
|