2018-10-22 16:15:45 +00:00
|
|
|
var fs = require('fs-extra');
|
|
|
|
|
2018-10-24 13:09:11 +00:00
|
|
|
var source = './plugins/spine/dist/';
|
|
|
|
var dest = '../phaser3-examples/public/plugins/';
|
2018-10-22 16:15:45 +00:00
|
|
|
|
|
|
|
if (fs.existsSync(dest))
|
|
|
|
{
|
2018-10-24 13:09:11 +00:00
|
|
|
fs.copySync(source, dest, { overwrite: true });
|
2018-10-22 16:15:45 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
console.log('Copy-to-Examples failed: Phaser 3 Examples not present at ../phaser3-examples');
|
|
|
|
}
|
2019-07-31 14:50:59 +00:00
|
|
|
|
|
|
|
dest = '../100-phaser3-snippets/public/libs/';
|
|
|
|
|
|
|
|
if (fs.existsSync(dest))
|
|
|
|
{
|
|
|
|
fs.copySync(source, dest, { overwrite: true });
|
|
|
|
}
|