my_wins 1.2.2 → 1.2.3
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/Unlicense.txt +23 -23
- package/lib/index.js +1 -1
- package/package.json +13 -6
- package/pnpm-workspace.yaml +3 -0
- package/prettier.config.js +5 -5
- package/readme.md +113 -113
- package/pnpm-lock.yaml +0 -49
package/Unlicense.txt
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
This is free and unencumbered software released into the public domain.
|
|
2
|
-
|
|
3
|
-
Anyone is free to copy, modify, publish, use, compile, sell, or
|
|
4
|
-
distribute this software, either in source code form or as a compiled
|
|
5
|
-
binary, for any purpose, commercial or non-commercial, and by any
|
|
6
|
-
means.
|
|
7
|
-
|
|
8
|
-
In jurisdictions that recognize copyright laws, the author or authors
|
|
9
|
-
of this software dedicate any and all copyright interest in the
|
|
10
|
-
software to the public domain. We make this dedication for the benefit
|
|
11
|
-
of the public at large and to the detriment of our heirs and
|
|
12
|
-
successors. We intend this dedication to be an overt act of
|
|
13
|
-
relinquishment in perpetuity of all present and future rights to this
|
|
14
|
-
software under copyright law.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
-
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
20
|
-
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
21
|
-
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
-
OTHER DEALINGS IN THE SOFTWARE.
|
|
23
|
-
|
|
1
|
+
This is free and unencumbered software released into the public domain.
|
|
2
|
+
|
|
3
|
+
Anyone is free to copy, modify, publish, use, compile, sell, or
|
|
4
|
+
distribute this software, either in source code form or as a compiled
|
|
5
|
+
binary, for any purpose, commercial or non-commercial, and by any
|
|
6
|
+
means.
|
|
7
|
+
|
|
8
|
+
In jurisdictions that recognize copyright laws, the author or authors
|
|
9
|
+
of this software dedicate any and all copyright interest in the
|
|
10
|
+
software to the public domain. We make this dedication for the benefit
|
|
11
|
+
of the public at large and to the detriment of our heirs and
|
|
12
|
+
successors. We intend this dedication to be an overt act of
|
|
13
|
+
relinquishment in perpetuity of all present and future rights to this
|
|
14
|
+
software under copyright law.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
20
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
21
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
23
|
+
|
|
24
24
|
For more information, please refer to <http://unlicense.org/>
|
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "my_wins",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Automates starting and laying out your console windows for tsc, babel, tests, verdaccio, etc...",
|
|
5
|
-
"keywords": [
|
|
5
|
+
"keywords": [
|
|
6
|
+
"automation",
|
|
7
|
+
"cmd",
|
|
8
|
+
"keysender",
|
|
9
|
+
"windows",
|
|
10
|
+
"autostart",
|
|
11
|
+
"autorun"
|
|
12
|
+
],
|
|
6
13
|
"main": "./index.js",
|
|
7
14
|
"bin": {
|
|
8
|
-
"my_wins": "
|
|
15
|
+
"my_wins": "bin/index.js"
|
|
9
16
|
},
|
|
10
17
|
"scripts": {
|
|
11
18
|
"start": "node index.js"
|
|
@@ -14,14 +21,14 @@
|
|
|
14
21
|
"license": "Unlicense",
|
|
15
22
|
"dependencies": {
|
|
16
23
|
"json5": "^2.1.3",
|
|
17
|
-
"keysender": "^
|
|
24
|
+
"@sumbat/keysender": "^2.3.0"
|
|
18
25
|
},
|
|
19
26
|
"devDependencies": {
|
|
20
|
-
"prettier": "^
|
|
27
|
+
"prettier": "^3.6.2"
|
|
21
28
|
},
|
|
22
29
|
"homepage": "https://github.com/yuyaryshev/my_wins",
|
|
23
30
|
"repository": {
|
|
24
31
|
"type": "git",
|
|
25
|
-
"url": "https://github.com/yuyaryshev/my_wins"
|
|
32
|
+
"url": "git+https://github.com/yuyaryshev/my_wins.git"
|
|
26
33
|
}
|
|
27
34
|
}
|
package/prettier.config.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
tabWidth: 4,
|
|
3
|
-
printWidth: 150,
|
|
4
|
-
trailingComma: "all",
|
|
5
|
-
};
|
|
1
|
+
module.exports = {
|
|
2
|
+
tabWidth: 4,
|
|
3
|
+
printWidth: 150,
|
|
4
|
+
trailingComma: "all",
|
|
5
|
+
};
|
package/readme.md
CHANGED
|
@@ -1,113 +1,113 @@
|
|
|
1
|
-
# my_wins
|
|
2
|
-
|
|
3
|
-
Automates starting your console windows for tsc, babel, tests, verdaccio, etc...
|
|
4
|
-
|
|
5
|
-
my_wins opens **cmd** promts for you, position them nicely and types-in your commands into them.
|
|
6
|
-
|
|
7
|
-
## Why?
|
|
8
|
-
|
|
9
|
-
Why this is better than just running cmd/bat files?
|
|
10
|
-
|
|
11
|
-
Because you can
|
|
12
|
-
|
|
13
|
-
- [Ctrl+C] - to stop your command
|
|
14
|
-
|
|
15
|
-
- [UP] -> [Enter] - to restart your command
|
|
16
|
-
- But still you don't need to type in the command for the very first time
|
|
17
|
-
- And you don't have to open those consoles manually
|
|
18
|
-
- And you don't have to position them ether
|
|
19
|
-
|
|
20
|
-
## Installation
|
|
21
|
-
|
|
22
|
-
```shell
|
|
23
|
-
npm i my_wins
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
or
|
|
27
|
-
|
|
28
|
-
```shell
|
|
29
|
-
npm i my_wins -g
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## Usage
|
|
33
|
-
|
|
34
|
-
Create "my_wins.json" in your project with contents:
|
|
35
|
-
|
|
36
|
-
```json
|
|
37
|
-
{
|
|
38
|
-
"wins": {
|
|
39
|
-
"cmd1": "echo cm1",
|
|
40
|
-
"cmd2": "echo cmd2"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
and run
|
|
46
|
-
|
|
47
|
-
```shell
|
|
48
|
-
npm run my_wins
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
This will
|
|
52
|
-
|
|
53
|
-
* Open command line windows for each command
|
|
54
|
-
* Set titles of this windows
|
|
55
|
-
* Position windows on your screen
|
|
56
|
-
* Execute commands in them
|
|
57
|
-
|
|
58
|
-
Now if you need to restart or pause/resume any of your cmd just do
|
|
59
|
-
|
|
60
|
-
* [Ctrl+C] - to stop
|
|
61
|
-
|
|
62
|
-
* [UP] -> [Enter] - to restart
|
|
63
|
-
|
|
64
|
-
***my_wins*** was tested only on Windows 10 and may have issues on other OSes
|
|
65
|
-
|
|
66
|
-
***my_wins*** uses json5 to parse it's settings, so you can leave trailing commas or remove quotes around json-keys (see json5 package for details).
|
|
67
|
-
|
|
68
|
-
### All options
|
|
69
|
-
|
|
70
|
-
You can also create "my_wins_personal.json" which can partially or fully overrides my_wins.
|
|
71
|
-
|
|
72
|
-
It's recommended to gitignore "my_wins_personal.json".
|
|
73
|
-
|
|
74
|
-
```json
|
|
75
|
-
{
|
|
76
|
-
"startTimeout": 700,
|
|
77
|
-
"x": 0,
|
|
78
|
-
"y": 0,
|
|
79
|
-
"height": 120,
|
|
80
|
-
"width": 500,
|
|
81
|
-
"wins": {
|
|
82
|
-
"foo":"my command line 1",
|
|
83
|
-
"baz":{"no_run":true, "cmd":"my command line 2"},
|
|
84
|
-
"webstorm": {"app":true, "cmd":"\"C:\\Program Files\\JetBrains\\WebStorm 2019.2\\bin\\webstorm64.exe\""} // notice escaped quotes !
|
|
85
|
-
// "commented": "Comments and trailing commas are supported!",
|
|
86
|
-
},
|
|
87
|
-
}
|
|
88
|
-
```
|
|
89
|
-
**x,y,height,width** *number* - is first cmd window's position and size
|
|
90
|
-
|
|
91
|
-
**y** gets incremented by **height** for each next window
|
|
92
|
-
|
|
93
|
-
**wins** *object*- your windows
|
|
94
|
-
|
|
95
|
-
- if you enter a string it resolves to `{"cmd":"string"}`
|
|
96
|
-
- **cmd** *string* - your command
|
|
97
|
-
- **no_run** *boolean* - types in the command, but won't hit "Enter".
|
|
98
|
-
- **app** *boolean* - runs yours command as Windows application, not as console. (Incompartible with "no_run").
|
|
99
|
-
|
|
100
|
-
*Author - Yuri Yaryshev*, 2020
|
|
101
|
-
|
|
102
|
-
*Unlicensed*
|
|
103
|
-
|
|
104
|
-
## Changelog
|
|
105
|
-
|
|
106
|
-
1.0.13
|
|
107
|
-
- Fixed webstorm example in readme
|
|
108
|
-
|
|
109
|
-
1.0.12
|
|
110
|
-
- Fixed JSON5 parsing errors was silently ignored.
|
|
111
|
-
|
|
112
|
-
1.0.11
|
|
113
|
-
- Added "app" flag to run applications instead of console windows.
|
|
1
|
+
# my_wins
|
|
2
|
+
|
|
3
|
+
Automates starting your console windows for tsc, babel, tests, verdaccio, etc...
|
|
4
|
+
|
|
5
|
+
my_wins opens **cmd** promts for you, position them nicely and types-in your commands into them.
|
|
6
|
+
|
|
7
|
+
## Why?
|
|
8
|
+
|
|
9
|
+
Why this is better than just running cmd/bat files?
|
|
10
|
+
|
|
11
|
+
Because you can
|
|
12
|
+
|
|
13
|
+
- [Ctrl+C] - to stop your command
|
|
14
|
+
|
|
15
|
+
- [UP] -> [Enter] - to restart your command
|
|
16
|
+
- But still you don't need to type in the command for the very first time
|
|
17
|
+
- And you don't have to open those consoles manually
|
|
18
|
+
- And you don't have to position them ether
|
|
19
|
+
|
|
20
|
+
## Installation
|
|
21
|
+
|
|
22
|
+
```shell
|
|
23
|
+
npm i my_wins
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
or
|
|
27
|
+
|
|
28
|
+
```shell
|
|
29
|
+
npm i my_wins -g
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Usage
|
|
33
|
+
|
|
34
|
+
Create "my_wins.json" in your project with contents:
|
|
35
|
+
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"wins": {
|
|
39
|
+
"cmd1": "echo cm1",
|
|
40
|
+
"cmd2": "echo cmd2"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
and run
|
|
46
|
+
|
|
47
|
+
```shell
|
|
48
|
+
npm run my_wins
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
This will
|
|
52
|
+
|
|
53
|
+
* Open command line windows for each command
|
|
54
|
+
* Set titles of this windows
|
|
55
|
+
* Position windows on your screen
|
|
56
|
+
* Execute commands in them
|
|
57
|
+
|
|
58
|
+
Now if you need to restart or pause/resume any of your cmd just do
|
|
59
|
+
|
|
60
|
+
* [Ctrl+C] - to stop
|
|
61
|
+
|
|
62
|
+
* [UP] -> [Enter] - to restart
|
|
63
|
+
|
|
64
|
+
***my_wins*** was tested only on Windows 10 and may have issues on other OSes
|
|
65
|
+
|
|
66
|
+
***my_wins*** uses json5 to parse it's settings, so you can leave trailing commas or remove quotes around json-keys (see json5 package for details).
|
|
67
|
+
|
|
68
|
+
### All options
|
|
69
|
+
|
|
70
|
+
You can also create "my_wins_personal.json" which can partially or fully overrides my_wins.
|
|
71
|
+
|
|
72
|
+
It's recommended to gitignore "my_wins_personal.json".
|
|
73
|
+
|
|
74
|
+
```json
|
|
75
|
+
{
|
|
76
|
+
"startTimeout": 700,
|
|
77
|
+
"x": 0,
|
|
78
|
+
"y": 0,
|
|
79
|
+
"height": 120,
|
|
80
|
+
"width": 500,
|
|
81
|
+
"wins": {
|
|
82
|
+
"foo":"my command line 1",
|
|
83
|
+
"baz":{"no_run":true, "cmd":"my command line 2"},
|
|
84
|
+
"webstorm": {"app":true, "cmd":"\"C:\\Program Files\\JetBrains\\WebStorm 2019.2\\bin\\webstorm64.exe\""} // notice escaped quotes !
|
|
85
|
+
// "commented": "Comments and trailing commas are supported!",
|
|
86
|
+
},
|
|
87
|
+
}
|
|
88
|
+
```
|
|
89
|
+
**x,y,height,width** *number* - is first cmd window's position and size
|
|
90
|
+
|
|
91
|
+
**y** gets incremented by **height** for each next window
|
|
92
|
+
|
|
93
|
+
**wins** *object*- your windows
|
|
94
|
+
|
|
95
|
+
- if you enter a string it resolves to `{"cmd":"string"}`
|
|
96
|
+
- **cmd** *string* - your command
|
|
97
|
+
- **no_run** *boolean* - types in the command, but won't hit "Enter".
|
|
98
|
+
- **app** *boolean* - runs yours command as Windows application, not as console. (Incompartible with "no_run").
|
|
99
|
+
|
|
100
|
+
*Author - Yuri Yaryshev*, 2020
|
|
101
|
+
|
|
102
|
+
*Unlicensed*
|
|
103
|
+
|
|
104
|
+
## Changelog
|
|
105
|
+
|
|
106
|
+
1.0.13
|
|
107
|
+
- Fixed webstorm example in readme
|
|
108
|
+
|
|
109
|
+
1.0.12
|
|
110
|
+
- Fixed JSON5 parsing errors was silently ignored.
|
|
111
|
+
|
|
112
|
+
1.0.11
|
|
113
|
+
- Added "app" flag to run applications instead of console windows.
|
package/pnpm-lock.yaml
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
lockfileVersion: 5.3
|
|
2
|
-
|
|
3
|
-
specifiers:
|
|
4
|
-
json5: ^2.1.3
|
|
5
|
-
keysender: ^1.5.0
|
|
6
|
-
prettier: ^2.0.5
|
|
7
|
-
|
|
8
|
-
dependencies:
|
|
9
|
-
json5: 2.1.3
|
|
10
|
-
keysender: 1.5.0
|
|
11
|
-
|
|
12
|
-
devDependencies:
|
|
13
|
-
prettier: 2.0.5
|
|
14
|
-
|
|
15
|
-
packages:
|
|
16
|
-
|
|
17
|
-
/json5/2.1.3:
|
|
18
|
-
resolution: {integrity: sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA==}
|
|
19
|
-
engines: {node: '>=6'}
|
|
20
|
-
hasBin: true
|
|
21
|
-
dependencies:
|
|
22
|
-
minimist: 1.2.5
|
|
23
|
-
dev: false
|
|
24
|
-
|
|
25
|
-
/keysender/1.5.0:
|
|
26
|
-
resolution: {integrity: sha512-6GR5lYm/HbirtF5C2CUiAxqoX7upywhxBBV6FQFmtv15844qJgTXG9SQshxTcfu0oG5axrkt7SgrFhNd6Ic68A==}
|
|
27
|
-
requiresBuild: true
|
|
28
|
-
dependencies:
|
|
29
|
-
lodash.isequal: 4.5.0
|
|
30
|
-
node-addon-api: 2.0.0
|
|
31
|
-
dev: false
|
|
32
|
-
|
|
33
|
-
/lodash.isequal/4.5.0:
|
|
34
|
-
resolution: {integrity: sha1-QVxEePK8wwEgwizhDtMib30+GOA=}
|
|
35
|
-
dev: false
|
|
36
|
-
|
|
37
|
-
/minimist/1.2.5:
|
|
38
|
-
resolution: {integrity: sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==}
|
|
39
|
-
dev: false
|
|
40
|
-
|
|
41
|
-
/node-addon-api/2.0.0:
|
|
42
|
-
resolution: {integrity: sha512-ASCL5U13as7HhOExbT6OlWJJUV/lLzL2voOSP1UVehpRD8FbSrSDjfScK/KwAvVTI5AS6r4VwbOMlIqtvRidnA==}
|
|
43
|
-
dev: false
|
|
44
|
-
|
|
45
|
-
/prettier/2.0.5:
|
|
46
|
-
resolution: {integrity: sha512-7PtVymN48hGcO4fGjybyBSIWDsLU4H4XlvOHfq91pz9kkGlonzwTfYkaIEwiRg/dAJF9YlbsduBAgtYLi+8cFg==, registry: https://registry.npmjs.com/}
|
|
47
|
-
engines: {node: '>=10.13.0'}
|
|
48
|
-
hasBin: true
|
|
49
|
-
dev: true
|