open-stage-control/scripts/package-node.js

12 lines
365 B
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var cpr = require('cpr'),
path = require('path'),
files = ['../app', '../dist/open-stage-control-node']
cpr(...files.map(f => path.resolve(__dirname + '/' + f)), {
filter: /node_modules\/(serialport|uws)/,
overwrite: true
}, ()=>{
console.warn('\x1b[36m%s\x1b[0m', '=> Build artifacts created in ' + path.resolve(__dirname + '/../dist'))
})