@modern-js/plugin 1.3.3 → 1.3.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/CHANGELOG.md +7 -0
- package/dist/js/modern/farrow-pipeline/asyncHooks.node.js +74 -0
- package/dist/js/modern/farrow-pipeline/asyncHooksInterface.js +12 -0
- package/dist/js/modern/farrow-pipeline/context.js +99 -0
- package/dist/js/modern/farrow-pipeline/counter.js +18 -0
- package/dist/js/modern/farrow-pipeline/hook.js +42 -0
- package/dist/js/modern/farrow-pipeline/index.js +19 -0
- package/dist/js/modern/farrow-pipeline/pipeline.js +93 -0
- package/dist/js/modern/index.js +1 -1
- package/dist/js/modern/manager/async.js +1 -1
- package/dist/js/modern/manager/runner.js +1 -1
- package/dist/js/modern/manager/sync.js +1 -1
- package/dist/js/modern/waterfall/async.js +2 -4
- package/dist/js/modern/waterfall/sync.js +2 -4
- package/dist/js/modern/workflow/async.js +1 -1
- package/dist/js/modern/workflow/parallel.js +1 -1
- package/dist/js/modern/workflow/sync.js +1 -1
- package/dist/js/node/farrow-pipeline/asyncHooks.node.js +93 -0
- package/dist/js/node/farrow-pipeline/asyncHooksInterface.js +26 -0
- package/dist/js/node/farrow-pipeline/context.js +120 -0
- package/dist/js/node/farrow-pipeline/counter.js +27 -0
- package/dist/js/node/farrow-pipeline/hook.js +52 -0
- package/dist/js/node/farrow-pipeline/index.js +18 -0
- package/dist/js/node/farrow-pipeline/pipeline.js +129 -0
- package/dist/js/node/index.js +1 -1
- package/dist/js/node/manager/async.js +1 -1
- package/dist/js/node/manager/runner.js +1 -1
- package/dist/js/node/manager/sync.js +1 -1
- package/dist/js/node/waterfall/async.js +2 -4
- package/dist/js/node/waterfall/sync.js +2 -4
- package/dist/js/node/workflow/async.js +1 -1
- package/dist/js/node/workflow/parallel.js +1 -1
- package/dist/js/node/workflow/sync.js +1 -1
- package/dist/js/treeshaking/farrow-pipeline/asyncHooks.node.js +74 -0
- package/dist/js/treeshaking/farrow-pipeline/asyncHooksInterface.js +12 -0
- package/dist/js/treeshaking/farrow-pipeline/context.js +103 -0
- package/dist/js/treeshaking/farrow-pipeline/counter.js +23 -0
- package/dist/js/treeshaking/farrow-pipeline/hook.js +46 -0
- package/dist/js/treeshaking/farrow-pipeline/index.js +19 -0
- package/dist/js/treeshaking/farrow-pipeline/pipeline.js +100 -0
- package/dist/js/treeshaking/index.js +1 -1
- package/dist/js/treeshaking/manager/async.js +5 -26
- package/dist/js/treeshaking/manager/runner.js +1 -1
- package/dist/js/treeshaking/manager/sync.js +5 -23
- package/dist/js/treeshaking/waterfall/async.js +6 -27
- package/dist/js/treeshaking/waterfall/sync.js +5 -22
- package/dist/js/treeshaking/workflow/async.js +6 -26
- package/dist/js/treeshaking/workflow/parallel.js +5 -24
- package/dist/js/treeshaking/workflow/sync.js +5 -24
- package/dist/types/farrow-pipeline/asyncHooks.node.d.ts +2 -0
- package/dist/types/farrow-pipeline/asyncHooksInterface.d.ts +19 -0
- package/dist/types/farrow-pipeline/context.d.ts +28 -0
- package/dist/types/farrow-pipeline/counter.d.ts +11 -0
- package/dist/types/farrow-pipeline/hook.d.ts +9 -0
- package/dist/types/farrow-pipeline/index.d.ts +19 -0
- package/dist/types/farrow-pipeline/pipeline.d.ts +38 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/manager/runner.d.ts +1 -1
- package/dist/types/manager/sync.d.ts +1 -1
- package/dist/types/manager/types.d.ts +1 -1
- package/dist/types/waterfall/async.d.ts +1 -1
- package/dist/types/waterfall/sync.d.ts +1 -1
- package/dist/types/workflow/async.d.ts +1 -1
- package/dist/types/workflow/sync.d.ts +1 -1
- package/package.json +36 -8
- package/.eslintrc.js +0 -8
- package/jest.config.js +0 -7
- package/modern.config.js +0 -2
- package/node.d.ts +0 -1
- package/node.js +0 -1
- package/tsconfig.json +0 -14
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pipeline, Container, MaybeAsync, Middleware, AsyncPipeline } from 'farrow-pipeline';
|
1
|
+
import type { Pipeline, Container, MaybeAsync, Middleware, AsyncPipeline } from '../farrow-pipeline';
|
2
2
|
import type { Brook, Waterfall, AsyncBrook, AsyncWaterfall } from '../waterfall';
|
3
3
|
import type { Worker, Workflow, AsyncWorker, AsyncWorkflow, ParallelWorkflow } from '../workflow';
|
4
4
|
/** All hook types. */
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { MaybeAsync, Container } from 'farrow-pipeline';
|
1
|
+
import { MaybeAsync, Container } from '../farrow-pipeline';
|
2
2
|
declare const ASYNC_WATERFALL_SYMBOL: unique symbol;
|
3
3
|
export declare type AsyncBrook<I = unknown> = (I: I) => MaybeAsync<I>;
|
4
4
|
export declare type AsyncBrookInput<I = unknown> = AsyncBrook<I> | {
|
package/package.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "1.3.
|
14
|
+
"version": "1.3.4",
|
15
15
|
"jsnext:source": "./src/index.ts",
|
16
16
|
"types": "./dist/types/index.d.ts",
|
17
17
|
"main": "./dist/js/node/index.js",
|
@@ -27,16 +27,22 @@
|
|
27
27
|
"default": "./dist/js/treeshaking/index.js"
|
28
28
|
},
|
29
29
|
"./node": {
|
30
|
-
"jsnext:source": "./node.
|
31
|
-
"default": "./node.js"
|
30
|
+
"jsnext:source": "./src/farrow-pipeline/asyncHooks.node.ts",
|
31
|
+
"default": "./dist/js/node/farrow-pipeline/asyncHooks.node.js"
|
32
|
+
}
|
33
|
+
},
|
34
|
+
"typesVersions": {
|
35
|
+
"*": {
|
36
|
+
"node": [
|
37
|
+
"./dist/types/farrow-pipeline/asyncHooks.node.d.ts"
|
38
|
+
]
|
32
39
|
}
|
33
40
|
},
|
34
41
|
"dependencies": {
|
35
|
-
"@babel/runtime": "^7"
|
36
|
-
"farrow-pipeline": "^1.10.6"
|
42
|
+
"@babel/runtime": "^7"
|
37
43
|
},
|
38
44
|
"devDependencies": {
|
39
|
-
"@types/jest": "^
|
45
|
+
"@types/jest": "^27",
|
40
46
|
"@types/node": "^14",
|
41
47
|
"typescript": "^4",
|
42
48
|
"@scripts/build": "0.0.0",
|
@@ -48,11 +54,33 @@
|
|
48
54
|
"registry": "https://registry.npmjs.org/",
|
49
55
|
"access": "public"
|
50
56
|
},
|
57
|
+
"wireit": {
|
58
|
+
"build": {
|
59
|
+
"command": "modern build",
|
60
|
+
"files": [
|
61
|
+
"src/**/*",
|
62
|
+
"tsconfig.json",
|
63
|
+
"package.json"
|
64
|
+
],
|
65
|
+
"output": [
|
66
|
+
"dist/**/*"
|
67
|
+
]
|
68
|
+
},
|
69
|
+
"test": {
|
70
|
+
"command": "jest --passWithNoTests",
|
71
|
+
"files": [
|
72
|
+
"src/**/*",
|
73
|
+
"tsconfig.json",
|
74
|
+
"package.json"
|
75
|
+
],
|
76
|
+
"output": []
|
77
|
+
}
|
78
|
+
},
|
51
79
|
"scripts": {
|
52
80
|
"new": "modern new",
|
53
81
|
"dev": "modern build --watch",
|
54
|
-
"build": "
|
55
|
-
"test": "
|
82
|
+
"build": "wireit",
|
83
|
+
"test": "wireit"
|
56
84
|
},
|
57
85
|
"readme": "\n<p align=\"center\">\n <a href=\"https://modernjs.dev\" target=\"blank\"><img src=\"https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs-cover.png\" width=\"300\" alt=\"Modern.js Logo\" /></a>\n</p>\n<p align=\"center\">\n现代 Web 工程体系\n <br/>\n <a href=\"https://modernjs.dev\" target=\"blank\">\n modernjs.dev\n </a>\n</p>\n<p align=\"center\">\n The meta-framework suite designed from scratch for frontend-focused modern web development\n</p>\n\n# Introduction\n\n> The doc site ([modernjs.dev](https://modernjs.dev)) and articles are only available in Chinese for now, we are planning to add English versions soon.\n\n- [Modern.js: Hello, World!](https://zhuanlan.zhihu.com/p/426707646)\n\n## Getting Started\n\n- [Quick Start](https://modernjs.dev/docs/start)\n- [Guides](https://modernjs.dev/docs/guides)\n- [API References](https://modernjs.dev/docs/apis)\n\n## Contributing\n\n- [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md)\n"
|
58
86
|
}
|
package/.eslintrc.js
DELETED
package/jest.config.js
DELETED
package/modern.config.js
DELETED
package/node.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from 'farrow-pipeline/asyncHooks.node';
|
package/node.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
module.exports = require('farrow-pipeline/asyncHooks.node');
|
package/tsconfig.json
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"extends": "@modern-js/tsconfig/base",
|
3
|
-
"compilerOptions": {
|
4
|
-
"declaration": false,
|
5
|
-
"jsx": "preserve",
|
6
|
-
"baseUrl": "./",
|
7
|
-
"isolatedModules": true,
|
8
|
-
"target": "ES5",
|
9
|
-
"esModuleInterop": true,
|
10
|
-
"paths": {},
|
11
|
-
"types": ["node", "jest"]
|
12
|
-
},
|
13
|
-
"include": ["src"]
|
14
|
-
}
|