chore: dev

This commit is contained in:
cha0s 2024-01-23 20:31:44 -06:00
parent 901be18ac9
commit b1d800336a
7 changed files with 33 additions and 9 deletions

View File

@ -1,3 +1,4 @@
{ {
"eslint.nodePath": "/home/cha0s/sync/src/code/flecks/node_modules", "eslint.workingDirectories": [{"pattern": "./packages/*"}],
"eslint.options": {"overrideConfigFile": "./node_modules/@flecks/build/build/eslint.config.js"},
} }

View File

@ -14,7 +14,6 @@ const {
} = process.env; } = process.env;
const debug = D('@flecks/build/build/commands'); const debug = D('@flecks/build/build/commands');
const debugSilly = debug.extend('silly');
const flecksRoot = normalize(FLECKS_CORE_ROOT); const flecksRoot = normalize(FLECKS_CORE_ROOT);
exports.commands = (program, flecks) => { exports.commands = (program, flecks) => {

View File

@ -1,4 +1,3 @@
// eslint-disable-next-line import/no-extraneous-dependencies
const globals = require('globals'); const globals = require('globals');
module.exports = ({ module.exports = ({
@ -16,7 +15,7 @@ module.exports = ({
ignorePatterns: [ ignorePatterns: [
'dist/**', 'dist/**',
// Not even gonna try. // Not even gonna try.
'build/dox/hooks.js', 'build/flecks.hooks.js',
], ],
overrides: [ overrides: [
{ {
@ -24,6 +23,7 @@ module.exports = ({
'build/**/*.js', 'build/**/*.js',
], ],
rules: { rules: {
'import/no-extraneous-dependencies': ['error', {devDependencies: true}],
'import/no-dynamic-require': 'off', 'import/no-dynamic-require': 'off',
'global-require': 'off', 'global-require': 'off',
}, },

View File

@ -2,9 +2,9 @@
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"type": "pwa-node", "type": "node",
"request": "launch", "request": "launch",
"name": "Flecks", "name": "Start",
"skipFiles": [ "skipFiles": [
"<node_internals>/**" "<node_internals>/**"
], ],

View File

@ -0,0 +1,4 @@
{
"eslint.workingDirectories": [{"pattern": "./packages/*"}],
"eslint.options": {"overrideConfigFile": "./node_modules/@flecks/build/build/eslint.config.js"},
}

View File

@ -4,8 +4,8 @@
"scripts": { "scripts": {
"build": "FLECKS_ENV__flecks_server__start=0 npm run build:only", "build": "FLECKS_ENV__flecks_server__start=0 npm run build:only",
"build:only": "flecks build", "build:only": "flecks build",
"debug": "DEBUG=*,-babel*,-eslint* npm run dev", "debug": "DEBUG=@flecks/* npm run dev",
"dev": "npm run -- build:only -h", "dev": "npm run -- build:only -dh",
"repl": "npx flecks repl --rlwrap", "repl": "npx flecks repl --rlwrap",
"start": "DEBUG=@flecks/*,-*:silly npm run dev" "start": "DEBUG=@flecks/*,-*:silly npm run dev"
}, },
@ -16,6 +16,8 @@
"devDependencies": { "devDependencies": {
"@flecks/build": "3.0.0", "@flecks/build": "3.0.0",
"@flecks/create-fleck": "3.0.0", "@flecks/create-fleck": "3.0.0",
"lerna": "^3.22.1" "lerna": "^3.22.1",
"patch-package": "^8.0.0",
"postinstall-postinstall": "^2.1.0"
} }
} }

View File

@ -0,0 +1,18 @@
diff --git a/node_modules/electron/cli.js b/node_modules/electron/cli.js
index 09f4677..5227264 100755
--- a/node_modules/electron/cli.js
+++ b/node_modules/electron/cli.js
@@ -15,11 +15,10 @@ child.on('close', function (code, signal) {
const handleTerminationSignal = function (signal) {
process.on(signal, function signalHandler () {
- if (!child.killed) {
- child.kill(signal);
- }
+ child.kill(signal);
});
};
handleTerminationSignal('SIGINT');
handleTerminationSignal('SIGTERM');
+handleTerminationSignal('SIGUSR2');