Merge pull request #4421 from windows-test-machine/dallin/jetbrains-cross-env
jetbrains cross env support for CE
This commit is contained in:
commit
bf4a68e347
4 changed files with 28 additions and 2 deletions
6
binary/core-dev-server.js
Normal file
6
binary/core-dev-server.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
const path = require('path');
|
||||
process.env.CONTINUE_DEVELOPMENT = true;
|
||||
|
||||
process.env.CONTINUE_GLOBAL_DIR = path.join(process.env.PROJECT_DIR, 'extensions', '.continue-debug');
|
||||
|
||||
require('./out/index.js');
|
||||
20
binary/prompt-logs.js
Normal file
20
binary/prompt-logs.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const logDirPath = path.join(__dirname, '..', 'extensions', '.continue-debug', 'logs');
|
||||
const logFilePath = path.join(logDirPath, "prompt.log");
|
||||
|
||||
if (!fs.existsSync(logDirPath)) {
|
||||
fs.mkdirSync(logDirPath, { recursive: true });
|
||||
}
|
||||
|
||||
if (!fs.existsSync(logFilePath)) {
|
||||
fs.createWriteStream(logFilePath).end();
|
||||
}
|
||||
|
||||
console.log("Watching logs at " + logFilePath)
|
||||
|
||||
fs.watch(logFilePath, () => {
|
||||
// console.clear();
|
||||
fs.createReadStream(logFilePath).pipe(process.stdout);
|
||||
});
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Prompt Logs" type="ShConfigurationType">
|
||||
<option name="SCRIPT_TEXT" value="mkdir -p ./extensions/.continue-debug/logs && touch ./extensions/.continue-debug/logs/prompt.log && tail -f ./extensions/.continue-debug/logs/prompt.log" />
|
||||
<option name="SCRIPT_TEXT" value="node ./binary/prompt-logs.js" />
|
||||
<option name="INDEPENDENT_SCRIPT_PATH" value="true" />
|
||||
<option name="SCRIPT_PATH" value="" />
|
||||
<option name="SCRIPT_OPTIONS" value="" />
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Start Core Dev Server (CE)" type="ShConfigurationType">
|
||||
<option name="SCRIPT_TEXT" value="export CONTINUE_DEVELOPMENT=true && export CONTINUE_GLOBAL_DIR=$PROJECT_DIR$/extensions/.continue-debug && node out/index.js" />
|
||||
<option name="SCRIPT_TEXT" value="cross-env 'PROJECT_DIR="$PROJECT_DIR$"' node core-dev-server.js" />
|
||||
<option name="INDEPENDENT_SCRIPT_PATH" value="true" />
|
||||
<option name="SCRIPT_PATH" value="" />
|
||||
<option name="SCRIPT_OPTIONS" value="" />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue