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

21 lines
445 B
JavaScript
Raw Permalink Normal View History

2018-10-22 16:15:45 +00:00
var fs = require('fs-extra');
var source = './plugins/spine/dist/';
2020-08-25 17:29:58 +00:00
var dest = '../phaser3-examples/public/plugins/3.8.95/';
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 });
}