@gkalpak/aliases 0.10.2 → 0.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -59,6 +59,7 @@ Here is the list of all global dependencies with associated min. version (older
59
59
  - `grep`: [grep] >=3 (could come through a bash emulation environment on Windows, such as [git for
60
60
  Windows][git-win]' `Git BASH`)
61
61
  - `http-server`: [http-server] >=0.12.0 (installed globally via [npm] or [yarn])
62
+ - `kdiff3`: [kdiff3] >=0.9
62
63
  - `light-server`: [light-server] >=2.5.0 (installed globally via [npm] or [yarn])
63
64
  - `ls`: [ls] >=8 (could come through a bash emulation environment on Windows, such as [git for
64
65
  Windows][git-win]' `Git BASH`)
@@ -115,6 +116,7 @@ Things I want to (but won't necessarily) do:
115
116
  [git-win]: https://git-for-windows.github.io/
116
117
  [grep]: https://en.wikipedia.org/wiki/Grep
117
118
  [http-server]: https://www.npmjs.com/package/http-server
119
+ [kdiff3]: https://invent.kde.org/sdk/kdiff3
118
120
  [light-server]: https://www.npmjs.com/package/light-server
119
121
  [ls]: https://en.wikipedia.org/wiki/Ls
120
122
  [ng-maintain]: https://www.npmjs.com/package/@gkalpak/ng-maintain
@@ -2,7 +2,7 @@
2
2
  import {stripIndentation} from '../../lib/utils.js';
3
3
  /* eslint-disable max-len */
4
4
  console.log(stripIndentation(`
5
- ### [Generated by: @gkalpak/aliases v0.10.2]
5
+ ### [Generated by: @gkalpak/aliases v0.10.4]
6
6
  ### Copy the following into '~/.bashrc':
7
7
 
8
8
  # Set up prompt.
@@ -2,7 +2,7 @@
2
2
  import {stripIndentation} from '../../lib/utils.js';
3
3
  /* eslint-disable max-len */
4
4
  console.log(stripIndentation(`
5
- ### [Generated by: @gkalpak/aliases v0.10.2]
5
+ ### [Generated by: @gkalpak/aliases v0.10.4]
6
6
  ### Copy the following into '~/.bashrc':
7
7
 
8
8
  # Set up prompt.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {stripIndentation} from '../../lib/utils.js';
3
3
  console.log(stripIndentation(`
4
- ### [Generated by: @gkalpak/aliases v0.10.2]
4
+ ### [Generated by: @gkalpak/aliases v0.10.4]
5
5
  ### Run the following commands:
6
6
 
7
7
  git config --global commit.gpgSign true
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env node
2
+ import {stripIndentation} from '../../lib/utils.js';
3
+ console.log(stripIndentation(`
4
+ ### [Generated by: @gkalpak/aliases v0.10.4]
5
+ ### Run the following commands:
6
+
7
+ git config --global commit.gpgSign true
8
+ git config --global core.editor "vim"
9
+ git config --global credential.helper "manager"
10
+ git config --global merge.tool "kdiff3"
11
+ git config --global mergetool.kdiff3.path "C:/Program Files/KDiff3/bin/kdiff3.exe"
12
+ git config --global mergetool.kdiff3.trustExitCode "false"
13
+ git config --global push.default "upstream"
14
+ git config --global rebase.autosquash "true"
15
+ git config --global rebase.autostash "true"
16
+ git config --global tag.gpgSign true
17
+ git config --global user.email "kalpakas.g@gmail.com"
18
+ git config --global user.name "George Kalpakas"
19
+ git config --global user.signingKey "0FF21FC44ECE9F07"
20
+ `));
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import {stripIndentation} from '../../lib/utils.js';
3
3
  console.log(stripIndentation(`
4
- ### [Generated by: @gkalpak/aliases v0.10.2]
4
+ ### [Generated by: @gkalpak/aliases v0.10.4]
5
5
  ### Run the following commands:
6
6
 
7
7
  git config --global commit.gpgSign true
8
8
  git config --global core.editor "vim"
9
- git config --global credential.helper "/mnt/c/Program\\ Files/Git/mingw64/bin/git-credential-manager.exe"
9
+ git config --global credential.helper "/mnt/c/Program Files/Git/mingw64/bin/git-credential-manager.exe"
10
10
  git config --global merge.tool "kdiff3"
11
- git config --global mergetool.kdiff3.path "/path/to/kdiff3"
11
+ git config --global mergetool.kdiff3.path "/mnt/c/Program Files/KDiff3/bin/kdiff3.exe"
12
12
  git config --global mergetool.kdiff3.trustExitCode "false"
13
13
  git config --global push.default "upstream"
14
14
  git config --global rebase.autosquash "true"
@@ -2,6 +2,6 @@
2
2
  import {readFileSync} from 'node:fs';
3
3
  import {fileURLToPath} from 'node:url';
4
4
  const __dirname = fileURLToPath(new URL('.', import.meta.url));
5
- console.log('""" [Generated by: @gkalpak/aliases v0.10.2]');
5
+ console.log('""" [Generated by: @gkalpak/aliases v0.10.4]');
6
6
  console.log('""" Copy the following into \'~/.vimrc\':\n');
7
7
  console.log(readFileSync(`${__dirname}/../../lib/assets/vimrc.txt`, 'utf8').trim() + '\n');
package/bin/misc/alv.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- console.log('@gkalpak/aliases v0.10.2');
2
+ console.log('@gkalpak/aliases v0.10.4');
package/bin/node/naga.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {commandUtils} from '@gkalpak/cli-utils';
3
3
  import {isMain, onError} from '../../lib/utils.js';
4
4
  // eslint-disable-next-line max-len
5
- const cmd = 'npm install --global @angular/cli @gkalpak/aliases @gkalpak/cli-utils @gkalpak/ng-maintain csslint eslint firebase-tools grunt-cli gulp-cli http-server light-server shx typescript typescript-run watch yarn $*';
5
+ const cmd = 'npm install --global @angular/cli @gkalpak/aliases @gkalpak/cli-utils @gkalpak/ng-maintain eslint firebase-tools http-server light-server shx typescript typescript-run watch yarn $*';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
8
  const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
package/bin/node/yaga.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {commandUtils} from '@gkalpak/cli-utils';
3
3
  import {isMain, onError} from '../../lib/utils.js';
4
4
  // eslint-disable-next-line max-len
5
- const cmd = 'yarn global add @angular/cli @gkalpak/aliases @gkalpak/cli-utils @gkalpak/ng-maintain csslint eslint firebase-tools grunt-cli gulp-cli http-server light-server shx typescript typescript-run watch $*';
5
+ const cmd = 'yarn global add @angular/cli @gkalpak/aliases @gkalpak/cli-utils @gkalpak/ng-maintain eslint firebase-tools http-server light-server shx typescript typescript-run watch $*';
6
6
  export default cmd;
7
7
  if (isMain(import.meta.url)) {
8
8
  const {args, config} = commandUtils.preprocessArgs(process.argv.slice(2));
package/lib/constants.js CHANGED
@@ -26,11 +26,8 @@ const GLOBAL_NPM_PACKAGES = [
26
26
  '@gkalpak/aliases',
27
27
  '@gkalpak/cli-utils',
28
28
  '@gkalpak/ng-maintain',
29
- 'csslint',
30
29
  'eslint',
31
30
  'firebase-tools',
32
- 'grunt-cli',
33
- 'gulp-cli',
34
31
  'http-server',
35
32
  'light-server',
36
33
  'shx',
@@ -90,7 +87,7 @@ const CFGBASH_SPEC = isWsl => new AliasSpec(
90
87
  /* eslint-enable max-len */
91
88
  'Show configuration instructions for `bash`.');
92
89
 
93
- const CFGGIT_SPEC_WITH_CRED_HELPER = credHelper => new AliasSpec(
90
+ const CFGGIT_SPEC_WITH_CRED_HELPER = (credHelper, kdiff3Path) => new AliasSpec(
94
91
  stripIndentation(`
95
92
  #!/usr/bin/env node
96
93
  import {stripIndentation} from '../../lib/utils.js';
@@ -102,7 +99,7 @@ const CFGGIT_SPEC_WITH_CRED_HELPER = credHelper => new AliasSpec(
102
99
  git config --global core.editor "vim"
103
100
  git config --global credential.helper "${credHelper}"
104
101
  git config --global merge.tool "kdiff3"
105
- git config --global mergetool.kdiff3.path "/path/to/kdiff3"
102
+ git config --global mergetool.kdiff3.path "${kdiff3Path}"
106
103
  git config --global mergetool.kdiff3.trustExitCode "false"
107
104
  git config --global push.default "upstream"
108
105
  git config --global rebase.autosquash "true"
@@ -472,9 +469,13 @@ const ALIASES = {
472
469
 
473
470
  // GIT
474
471
  cfggit: new Alias({
475
- default: CFGGIT_SPEC_WITH_CRED_HELPER('manager'),
472
+ default: CFGGIT_SPEC_WITH_CRED_HELPER('manager', '/path/to/kdiff3'),
473
+ win32: CFGGIT_SPEC_WITH_CRED_HELPER(
474
+ 'manager',
475
+ 'C:/Program Files/KDiff3/bin/kdiff3.exe'),
476
476
  wsl: CFGGIT_SPEC_WITH_CRED_HELPER(
477
- '/mnt/c/Program\\\\ Files/Git/mingw64/bin/git-credential-manager.exe'),
477
+ '/mnt/c/Program Files/Git/mingw64/bin/git-credential-manager.exe',
478
+ '/mnt/c/Program Files/KDiff3/bin/kdiff3.exe'),
478
479
  }),
479
480
 
480
481
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gkalpak/aliases",
3
- "version": "0.10.2",
3
+ "version": "0.10.4",
4
4
  "description": "My global aliases.",
5
5
  "keywords": [
6
6
  "Utility"
@@ -190,18 +190,18 @@
190
190
  },
191
191
  "dependencies": {
192
192
  "@gkalpak/cli-utils": "^0.1.10",
193
- "chalk": "^5.2.0",
194
- "inquirer": "^9.1.5",
195
- "is-wsl": "^2.2.0"
193
+ "chalk": "^5.3.0",
194
+ "inquirer": "^9.2.10",
195
+ "is-wsl": "^3.0.0"
196
196
  },
197
197
  "devDependencies": {
198
- "eslint": "^8.36.0",
198
+ "eslint": "^8.47.0",
199
199
  "eslint-plugin-jasmine": "^4.1.3",
200
200
  "eslint-plugin-ordered-imports": "^0.6.0",
201
- "jasmine": "^4.6.0",
201
+ "jasmine": "^5.1.0",
202
202
  "npm-run-all": "^4.1.5",
203
203
  "shelljs": "^0.8.5",
204
- "strip-ansi": "^7.0.1",
204
+ "strip-ansi": "^7.1.0",
205
205
  "watch": "^1.0.2"
206
206
  }
207
207
  }