[~] Refactor
This commit is contained in:
parent
3e9708d442
commit
de292518a5
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
deps/greasyfork/dist filter=lfs diff=lfs merge=lfs -text
|
2
deps/greasyfork/package.json
vendored
2
deps/greasyfork/package.json
vendored
@ -15,6 +15,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/plugin-transform-react-jsx": "latest",
|
"@babel/plugin-transform-react-jsx": "latest",
|
||||||
"@babel/plugin-transform-runtime": "^7.24.7",
|
"@babel/plugin-transform-runtime": "^7.24.7",
|
||||||
|
"@rollup/plugin-typescript": "^11.1.6",
|
||||||
"@types/babel__core": "latest",
|
"@types/babel__core": "latest",
|
||||||
"@types/babel__plugin-transform-runtime": "^7",
|
"@types/babel__plugin-transform-runtime": "^7",
|
||||||
"@types/jquery": "^3.5.30",
|
"@types/jquery": "^3.5.30",
|
||||||
@ -25,6 +26,7 @@
|
|||||||
"rollup": "^4.20.0",
|
"rollup": "^4.20.0",
|
||||||
"rollup-plugin-postcss": "^4.0.2",
|
"rollup-plugin-postcss": "^4.0.2",
|
||||||
"rollup-plugin-userscript": "latest",
|
"rollup-plugin-userscript": "latest",
|
||||||
|
"tslib": "^2.6.3",
|
||||||
"unocss": "latest"
|
"unocss": "latest"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
3
deps/greasyfork/rollup.config.mjs
vendored
3
deps/greasyfork/rollup.config.mjs
vendored
@ -1,6 +1,7 @@
|
|||||||
import { defineExternal, definePlugins } from '@gera2ld/plaid-rollup';
|
import { defineExternal, definePlugins } from '@gera2ld/plaid-rollup';
|
||||||
import { defineConfig } from 'rollup';
|
import { defineConfig } from 'rollup';
|
||||||
import userscript from 'rollup-plugin-userscript';
|
import userscript from 'rollup-plugin-userscript';
|
||||||
|
import typescript from '@rollup/plugin-typescript';
|
||||||
import pkg from './package.json' with { type: 'json' };
|
import pkg from './package.json' with { type: 'json' };
|
||||||
|
|
||||||
export default defineConfig(
|
export default defineConfig(
|
||||||
@ -19,6 +20,7 @@ export default defineConfig(
|
|||||||
extensions: ['.ts', '.tsx', '.mjs', '.js', '.jsx'],
|
extensions: ['.ts', '.tsx', '.mjs', '.js', '.jsx'],
|
||||||
}),
|
}),
|
||||||
userscript((meta) => meta.replace('process.env.AUTHOR', pkg.author)),
|
userscript((meta) => meta.replace('process.env.AUTHOR', pkg.author)),
|
||||||
|
typescript({ sourceMap: true, inlineSources: true }),
|
||||||
],
|
],
|
||||||
external: defineExternal([
|
external: defineExternal([
|
||||||
'@violentmonkey/ui',
|
'@violentmonkey/ui',
|
||||||
@ -27,6 +29,7 @@ export default defineConfig(
|
|||||||
'solid-js/web',
|
'solid-js/web',
|
||||||
]),
|
]),
|
||||||
output: {
|
output: {
|
||||||
|
sourcemap: true,
|
||||||
format: 'iife',
|
format: 'iife',
|
||||||
file: `dist/${name}.user.js`,
|
file: `dist/${name}.user.js`,
|
||||||
globals: {
|
globals: {
|
||||||
|
2
deps/greasyfork/tsconfig.json
vendored
2
deps/greasyfork/tsconfig.json
vendored
@ -59,7 +59,7 @@
|
|||||||
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
||||||
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
||||||
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
||||||
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
||||||
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
||||||
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
|
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
|
||||||
"outDir": "build/", /* Specify an output folder for all emitted files. */
|
"outDir": "build/", /* Specify an output folder for all emitted files. */
|
||||||
|
28
deps/greasyfork/yarn.lock
vendored
28
deps/greasyfork/yarn.lock
vendored
@ -1014,6 +1014,25 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"@rollup/plugin-typescript@npm:^11.1.6":
|
||||||
|
version: 11.1.6
|
||||||
|
resolution: "@rollup/plugin-typescript@npm:11.1.6"
|
||||||
|
dependencies:
|
||||||
|
"@rollup/pluginutils": "npm:^5.1.0"
|
||||||
|
resolve: "npm:^1.22.1"
|
||||||
|
peerDependencies:
|
||||||
|
rollup: ^2.14.0||^3.0.0||^4.0.0
|
||||||
|
tslib: "*"
|
||||||
|
typescript: ">=3.7.0"
|
||||||
|
peerDependenciesMeta:
|
||||||
|
rollup:
|
||||||
|
optional: true
|
||||||
|
tslib:
|
||||||
|
optional: true
|
||||||
|
checksum: 10c0/5347cd73ac28d4cf2401a3e689864a1a0df8f3ae029abd9c38525cbc84bcfa16c3a32a0ac5698dac65ec531ba7cf8332e14f5fc7f8fa501193da23320a134c5c
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"@rollup/pluginutils@npm:^5.0.1, @rollup/pluginutils@npm:^5.1.0":
|
"@rollup/pluginutils@npm:^5.0.1, @rollup/pluginutils@npm:^5.1.0":
|
||||||
version: 5.1.0
|
version: 5.1.0
|
||||||
resolution: "@rollup/pluginutils@npm:5.1.0"
|
resolution: "@rollup/pluginutils@npm:5.1.0"
|
||||||
@ -2640,6 +2659,7 @@ __metadata:
|
|||||||
"@babel/plugin-transform-runtime": "npm:^7.24.7"
|
"@babel/plugin-transform-runtime": "npm:^7.24.7"
|
||||||
"@babel/runtime": "npm:latest"
|
"@babel/runtime": "npm:latest"
|
||||||
"@gera2ld/plaid-rollup": "npm:^2.7.0"
|
"@gera2ld/plaid-rollup": "npm:^2.7.0"
|
||||||
|
"@rollup/plugin-typescript": "npm:^11.1.6"
|
||||||
"@types/babel__core": "npm:latest"
|
"@types/babel__core": "npm:latest"
|
||||||
"@types/babel__plugin-transform-runtime": "npm:^7"
|
"@types/babel__plugin-transform-runtime": "npm:^7"
|
||||||
"@types/jquery": "npm:^3.5.30"
|
"@types/jquery": "npm:^3.5.30"
|
||||||
@ -2654,6 +2674,7 @@ __metadata:
|
|||||||
rollup-plugin-postcss: "npm:^4.0.2"
|
rollup-plugin-postcss: "npm:^4.0.2"
|
||||||
rollup-plugin-userscript: "npm:latest"
|
rollup-plugin-userscript: "npm:latest"
|
||||||
solid-js: "npm:latest"
|
solid-js: "npm:latest"
|
||||||
|
tslib: "npm:^2.6.3"
|
||||||
typescript: "npm:latest"
|
typescript: "npm:latest"
|
||||||
unocss: "npm:latest"
|
unocss: "npm:latest"
|
||||||
vite: "npm:latest"
|
vite: "npm:latest"
|
||||||
@ -4564,6 +4585,13 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"tslib@npm:^2.6.3":
|
||||||
|
version: 2.6.3
|
||||||
|
resolution: "tslib@npm:2.6.3"
|
||||||
|
checksum: 10c0/2598aef53d9dbe711af75522464b2104724d6467b26a60f2bdac8297d2b5f1f6b86a71f61717384aa8fd897240467aaa7bcc36a0700a0faf751293d1331db39a
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"tsx@npm:^4.16.2":
|
"tsx@npm:^4.16.2":
|
||||||
version: 4.17.0
|
version: 4.17.0
|
||||||
resolution: "tsx@npm:4.17.0"
|
resolution: "tsx@npm:4.17.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user