phaser/plugins/camera3d/copy-to-examples.js

14 lines
324 B
JavaScript
Raw Normal View History

2020-09-18 15:16:52 +00:00
var fs = require('fs-extra');
var source = './plugins/camera3d/dist/';
var dest = '../phaser3-examples/public/plugins/';
if (fs.existsSync(dest))
{
fs.copySync(source, dest, { overwrite: true });
}
else
{
console.log('Copy-to-Examples failed: Phaser 3 Examples not present at ../phaser3-examples');
}