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

21 lines
442 B
JavaScript
Raw Normal View History

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