@modern-js/plugin-devtools 0.0.0-next-1691158045699
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 +12 -0
- package/LICENSE +21 -0
- package/README.md +26 -0
- package/dist/cjs/cli.js +54 -0
- package/dist/cjs/index.js +21 -0
- package/dist/cjs/types.js +0 -0
- package/dist/cjs/utils.js +0 -0
- package/dist/esm/cli.js +46 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/types.js +0 -0
- package/dist/esm/utils.js +0 -0
- package/dist/esm-node/cli.js +35 -0
- package/dist/esm-node/index.js +3 -0
- package/dist/esm-node/types.js +0 -0
- package/dist/esm-node/utils.js +0 -0
- package/dist/types/cli.d.ts +7 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/types.d.ts +0 -0
- package/dist/types/utils.d.ts +0 -0
- package/package.json +76 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# @modern-js/plugin-devtools
|
|
2
|
+
|
|
3
|
+
## 0.0.0-next-1691158045699
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [276ace366]
|
|
8
|
+
- Updated dependencies [855a61ecf]
|
|
9
|
+
- @modern-js/runtime@0.0.0-next-1691158045699
|
|
10
|
+
- @modern-js/devtools-client@0.0.0-next-1691158045699
|
|
11
|
+
- @modern-js/devtools-mount@0.0.0-next-1691158045699
|
|
12
|
+
- @modern-js/utils@0.0.0-next-1691158045699
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Modern.js
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<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>
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<h1 align="center">Modern.js</h1>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
A Progressive React Framework for modern web development.
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
## Getting Started
|
|
12
|
+
|
|
13
|
+
Please follow [Quick Start](https://modernjs.dev/en/guides/get-started/quick-start) to get started with Modern.js.
|
|
14
|
+
|
|
15
|
+
## Documentation
|
|
16
|
+
|
|
17
|
+
- [English Documentation](https://modernjs.dev/en/)
|
|
18
|
+
- [中文文档](https://modernjs.dev)
|
|
19
|
+
|
|
20
|
+
## Contributing
|
|
21
|
+
|
|
22
|
+
Please read the [Contributing Guide](https://github.com/web-infra-dev/modern.js/blob/main/CONTRIBUTING.md).
|
|
23
|
+
|
|
24
|
+
## License
|
|
25
|
+
|
|
26
|
+
Modern.js is [MIT licensed](https://github.com/web-infra-dev/modern.js/blob/main/LICENSE).
|
package/dist/cjs/cli.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
Object.defineProperty(target, name, {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: all[name]
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
_export(exports, {
|
|
13
|
+
devtoolsPlugin: function() {
|
|
14
|
+
return devtoolsPlugin;
|
|
15
|
+
},
|
|
16
|
+
default: function() {
|
|
17
|
+
return _default;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
const devtoolsPlugin = () => ({
|
|
21
|
+
name: "@modern-js/plugin-devtools",
|
|
22
|
+
usePlugins: [],
|
|
23
|
+
setup: async (_api) => {
|
|
24
|
+
return {
|
|
25
|
+
// prepare() {},
|
|
26
|
+
validateSchema() {
|
|
27
|
+
return [
|
|
28
|
+
{
|
|
29
|
+
target: "tools.devtools",
|
|
30
|
+
schema: {
|
|
31
|
+
typeof: [
|
|
32
|
+
"boolean"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
];
|
|
37
|
+
},
|
|
38
|
+
config() {
|
|
39
|
+
const setupDevtoolsScript = require.resolve("@modern-js/devtools-mount");
|
|
40
|
+
return {
|
|
41
|
+
source: {
|
|
42
|
+
preEntry: [
|
|
43
|
+
`data:application/javascript,
|
|
44
|
+
import { mountDevTools } from "${setupDevtoolsScript}";
|
|
45
|
+
mountDevTools();
|
|
46
|
+
`.replace(/\n */g, "")
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
const _default = devtoolsPlugin;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
Object.defineProperty(target, name, {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: all[name]
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
_export(exports, {
|
|
13
|
+
devtoolsPlugin: function() {
|
|
14
|
+
return _cli.devtoolsPlugin;
|
|
15
|
+
},
|
|
16
|
+
default: function() {
|
|
17
|
+
return _default;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
const _cli = require("./cli");
|
|
21
|
+
const _default = _cli.devtoolsPlugin;
|
|
File without changes
|
|
File without changes
|
package/dist/esm/cli.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator";
|
|
2
|
+
import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
|
|
3
|
+
export var devtoolsPlugin = function() {
|
|
4
|
+
return {
|
|
5
|
+
name: "@modern-js/plugin-devtools",
|
|
6
|
+
usePlugins: [],
|
|
7
|
+
setup: function() {
|
|
8
|
+
var _ref = _async_to_generator(function(_api) {
|
|
9
|
+
return _ts_generator(this, function(_state) {
|
|
10
|
+
return [
|
|
11
|
+
2,
|
|
12
|
+
{
|
|
13
|
+
// prepare() {},
|
|
14
|
+
validateSchema: function validateSchema() {
|
|
15
|
+
return [
|
|
16
|
+
{
|
|
17
|
+
target: "tools.devtools",
|
|
18
|
+
schema: {
|
|
19
|
+
typeof: [
|
|
20
|
+
"boolean"
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
];
|
|
25
|
+
},
|
|
26
|
+
config: function config() {
|
|
27
|
+
var setupDevtoolsScript = require.resolve("@modern-js/devtools-mount");
|
|
28
|
+
return {
|
|
29
|
+
source: {
|
|
30
|
+
preEntry: [
|
|
31
|
+
'data:application/javascript,\n import { mountDevTools } from "'.concat(setupDevtoolsScript, '";\n mountDevTools();\n ').replace(/\n */g, "")
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
];
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
return function(_api) {
|
|
41
|
+
return _ref.apply(this, arguments);
|
|
42
|
+
};
|
|
43
|
+
}()
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export default devtoolsPlugin;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export const devtoolsPlugin = () => ({
|
|
2
|
+
name: "@modern-js/plugin-devtools",
|
|
3
|
+
usePlugins: [],
|
|
4
|
+
setup: async (_api) => {
|
|
5
|
+
return {
|
|
6
|
+
// prepare() {},
|
|
7
|
+
validateSchema() {
|
|
8
|
+
return [
|
|
9
|
+
{
|
|
10
|
+
target: "tools.devtools",
|
|
11
|
+
schema: {
|
|
12
|
+
typeof: [
|
|
13
|
+
"boolean"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
];
|
|
18
|
+
},
|
|
19
|
+
config() {
|
|
20
|
+
const setupDevtoolsScript = require.resolve("@modern-js/devtools-mount");
|
|
21
|
+
return {
|
|
22
|
+
source: {
|
|
23
|
+
preEntry: [
|
|
24
|
+
`data:application/javascript,
|
|
25
|
+
import { mountDevTools } from "${setupDevtoolsScript}";
|
|
26
|
+
mountDevTools();
|
|
27
|
+
`.replace(/\n */g, "")
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
export default devtoolsPlugin;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@modern-js/plugin-devtools",
|
|
3
|
+
"description": "A Progressive React Framework for modern web development.",
|
|
4
|
+
"homepage": "https://modernjs.dev",
|
|
5
|
+
"bugs": "https://github.com/web-infra-dev/modern.js/issues",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/web-infra-dev/modern.js",
|
|
9
|
+
"directory": "packages/cli/plugin-tailwind"
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"react",
|
|
14
|
+
"framework",
|
|
15
|
+
"modern",
|
|
16
|
+
"modern.js"
|
|
17
|
+
],
|
|
18
|
+
"version": "0.0.0-next-1691158045699",
|
|
19
|
+
"jsnext:source": "./src/index.ts",
|
|
20
|
+
"types": "./dist/types/index.d.ts",
|
|
21
|
+
"main": "./dist/cjs/index.js",
|
|
22
|
+
"module": "./dist/esm/index.js",
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"node": {
|
|
26
|
+
"jsnext:source": "./src/index.ts",
|
|
27
|
+
"require": "./dist/cjs/index.js"
|
|
28
|
+
},
|
|
29
|
+
"default": "./dist/cjs/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./cli": {
|
|
32
|
+
"jsnext:source": "./src/cli.ts",
|
|
33
|
+
"default": "./dist/cjs/cli.js"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"typesVersions": {
|
|
37
|
+
"*": {}
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@modern-js/devtools-client": "0.0.0-next-1691158045699",
|
|
41
|
+
"@modern-js/devtools-mount": "0.0.0-next-1691158045699",
|
|
42
|
+
"@modern-js/utils": "0.0.0-next-1691158045699"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@swc/helpers": "0.5.1",
|
|
46
|
+
"@types/node": "^14",
|
|
47
|
+
"type-fest": "^4.1.0",
|
|
48
|
+
"typescript": "^5",
|
|
49
|
+
"@modern-js/app-tools": "0.0.0-next-1691158045699",
|
|
50
|
+
"@modern-js/core": "0.0.0-next-1691158045699",
|
|
51
|
+
"@modern-js/module-tools": "0.0.0-next-1691158045699",
|
|
52
|
+
"@modern-js/runtime": "0.0.0-next-1691158045699",
|
|
53
|
+
"@modern-js/types": "0.0.0-next-1691158045699",
|
|
54
|
+
"@scripts/build": "0.0.0-next-1691158045699"
|
|
55
|
+
},
|
|
56
|
+
"peerDependencies": {
|
|
57
|
+
"@modern-js/runtime": "0.0.0-next-1691158045699"
|
|
58
|
+
},
|
|
59
|
+
"peerDependenciesMeta": {
|
|
60
|
+
"@modern-js/runtime": {
|
|
61
|
+
"optional": true
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"sideEffects": false,
|
|
65
|
+
"publishConfig": {
|
|
66
|
+
"registry": "https://registry.npmjs.org/",
|
|
67
|
+
"access": "public",
|
|
68
|
+
"provenance": true
|
|
69
|
+
},
|
|
70
|
+
"scripts": {
|
|
71
|
+
"new": "modern-lib new",
|
|
72
|
+
"dev": "modern-lib build --watch --no-dts",
|
|
73
|
+
"build": "modern-lib build",
|
|
74
|
+
"test": "jest --passWithNoTests"
|
|
75
|
+
}
|
|
76
|
+
}
|