pscBundle: null, // purs bundle
pscBundleArgs: {},
pscIde: false, // instant rebuilds using psc-ide-server (experimental)
- pscIdeArgs: {}, // for example, to use different psc-ide-server port: {port: 4088}
+ pscIdeClient: null, // purs ide client
+ pscIdeClientArgs: {}, // for example, to use different port {port: 4088}
+ pscIdeServer: null, // purs ide server
pscIdeServerArgs: {}, // for example, to change the port { port: 4088 }
pscIdeColors: false, // defaults to true if psc === 'psa'
pscPackage: false,
module.exports.UnknownModuleError = UnknownModuleError;
function spawnIdeClient(body, options) {
- const ideClientCommand = 'purs';
+ const ideClientCommand = options.pscIdeClient || 'purs';
- const ideClientArgs = ['ide', 'client'].concat(dargs(options.pscIdeArgs));
+ const ideClientArgs = (options.pscIdeClient ? [] : ['ide', 'client']).concat(dargs(options.pscIdeClientArgs));
const stderr = [];
module.exports.connect = function connect(psModule) {
const options = psModule.options
- const serverCommand = 'purs';
+ const serverCommand = options.pscIdeServer || 'purs';
- const serverArgs = ['ide', 'server'].concat(dargs(Object.assign({
+ const serverArgs = (options.pscIdeServer ? [] : ['ide', 'server']).concat(dargs(Object.assign({
outputDirectory: options.output,
'_': options.src
}, options.pscIdeServerArgs)));
pscArgs: {},
pscBundle: null,
pscBundleArgs: {},
+ pscIdeClient: null,
+ pscIdeClientArgs: {},
+ pscIdeServer: null,
+ pscIdeServerArgs: {},
pscIde: false,
pscIdeColors: loaderOptions.psc === 'psa',
- pscIdeArgs: {},
pscPackage: false,
bundleOutput: 'output/bundle.js',
bundleNamespace: 'PS',