madrun 9.0.3 → 9.0.6
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/CONTRIBUTING.md +7 -12
- package/ChangeLog +20 -1
- package/README.md +2 -2
- package/bin/init.mjs +2 -2
- package/lib/madrun.js +3 -1
- package/package.json +6 -5
package/CONTRIBUTING.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
## Commit
|
|
2
2
|
|
|
3
|
-
Format of the commit message: **type
|
|
3
|
+
Format of the commit message: **type: scope: subject**
|
|
4
4
|
|
|
5
5
|
**Type**:
|
|
6
6
|
|
|
7
|
-
- feature
|
|
8
|
-
- fix
|
|
9
|
-
- docs
|
|
10
|
-
- refactor
|
|
11
|
-
- test
|
|
12
|
-
- chore
|
|
7
|
+
- **feature: scope: subject**
|
|
8
|
+
- **fix: scope: subject**
|
|
9
|
+
- **docs: scope: subject**
|
|
10
|
+
- **refactor: scope: subject**
|
|
11
|
+
- **test: scope: subject**
|
|
12
|
+
- **chore: scope: subject**
|
|
13
13
|
|
|
14
14
|
**Scope**:
|
|
15
15
|
Scope could be anything specifying place of the commit change.
|
|
@@ -23,8 +23,3 @@ For example util, console, view, edit, style etc...
|
|
|
23
23
|
**Message body**:
|
|
24
24
|
- just as in <subject> use imperative, present tense: “change” not “changed” nor “changes”
|
|
25
25
|
- includes motivation for the change and contrasts with previous behavior
|
|
26
|
-
|
|
27
|
-
**Examples**:
|
|
28
|
-
|
|
29
|
-
- [fix(style) .name{width}: 37% -> 35%](https://github.com/coderaiser/cloudcmd/commit/94b0642e3990c17b3a0ee3efeb75f343e1e7c050)
|
|
30
|
-
- [fix(console) dispatch: focus -> mouseup](https://github.com/coderaiser/cloudcmd/commit/f41ec5058d1411e86a881f8e8077e0572e0409ec)
|
package/ChangeLog
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
2022.07.20, v9.0.6
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- package: putout v27.0.0
|
|
5
|
+
- package: eslint-plugin-putout v16.0.0
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
2022.06.23, v9.0.5
|
|
9
|
+
|
|
10
|
+
fix:
|
|
11
|
+
- madrun: windows
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
2022.05.27, v9.0.4
|
|
15
|
+
|
|
16
|
+
feature:
|
|
17
|
+
- (package) putout v26.9.0
|
|
18
|
+
|
|
19
|
+
|
|
1
20
|
2022.05.08, v9.0.3
|
|
2
21
|
|
|
3
22
|
feature:
|
|
@@ -83,7 +102,7 @@ feature:
|
|
|
83
102
|
2021.09.09, v8.8.9
|
|
84
103
|
|
|
85
104
|
fix:
|
|
86
|
-
- (package) get back to older find-up
|
|
105
|
+
- (package) get back to older find-up because of inability to test and problem with simport resolve
|
|
87
106
|
|
|
88
107
|
|
|
89
108
|
2021.09.09, v8.8.8
|
package/README.md
CHANGED
|
@@ -87,7 +87,7 @@ MADRUN_NAME=1 madrun lint
|
|
|
87
87
|
|
|
88
88
|
Run script by a name or regexp.
|
|
89
89
|
|
|
90
|
-
- `name` - name of a
|
|
90
|
+
- `name` - name of a script
|
|
91
91
|
- `opt` - options to run with
|
|
92
92
|
- `env` - object with `env` variables
|
|
93
93
|
- `scripts` - all scripts set (need for embedding only)
|
|
@@ -114,7 +114,7 @@ Run scripts by a name or regexp parallel.
|
|
|
114
114
|
|
|
115
115
|
Same as `run`, but returns result without `env`.
|
|
116
116
|
|
|
117
|
-
- `name` - name of a
|
|
117
|
+
- `name` - name of a script
|
|
118
118
|
- `opt` - options to run with
|
|
119
119
|
- `env` - object with `env` variables
|
|
120
120
|
- `scripts` - all scripts set (need for embedding only)
|
package/bin/init.mjs
CHANGED
|
@@ -10,10 +10,10 @@ import montag from 'montag';
|
|
|
10
10
|
|
|
11
11
|
const require = createRequire(import.meta.url);
|
|
12
12
|
|
|
13
|
-
const
|
|
13
|
+
const supported = require('../supported.json');
|
|
14
14
|
const {keys} = Object;
|
|
15
15
|
|
|
16
|
-
const
|
|
16
|
+
const {stringify} = JSON;
|
|
17
17
|
|
|
18
18
|
export const createMadrun = async (cwd, info) => {
|
|
19
19
|
let name = await findMadrun(cwd);
|
package/lib/madrun.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const {pathToFileURL} = require('url');
|
|
3
4
|
const keys = require('all-object-keys');
|
|
4
5
|
const jessy = require('jessy');
|
|
5
6
|
const findUp = require('find-up');
|
|
@@ -17,7 +18,7 @@ async function getScripts() {
|
|
|
17
18
|
if (!path)
|
|
18
19
|
throw Error('.madrun.js is missing!');
|
|
19
20
|
|
|
20
|
-
return (await import(path)).default;
|
|
21
|
+
return (await import(pathToFileURL(path))).default;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
module.exports.cutEnv = async (names, opts = '', env, scripts) => {
|
|
@@ -119,6 +120,7 @@ const addEnv = (cmd, env) => {
|
|
|
119
120
|
return cmd;
|
|
120
121
|
|
|
121
122
|
const line = [];
|
|
123
|
+
|
|
122
124
|
for (const [key, value] of entries) {
|
|
123
125
|
line.push(`${key}=${value}`);
|
|
124
126
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "madrun",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.6",
|
|
4
4
|
"description": "CLI tool to run multiple npm-scripts in a madly comfortable way",
|
|
5
5
|
"main": "lib/madrun.js",
|
|
6
6
|
"type": "commonjs",
|
|
7
|
+
"commitType": "colon",
|
|
7
8
|
"scripts": {
|
|
8
9
|
"lint": "madrun lint",
|
|
9
10
|
"fresh:lint": "madrun fresh:lint",
|
|
@@ -35,7 +36,7 @@
|
|
|
35
36
|
"npm-scripts",
|
|
36
37
|
"tool",
|
|
37
38
|
"cli",
|
|
38
|
-
"
|
|
39
|
+
"command",
|
|
39
40
|
"task",
|
|
40
41
|
"parallel",
|
|
41
42
|
"serial",
|
|
@@ -62,7 +63,7 @@
|
|
|
62
63
|
"mapsome": "^1.0.0",
|
|
63
64
|
"montag": "^1.0.0",
|
|
64
65
|
"once": "^1.4.0",
|
|
65
|
-
"putout": "^
|
|
66
|
+
"putout": "^27.0.0",
|
|
66
67
|
"try-catch": "^3.0.0",
|
|
67
68
|
"try-to-catch": "^3.0.0",
|
|
68
69
|
"yargs-parser": "^21.0.0"
|
|
@@ -72,8 +73,8 @@
|
|
|
72
73
|
"c8": "^7.3.5",
|
|
73
74
|
"escover": "^2.0.1",
|
|
74
75
|
"eslint": "^8.0.0",
|
|
75
|
-
"eslint-plugin-
|
|
76
|
-
"eslint-plugin-putout": "^
|
|
76
|
+
"eslint-plugin-n": "^15.2.4",
|
|
77
|
+
"eslint-plugin-putout": "^16.0.0",
|
|
77
78
|
"mock-import": "^3.0.0",
|
|
78
79
|
"mock-require": "^3.0.3",
|
|
79
80
|
"nodemon": "^2.0.0",
|