@fluxlay/vite 1.0.3 → 1.0.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/README.md +1 -1
- package/dist/index.d.mts +10 -0
- package/dist/index.mjs +26 -0
- package/package.json +18 -18
- package/src/index.ts +4 -4
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -22
package/README.md
CHANGED
package/dist/index.d.mts
ADDED
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region src/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* Vite plugin for building Fluxlay plugins.
|
|
4
|
+
* Enforces output directory and minification settings.
|
|
5
|
+
*/
|
|
6
|
+
function fluxlay() {
|
|
7
|
+
return {
|
|
8
|
+
name: "vite-plugin-fluxlay",
|
|
9
|
+
config(userConfig) {
|
|
10
|
+
return {
|
|
11
|
+
base: "./",
|
|
12
|
+
build: {
|
|
13
|
+
outDir: "dist",
|
|
14
|
+
emptyOutDir: true,
|
|
15
|
+
minify: userConfig.build?.minify ?? "terser",
|
|
16
|
+
terserOptions: {
|
|
17
|
+
compress: { drop_console: true },
|
|
18
|
+
mangle: true
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { fluxlay };
|
package/package.json
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluxlay/vite",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Vite plugin for building Fluxlay wallpapers",
|
|
5
|
-
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
|
-
"homepage": "https://fluxlay.com",
|
|
7
5
|
"keywords": [
|
|
8
6
|
"fluxlay",
|
|
9
|
-
"
|
|
7
|
+
"plugin",
|
|
10
8
|
"vite",
|
|
11
|
-
"
|
|
9
|
+
"wallpaper"
|
|
12
10
|
],
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"types": "./dist/index.d.ts",
|
|
11
|
+
"homepage": "https://fluxlay.com",
|
|
12
|
+
"license": "SEE LICENSE IN LICENSE.txt",
|
|
16
13
|
"files": [
|
|
17
14
|
"dist",
|
|
18
15
|
"src"
|
|
19
16
|
],
|
|
17
|
+
"type": "module",
|
|
18
|
+
"main": "./dist/index.mjs",
|
|
19
|
+
"types": "./dist/index.d.mts",
|
|
20
20
|
"exports": {
|
|
21
21
|
".": {
|
|
22
|
-
"
|
|
23
|
-
"
|
|
22
|
+
"types": "./dist/index.d.mts",
|
|
23
|
+
"default": "./dist/index.mjs"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
|
-
"
|
|
27
|
-
"
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"terser": "^5.46.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
+
"tsdown": "^0.21.7",
|
|
30
31
|
"typescript": "^5.9.3",
|
|
31
|
-
"vite": "^
|
|
32
|
-
"vite-plugin-dts": "^4.5.4"
|
|
32
|
+
"vite": "^8.0.2"
|
|
33
33
|
},
|
|
34
|
-
"
|
|
35
|
-
"
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"vite": ">=7"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
|
-
"build": "
|
|
39
|
-
"check": "
|
|
38
|
+
"build": "tsdown",
|
|
39
|
+
"check": "oxlint --type-aware --type-check --fix && oxfmt --write ."
|
|
40
40
|
}
|
|
41
41
|
}
|
package/src/index.ts
CHANGED
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
function r() {
|
|
2
|
-
return {
|
|
3
|
-
name: "vite-plugin-fluxlay",
|
|
4
|
-
config(e) {
|
|
5
|
-
return {
|
|
6
|
-
base: "./",
|
|
7
|
-
build: {
|
|
8
|
-
outDir: "dist",
|
|
9
|
-
emptyOutDir: !0,
|
|
10
|
-
minify: e.build?.minify ?? "terser",
|
|
11
|
-
terserOptions: {
|
|
12
|
-
compress: { drop_console: !0 },
|
|
13
|
-
mangle: !0
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
r as fluxlay
|
|
22
|
-
};
|