pixel-mirror 0.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/package.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "pixel-mirror",
3
+ "version": "0.0.1",
4
+ "description": "Pixel Mirror helps developers achieve pixel-perfect UIs by easily overlaying design mockups.",
5
+ "type": "module",
6
+ "exports": {
7
+ ".": "./dist/index.js",
8
+ "./vite": "./plugins/vite.js"
9
+ },
10
+ "keywords": [
11
+ "solid",
12
+ "vite",
13
+ "design"
14
+ ],
15
+ "homepage": "https://github.com/p233-studio/pixel-mirror#readme",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/p233-studio/pixel-mirror.git"
19
+ },
20
+ "bugs": {
21
+ "url": "https://github.com/p233-studio/pixel-mirror/issues"
22
+ },
23
+ "devDependencies": {
24
+ "clsx": "^2.1.1",
25
+ "cssnano": "^7.0.6",
26
+ "cssnano-preset-advanced": "^7.0.6",
27
+ "eslint": "^9.17.0",
28
+ "eslint-config-prettier": "^9.1.0",
29
+ "eslint-plugin-prettier": "^5.2.1",
30
+ "eslint-plugin-solid": "^0.14.5",
31
+ "husky": "^9.1.7",
32
+ "lint-staged": "^15.2.11",
33
+ "postcss-scss": "^4.0.9",
34
+ "prettier": "^3.4.2",
35
+ "sass": "^1.83.0",
36
+ "solid-js": "^1.9.3",
37
+ "stylelint": "^16.12.0",
38
+ "stylelint-config-recess-order": "^5.1.1",
39
+ "stylelint-prettier": "^5.0.2",
40
+ "typescript": "^5.7.2",
41
+ "typescript-eslint": "^8.18.2",
42
+ "vite": "^6.0.5",
43
+ "vite-plugin-css-injected-by-js": "^3.5.2",
44
+ "vite-plugin-solid": "^2.11.0",
45
+ "vite-plugin-solid-svg": "^0.8.1"
46
+ },
47
+ "lint-staged": {
48
+ "*.{ts,tsx}": [
49
+ "eslint --fix --max-warnings 0 --no-warn-ignored"
50
+ ],
51
+ "*.scss": [
52
+ "stylelint --fix"
53
+ ],
54
+ "!(package*).json": [
55
+ "prettier --write"
56
+ ]
57
+ },
58
+ "files": [
59
+ "dist",
60
+ "plugins"
61
+ ],
62
+ "scripts": {
63
+ "dev": "vite",
64
+ "build": "tsc && vite build",
65
+ "preview": "vite preview",
66
+ "lint": "tsc && eslint --fix && stylelint --fix './src/**/*.scss'"
67
+ }
68
+ }
@@ -0,0 +1,14 @@
1
+ export default function pixelMirrorPlugin() {
2
+ return {
3
+ name: "vite-plugin-pixel-mirror",
4
+ transformIndexHtml(html) {
5
+ if (process.env.NODE_ENV !== "production") {
6
+ return html.replace(
7
+ "</body>",
8
+ `<script type="module" src="/node_modules/@p233-studio/pixel-mirror/dist/index.js"></script></body>`
9
+ );
10
+ }
11
+ return html;
12
+ }
13
+ };
14
+ }