madrun 8.10.0 → 9.0.1
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/ChangeLog +26 -0
- package/README.md +16 -12
- package/bin/madrun.mjs +3 -1
- package/package.json +9 -9
package/ChangeLog
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
2022.03.29, v9.0.1
|
|
2
|
+
|
|
3
|
+
fix:
|
|
4
|
+
- chore(actions) add auto fix
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
feature:
|
|
8
|
+
- (package) @putout/formatter-dump v4.0.0
|
|
9
|
+
- (package) eslint-plugin-putout v14.0.1
|
|
10
|
+
- (package) escover v2.0.1
|
|
11
|
+
- (package) mock-import v3.0.0
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
2022.02.17, v9.0.0
|
|
15
|
+
|
|
16
|
+
feature:
|
|
17
|
+
- (package) supertape v7.0.0
|
|
18
|
+
- (package) @putout/plugin-madrun v13.0.0
|
|
19
|
+
- (package) putout v25.0.0
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
2022.01.14, v8.10.1
|
|
23
|
+
|
|
24
|
+
fix:
|
|
25
|
+
- (madrun) windows support
|
|
26
|
+
|
|
1
27
|
2022.01.14, v8.10.0
|
|
2
28
|
|
|
3
29
|
feature:
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Madrun [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]
|
|
1
|
+
# 🏎 Madrun [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]
|
|
2
2
|
|
|
3
3
|
[NPMURL]: https://npmjs.org/package/madrun "npm"
|
|
4
4
|
[NPMIMGURL]: https://img.shields.io/npm/v/madrun.svg?style=flat
|
|
@@ -19,19 +19,23 @@ npm i madrun -g
|
|
|
19
19
|
|
|
20
20
|
# Usage
|
|
21
21
|
|
|
22
|
-
First thing you should do is
|
|
22
|
+
First thing you should do is:
|
|
23
|
+
|
|
24
|
+
- ✅ create `.madrun.js` file will all scripts written in **JavaScript**;
|
|
25
|
+
- ✅ update `package.json` scripts to use **madrun**;
|
|
26
|
+
|
|
23
27
|
This can be done using:
|
|
24
28
|
|
|
25
29
|
```sh
|
|
26
30
|
madrun --init
|
|
27
31
|
```
|
|
28
32
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
When updating `madrun script names`, run `madrun --init` again, to update `package.json`, so you can use:
|
|
33
|
+
When you create new script, you can run it with: `madrun lint test`.
|
|
34
|
+
Run `madrun --init` again, to update `package.json`, so you can use:
|
|
32
35
|
|
|
33
36
|
```sh
|
|
34
|
-
npm run
|
|
37
|
+
npm run lint
|
|
38
|
+
npm test
|
|
35
39
|
```
|
|
36
40
|
|
|
37
41
|
Then you can run `madrun` without args to see list of a scripts. Or run:
|
|
@@ -148,18 +152,18 @@ export default {
|
|
|
148
152
|
};
|
|
149
153
|
```
|
|
150
154
|
|
|
151
|
-
Now you can call any of listed scripts with help of
|
|
155
|
+
Now you can call any of listed scripts with help of 🏎 **Madrun**:
|
|
152
156
|
|
|
153
157
|
```sh
|
|
154
|
-
|
|
155
|
-
> putout
|
|
158
|
+
madrun lint
|
|
159
|
+
> putout .
|
|
156
160
|
```
|
|
157
161
|
|
|
158
|
-
For
|
|
162
|
+
For **series run** you can use:
|
|
159
163
|
|
|
160
164
|
```sh
|
|
161
|
-
|
|
162
|
-
>
|
|
165
|
+
madrun lint:*
|
|
166
|
+
> CI=1 putout . && putout .
|
|
163
167
|
```
|
|
164
168
|
|
|
165
169
|
## Related
|
package/bin/madrun.mjs
CHANGED
|
@@ -151,6 +151,7 @@ function getOptions(args) {
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
async function getScript() {
|
|
154
|
+
const {pathToFileURL} = require('url');
|
|
154
155
|
const supported = require('../supported.json');
|
|
155
156
|
const path = findUp.sync(supported);
|
|
156
157
|
|
|
@@ -159,7 +160,8 @@ async function getScript() {
|
|
|
159
160
|
process.exit(1);
|
|
160
161
|
}
|
|
161
162
|
|
|
162
|
-
|
|
163
|
+
// always convert path to url on windows
|
|
164
|
+
const esm = await import(pathToFileURL(path));
|
|
163
165
|
|
|
164
166
|
return [
|
|
165
167
|
dirname(path),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "madrun",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.1",
|
|
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",
|
|
@@ -51,18 +51,18 @@
|
|
|
51
51
|
"homepage": "https://github.com/coderaiser/madrun",
|
|
52
52
|
"license": "MIT",
|
|
53
53
|
"engines": {
|
|
54
|
-
"node": ">=
|
|
54
|
+
"node": ">=16"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@putout/formatter-dump": "^
|
|
58
|
-
"@putout/plugin-madrun": "^
|
|
57
|
+
"@putout/formatter-dump": "^4.0.0",
|
|
58
|
+
"@putout/plugin-madrun": "^13.0.0",
|
|
59
59
|
"all-object-keys": "^2.0.0",
|
|
60
60
|
"find-up": "^5.0.0",
|
|
61
61
|
"jessy": "^3.0.0",
|
|
62
62
|
"mapsome": "^1.0.0",
|
|
63
63
|
"montag": "^1.0.0",
|
|
64
64
|
"once": "^1.4.0",
|
|
65
|
-
"putout": "^
|
|
65
|
+
"putout": "^25.0.0",
|
|
66
66
|
"try-catch": "^3.0.0",
|
|
67
67
|
"try-to-catch": "^3.0.0",
|
|
68
68
|
"yargs-parser": "^21.0.0"
|
|
@@ -71,16 +71,16 @@
|
|
|
71
71
|
"@cloudcmd/stub": "^3.1.0",
|
|
72
72
|
"@putout/formatter-json": "^2.0.0",
|
|
73
73
|
"c8": "^7.3.5",
|
|
74
|
-
"escover": "^
|
|
74
|
+
"escover": "^2.0.1",
|
|
75
75
|
"eslint": "^8.0.0",
|
|
76
76
|
"eslint-plugin-node": "^11.0.0",
|
|
77
|
-
"eslint-plugin-putout": "^
|
|
78
|
-
"mock-import": "^
|
|
77
|
+
"eslint-plugin-putout": "^14.0.1",
|
|
78
|
+
"mock-import": "^3.0.0",
|
|
79
79
|
"mock-require": "^3.0.3",
|
|
80
80
|
"nodemon": "^2.0.0",
|
|
81
81
|
"nyc": "^15.0.0",
|
|
82
82
|
"runsome": "^1.0.0",
|
|
83
|
-
"supertape": "^
|
|
83
|
+
"supertape": "^7.0.0"
|
|
84
84
|
},
|
|
85
85
|
"publishConfig": {
|
|
86
86
|
"access": "public"
|