This repository has been archived on 2022-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
2017-08-02 21:24:01 +00:00
|
|
|
#!/usr/bin/env node
|
|
|
|
const path = require('path')
|
|
|
|
|
|
|
|
if (process.argv.indexOf('-d') === -1 && process.argv.indexOf('--development') === -1) {
|
|
|
|
process.env.NODE_ENV = 'production'
|
|
|
|
}
|
|
|
|
|
2020-01-28 20:27:24 +00:00
|
|
|
require('@babel/register')({
|
2020-05-28 18:30:21 +00:00
|
|
|
plugins: ['@babel/plugin-transform-modules-commonjs']
|
2017-08-02 21:24:01 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
require(path.join(__dirname, 'server'))
|