mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 12:43:26 +00:00
20 lines
450 B
JavaScript
20 lines
450 B
JavaScript
var fs = require('fs-extra');
|
|
|
|
var source = './plugins/spine4.1/dist/';
|
|
var dest = '../phaser3-examples/public/plugins/spine4.1/';
|
|
|
|
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');
|
|
}
|
|
|
|
dest = '../100-phaser3-snippets/public/libs/';
|
|
|
|
if (fs.existsSync(dest))
|
|
{
|
|
fs.copySync(source, dest, { overwrite: true });
|
|
}
|