chore: dev
This commit is contained in:
parent
901be18ac9
commit
b1d800336a
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
@ -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"},
|
||||||
}
|
}
|
|
@ -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) => {
|
||||||
|
|
|
@ -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',
|
||||||
},
|
},
|
||||||
|
|
|
@ -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>/**"
|
||||||
],
|
],
|
||||||
|
|
4
packages/create-app/template/.vscode/settings.json
vendored
Normal file
4
packages/create-app/template/.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"eslint.workingDirectories": [{"pattern": "./packages/*"}],
|
||||||
|
"eslint.options": {"overrideConfigFile": "./node_modules/@flecks/build/build/eslint.config.js"},
|
||||||
|
}
|
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
18
packages/create-app/template/patches/electron+28.1.4.patch
Normal file
18
packages/create-app/template/patches/electron+28.1.4.patch
Normal 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');
|
Loading…
Reference in New Issue
Block a user