40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
var build = require('./build'),
|
|
babelify = require('babelify')
|
|
|
|
build({
|
|
input: '../src/server/index.js',
|
|
output: '../app/server/open-stage-control-server.js',
|
|
options: {
|
|
commonDir: false,
|
|
ignoreMissing: true,
|
|
debug: true,
|
|
builtins: false,
|
|
commondir: false,
|
|
insertGlobalVars: {
|
|
__filename: true,
|
|
__dirname: true,
|
|
process: true,
|
|
electron: true,
|
|
global: true
|
|
},
|
|
browserField: false,
|
|
},
|
|
ignore: 'serialport',
|
|
exclude: 'electron',
|
|
transforms: [
|
|
[babelify, {
|
|
'presets': [
|
|
['@babel/env', {
|
|
'targets': {
|
|
'node': '6',
|
|
},
|
|
'useBuiltIns': 'usage',
|
|
'corejs': 3
|
|
}]
|
|
],
|
|
'plugins': ['@babel/plugin-proposal-object-rest-spread'],
|
|
'global': true,
|
|
'only': ['**/ws/', '**/yargs/', '**/find-up/', '**/locate-path', '**/p-locate']
|
|
}]
|
|
]
|
|
})()
|