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

21 lines
438 B
JavaScript
Raw Normal View History

2018-10-22 16:15:45 +00:00
var fs = require('fs-extra');
var source = './plugins/spine/dist/';
var dest = '../phaser3-examples/public/plugins/';
2018-10-22 16:15:45 +00:00
if (fs.existsSync(dest))
{
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 });
}