@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.
Files changed (65) hide show
  1. package/README.md +0 -1
  2. package/bin/package.json +65 -0
  3. package/bin/{actions → src/actions}/generateAssets.d.ts +1 -0
  4. package/bin/{actions → src/actions}/generateAssets.js +5 -3
  5. package/bin/{types.d.ts → src/types.d.ts} +0 -1
  6. package/package.json +3 -3
  7. /package/bin/{actions → src/actions}/build.d.ts +0 -0
  8. /package/bin/{actions → src/actions}/build.js +0 -0
  9. /package/bin/{actions → src/actions}/dist.d.ts +0 -0
  10. /package/bin/{actions → src/actions}/dist.js +0 -0
  11. /package/bin/{actions → src/actions}/minifyAsset.d.ts +0 -0
  12. /package/bin/{actions → src/actions}/minifyAsset.js +0 -0
  13. /package/bin/{actions → src/actions}/start/transformers.d.ts +0 -0
  14. /package/bin/{actions → src/actions}/start/transformers.js +0 -0
  15. /package/bin/{actions → src/actions}/start.d.ts +0 -0
  16. /package/bin/{actions → src/actions}/start.js +0 -0
  17. /package/bin/{actions → src/actions}/testTsc.d.ts +0 -0
  18. /package/bin/{actions → src/actions}/testTsc.js +0 -0
  19. /package/bin/{classes → src/classes}/Timer.d.ts +0 -0
  20. /package/bin/{classes → src/classes}/Timer.js +0 -0
  21. /package/bin/{cli.d.ts → src/cli.d.ts} +0 -0
  22. /package/bin/{cli.js → src/cli.js} +0 -0
  23. /package/bin/{config → src/config}/config.d.ts +0 -0
  24. /package/bin/{config → src/config}/config.js +0 -0
  25. /package/bin/{config → src/config}/getIPAddress.d.ts +0 -0
  26. /package/bin/{config → src/config}/getIPAddress.js +0 -0
  27. /package/bin/{config → src/config}/plugins/counter.d.ts +0 -0
  28. /package/bin/{config → src/config}/plugins/counter.js +0 -0
  29. /package/bin/{config → src/config}/plugins/publicFolder.d.ts +0 -0
  30. /package/bin/{config → src/config}/plugins/publicFolder.js +0 -0
  31. /package/bin/{config → src/config}/public/client.d.ts +0 -0
  32. /package/bin/{config → src/config}/public/client.js +0 -0
  33. /package/bin/{config → src/config}/tsconfig.d.ts +0 -0
  34. /package/bin/{config → src/config}/tsconfig.js +0 -0
  35. /package/bin/{config → src/config}/userConfig.d.ts +0 -0
  36. /package/bin/{config → src/config}/userConfig.js +0 -0
  37. /package/bin/{constants.d.ts → src/constants.d.ts} +0 -0
  38. /package/bin/{constants.js → src/constants.js} +0 -0
  39. /package/bin/{index.d.ts → src/index.d.ts} +0 -0
  40. /package/bin/{index.js → src/index.js} +0 -0
  41. /package/bin/{types.js → src/types.js} +0 -0
  42. /package/bin/{utils → src/utils}/coloredString.d.ts +0 -0
  43. /package/bin/{utils → src/utils}/coloredString.js +0 -0
  44. /package/bin/{utils → src/utils}/copy.d.ts +0 -0
  45. /package/bin/{utils → src/utils}/copy.js +0 -0
  46. /package/bin/{utils → src/utils}/getAllFiles.d.ts +0 -0
  47. /package/bin/{utils → src/utils}/getAllFiles.js +0 -0
  48. /package/bin/{utils → src/utils}/getCurrentCommitSha.d.ts +0 -0
  49. /package/bin/{utils → src/utils}/getCurrentCommitSha.js +0 -0
  50. /package/bin/{utils → src/utils}/getHostURL.d.ts +0 -0
  51. /package/bin/{utils → src/utils}/getHostURL.js +0 -0
  52. /package/bin/{utils → src/utils}/getLocalURL.d.ts +0 -0
  53. /package/bin/{utils → src/utils}/getLocalURL.js +0 -0
  54. /package/bin/{utils → src/utils}/getPath.d.ts +0 -0
  55. /package/bin/{utils → src/utils}/getPath.js +0 -0
  56. /package/bin/{utils → src/utils}/globToRegex.d.ts +0 -0
  57. /package/bin/{utils → src/utils}/globToRegex.js +0 -0
  58. /package/bin/{utils → src/utils}/minify.d.ts +0 -0
  59. /package/bin/{utils → src/utils}/minify.js +0 -0
  60. /package/bin/{utils → src/utils}/pngToIco.d.ts +0 -0
  61. /package/bin/{utils → src/utils}/pngToIco.js +0 -0
  62. /package/bin/{utils → src/utils}/serviceWorkerTransformer.d.ts +0 -0
  63. /package/bin/{utils → src/utils}/serviceWorkerTransformer.js +0 -0
  64. /package/bin/{utils → src/utils}/syncDirs.d.ts +0 -0
  65. /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
- [![CodeQL](https://github.com/michijs/dev-server/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/michijs/dev-server/actions/workflows/codeql-analysis.yml)
7
6
  [![Tests](https://github.com/michijs/dev-server/actions/workflows/tests.yml/badge.svg)](https://github.com/michijs/dev-server/actions/workflows/tests.yml)
8
7
 
9
8
  ## Main features
@@ -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
- async function installPlaywright() {
13
- console.log("Installing Playwright...");
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} playwright install chromium --with-deps`)
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}`);
@@ -149,7 +149,6 @@ export interface ServerWebAppManifest extends WebAppManifest {
149
149
  export interface FileHandler {
150
150
  action: string;
151
151
  name: string;
152
- icons?: ImageResource[];
153
152
  accept: Record<string, Set<string> | string[]>;
154
153
  }
155
154
  export interface Config {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@michijs/dev-server",
3
3
  "license": "MIT",
4
- "version": "0.7.22",
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.8.7",
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.48.2",
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