2016-11-24 01:35:02 +00:00
|
|
|
var fs = require('fs-extra');
|
|
|
|
|
|
|
|
var source = './dist/phaser.js';
|
2017-07-31 13:23:28 +00:00
|
|
|
var dest = '../../phaser3-examples/public/build/dev.js';
|
2016-11-24 01:35:02 +00:00
|
|
|
|
2017-09-22 10:47:20 +00:00
|
|
|
if (fs.existsSync(dest))
|
|
|
|
{
|
|
|
|
fs.copy(source, dest, function (err) {
|
2016-11-24 01:35:02 +00:00
|
|
|
|
2017-09-22 10:47:20 +00:00
|
|
|
if (err)
|
|
|
|
{
|
|
|
|
return console.error(err);
|
|
|
|
}
|
2016-11-24 01:35:02 +00:00
|
|
|
|
2017-09-22 10:47:20 +00:00
|
|
|
console.log('Build copied to ' + dest);
|
2016-11-24 01:35:02 +00:00
|
|
|
|
2017-09-22 10:47:20 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
console.log('Copy-to-Examples failed: Phaser 3 Examples not present at ../../phaser3-examples');
|
|
|
|
}
|