@michijs/dev-server 0.7.22 → 0.7.23
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/README.md +0 -1
- package/bin/package.json +65 -0
- package/bin/{actions → src/actions}/generateAssets.d.ts +1 -0
- package/bin/{actions → src/actions}/generateAssets.js +5 -3
- package/bin/{types.d.ts → src/types.d.ts} +0 -1
- package/package.json +3 -3
- /package/bin/{actions → src/actions}/build.d.ts +0 -0
- /package/bin/{actions → src/actions}/build.js +0 -0
- /package/bin/{actions → src/actions}/dist.d.ts +0 -0
- /package/bin/{actions → src/actions}/dist.js +0 -0
- /package/bin/{actions → src/actions}/minifyAsset.d.ts +0 -0
- /package/bin/{actions → src/actions}/minifyAsset.js +0 -0
- /package/bin/{actions → src/actions}/start/transformers.d.ts +0 -0
- /package/bin/{actions → src/actions}/start/transformers.js +0 -0
- /package/bin/{actions → src/actions}/start.d.ts +0 -0
- /package/bin/{actions → src/actions}/start.js +0 -0
- /package/bin/{actions → src/actions}/testTsc.d.ts +0 -0
- /package/bin/{actions → src/actions}/testTsc.js +0 -0
- /package/bin/{classes → src/classes}/Timer.d.ts +0 -0
- /package/bin/{classes → src/classes}/Timer.js +0 -0
- /package/bin/{cli.d.ts → src/cli.d.ts} +0 -0
- /package/bin/{cli.js → src/cli.js} +0 -0
- /package/bin/{config → src/config}/config.d.ts +0 -0
- /package/bin/{config → src/config}/config.js +0 -0
- /package/bin/{config → src/config}/getIPAddress.d.ts +0 -0
- /package/bin/{config → src/config}/getIPAddress.js +0 -0
- /package/bin/{config → src/config}/plugins/counter.d.ts +0 -0
- /package/bin/{config → src/config}/plugins/counter.js +0 -0
- /package/bin/{config → src/config}/plugins/publicFolder.d.ts +0 -0
- /package/bin/{config → src/config}/plugins/publicFolder.js +0 -0
- /package/bin/{config → src/config}/public/client.d.ts +0 -0
- /package/bin/{config → src/config}/public/client.js +0 -0
- /package/bin/{config → src/config}/tsconfig.d.ts +0 -0
- /package/bin/{config → src/config}/tsconfig.js +0 -0
- /package/bin/{config → src/config}/userConfig.d.ts +0 -0
- /package/bin/{config → src/config}/userConfig.js +0 -0
- /package/bin/{constants.d.ts → src/constants.d.ts} +0 -0
- /package/bin/{constants.js → src/constants.js} +0 -0
- /package/bin/{index.d.ts → src/index.d.ts} +0 -0
- /package/bin/{index.js → src/index.js} +0 -0
- /package/bin/{types.js → src/types.js} +0 -0
- /package/bin/{utils → src/utils}/coloredString.d.ts +0 -0
- /package/bin/{utils → src/utils}/coloredString.js +0 -0
- /package/bin/{utils → src/utils}/copy.d.ts +0 -0
- /package/bin/{utils → src/utils}/copy.js +0 -0
- /package/bin/{utils → src/utils}/getAllFiles.d.ts +0 -0
- /package/bin/{utils → src/utils}/getAllFiles.js +0 -0
- /package/bin/{utils → src/utils}/getCurrentCommitSha.d.ts +0 -0
- /package/bin/{utils → src/utils}/getCurrentCommitSha.js +0 -0
- /package/bin/{utils → src/utils}/getHostURL.d.ts +0 -0
- /package/bin/{utils → src/utils}/getHostURL.js +0 -0
- /package/bin/{utils → src/utils}/getLocalURL.d.ts +0 -0
- /package/bin/{utils → src/utils}/getLocalURL.js +0 -0
- /package/bin/{utils → src/utils}/getPath.d.ts +0 -0
- /package/bin/{utils → src/utils}/getPath.js +0 -0
- /package/bin/{utils → src/utils}/globToRegex.d.ts +0 -0
- /package/bin/{utils → src/utils}/globToRegex.js +0 -0
- /package/bin/{utils → src/utils}/minify.d.ts +0 -0
- /package/bin/{utils → src/utils}/minify.js +0 -0
- /package/bin/{utils → src/utils}/pngToIco.d.ts +0 -0
- /package/bin/{utils → src/utils}/pngToIco.js +0 -0
- /package/bin/{utils → src/utils}/serviceWorkerTransformer.d.ts +0 -0
- /package/bin/{utils → src/utils}/serviceWorkerTransformer.js +0 -0
- /package/bin/{utils → src/utils}/syncDirs.d.ts +0 -0
- /package/bin/{utils → src/utils}/syncDirs.js +0 -0
package/README.md
CHANGED
|
@@ -3,7 +3,6 @@ Development server built on top of esbuild.
|
|
|
3
3
|
<!-- TODO: To generate feature-image require to install roboto -->
|
|
4
4
|
|
|
5
5
|
![npm][version] [![license][github-license]][github-license-url] ![npm][npm-downloads] ![npm][repo-size]
|
|
6
|
-
[](https://github.com/michijs/dev-server/actions/workflows/codeql-analysis.yml)
|
|
7
6
|
[](https://github.com/michijs/dev-server/actions/workflows/tests.yml)
|
|
8
7
|
|
|
9
8
|
## Main features
|
package/bin/package.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@michijs/dev-server",
|
|
3
|
+
"license": "MIT",
|
|
4
|
+
"version": "0.7.23",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/michijs/dev-server.git"
|
|
8
|
+
},
|
|
9
|
+
"main": "bin/index",
|
|
10
|
+
"exports": {
|
|
11
|
+
"types": "./bin/index.d.ts",
|
|
12
|
+
"default": "./bin/index.js",
|
|
13
|
+
"constants": "./bin/constants.js"
|
|
14
|
+
},
|
|
15
|
+
"bin": {
|
|
16
|
+
"michi-server": "bin/index.js"
|
|
17
|
+
},
|
|
18
|
+
"description": "Development server based on esbuild",
|
|
19
|
+
"files": [
|
|
20
|
+
"bin/",
|
|
21
|
+
"feature-image-template.svg"
|
|
22
|
+
],
|
|
23
|
+
"type": "module",
|
|
24
|
+
"baseUrl": "./src",
|
|
25
|
+
"scripts": {
|
|
26
|
+
"dist": "tsc",
|
|
27
|
+
"dist-w": "tsc -w",
|
|
28
|
+
"bun-link": "bun link --force",
|
|
29
|
+
"link": "bunx concurrently bun:dist-w bun:bun-link"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@michijs/tsconfig": "0.0.4",
|
|
33
|
+
"@types/node": "22.9.0",
|
|
34
|
+
"@types/yargs": "17.0.33",
|
|
35
|
+
"typescript": "5.6.3"
|
|
36
|
+
},
|
|
37
|
+
"keywords": [
|
|
38
|
+
"react",
|
|
39
|
+
"javascript",
|
|
40
|
+
"css",
|
|
41
|
+
"bundler",
|
|
42
|
+
"typescript",
|
|
43
|
+
"compiler",
|
|
44
|
+
"jsx",
|
|
45
|
+
"commonjs",
|
|
46
|
+
"minifier",
|
|
47
|
+
"tsx",
|
|
48
|
+
"esm",
|
|
49
|
+
"server",
|
|
50
|
+
"development"
|
|
51
|
+
],
|
|
52
|
+
"engines": {
|
|
53
|
+
"node": ">=14.16"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"colorthief": "2.6.0",
|
|
57
|
+
"@types/web-app-manifest": "1.0.8",
|
|
58
|
+
"esbuild": "0.24.0",
|
|
59
|
+
"node-watch": "0.7.4",
|
|
60
|
+
"open": "10.1.0",
|
|
61
|
+
"playwright-core": "1.49.0",
|
|
62
|
+
"sharp": "0.33.5",
|
|
63
|
+
"yargs": "17.7.2"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare function installPlaywright(): Promise<void>;
|
|
1
2
|
export declare function generateFeatureImage(src: string): Promise<void>;
|
|
2
3
|
export declare function generateScreenshots(): Promise<Buffer[][]>;
|
|
3
4
|
export declare function generateAssets(callback: () => void, src: string): Promise<void>;
|
|
@@ -9,12 +9,14 @@ import { assetsSizes } from "../constants.js";
|
|
|
9
9
|
import { chromium } from "playwright-core";
|
|
10
10
|
import { exec } from "child_process";
|
|
11
11
|
import { getColor } from "colorthief";
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
import packagejson from "../../package.json";
|
|
13
|
+
export async function installPlaywright() {
|
|
14
|
+
const playwrightVersion = `playwright@${packagejson.dependencies["playwright-core"]}`;
|
|
15
|
+
console.log(`Installing ${playwrightVersion}...`);
|
|
14
16
|
return new Promise((resolve, reject) => {
|
|
15
17
|
const runners = ["bunx", "npx"];
|
|
16
18
|
exec(runners
|
|
17
|
-
.map((x) => `${x}
|
|
19
|
+
.map((x) => `${x} ${playwrightVersion} install chromium --with-deps`)
|
|
18
20
|
.join(" || "), (error, stdout, stderr) => {
|
|
19
21
|
if (error) {
|
|
20
22
|
console.error(`Error during Playwright installation: ${error.message}`);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@michijs/dev-server",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.23",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/michijs/dev-server.git"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@michijs/tsconfig": "0.0.4",
|
|
33
|
-
"@types/node": "22.
|
|
33
|
+
"@types/node": "22.9.0",
|
|
34
34
|
"@types/yargs": "17.0.33",
|
|
35
35
|
"typescript": "5.6.3"
|
|
36
36
|
},
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"esbuild": "0.24.0",
|
|
59
59
|
"node-watch": "0.7.4",
|
|
60
60
|
"open": "10.1.0",
|
|
61
|
-
"playwright-core": "1.
|
|
61
|
+
"playwright-core": "1.49.0",
|
|
62
62
|
"sharp": "0.33.5",
|
|
63
63
|
"yargs": "17.7.2"
|
|
64
64
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|