feat: update dependencies, configuration, and input file for solidjs

- Update dependencies in package.json
- Modify the input file in rollup.config.mjs
- Update tsconfig.json with new configuration options
This commit is contained in:
Sped0n
2024-02-14 22:37:43 +08:00
parent 40182c7718
commit 5569a41d7a
4 changed files with 38 additions and 6 deletions

View File

@@ -55,11 +55,12 @@
"typescript": "^5.3.3" "typescript": "^5.3.3"
}, },
"dependencies": { "dependencies": {
"gsap": "^3.12.5",
"swiper": "^11.0.6",
"rollup": "^4.9.6",
"@rollup/plugin-node-resolve": "^15.2.3", "@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4", "@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6" "@rollup/plugin-typescript": "^11.1.6",
"gsap": "^3.12.5",
"rollup": "^4.9.6",
"solid-js": "^1.8.14",
"swiper": "^11.0.6"
} }
} }

29
pnpm-lock.yaml generated
View File

@@ -20,6 +20,9 @@ dependencies:
rollup: rollup:
specifier: ^4.9.6 specifier: ^4.9.6
version: 4.9.6 version: 4.9.6
solid-js:
specifier: ^1.8.14
version: 1.8.14
swiper: swiper:
specifier: ^11.0.6 specifier: ^11.0.6
version: 11.0.6 version: 11.0.6
@@ -775,6 +778,10 @@ packages:
which: 2.0.2 which: 2.0.2
dev: true dev: true
/csstype@3.1.3:
resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==}
dev: false
/debug@3.2.7: /debug@3.2.7:
resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==} resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==}
peerDependencies: peerDependencies:
@@ -2126,6 +2133,20 @@ packages:
randombytes: 2.1.0 randombytes: 2.1.0
dev: false dev: false
/seroval-plugins@1.0.4(seroval@1.0.4):
resolution: {integrity: sha512-DQ2IK6oQVvy8k+c2V5x5YCtUa/GGGsUwUBNN9UqohrZ0rWdUapBFpNMYP1bCyRHoxOJjdKGl+dieacFIpU/i1A==}
engines: {node: '>=10'}
peerDependencies:
seroval: ^1.0
dependencies:
seroval: 1.0.4
dev: false
/seroval@1.0.4:
resolution: {integrity: sha512-qQs/N+KfJu83rmszFQaTxcoJoPn6KNUruX4KmnmyD0oZkUoiNvJ1rpdYKDf4YHM05k+HOgCxa3yvf15QbVijGg==}
engines: {node: '>=10'}
dev: false
/shebang-command@1.2.0: /shebang-command@1.2.0:
resolution: {integrity: sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==} resolution: {integrity: sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==}
engines: {node: '>=0.10.0'} engines: {node: '>=0.10.0'}
@@ -2171,6 +2192,14 @@ packages:
resolution: {integrity: sha512-9LK+E7Hv5R9u4g4C3p+jjLstaLe11MDsL21UpYaCNmapvMkYhqCV4A/f/3gyH8QjMyh6l68q9xC85vihY9ahMQ==} resolution: {integrity: sha512-9LK+E7Hv5R9u4g4C3p+jjLstaLe11MDsL21UpYaCNmapvMkYhqCV4A/f/3gyH8QjMyh6l68q9xC85vihY9ahMQ==}
dev: false dev: false
/solid-js@1.8.14:
resolution: {integrity: sha512-kDfgHBm+ROVLDVuqaXh/jYz0ZVJ29TYfVsKsgDPtNcjoyaPtOvDX2l0tVnthjLdEXr7vDTYeqEYFfMkZakDsOQ==}
dependencies:
csstype: 3.1.3
seroval: 1.0.4
seroval-plugins: 1.0.4(seroval@1.0.4)
dev: false
/source-map-support@0.5.21: /source-map-support@0.5.21:
resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==}
dependencies: dependencies:

View File

@@ -3,7 +3,7 @@ import terser from '@rollup/plugin-terser'
import typescript from '@rollup/plugin-typescript' import typescript from '@rollup/plugin-typescript'
export default { export default {
input: './assets/ts/main.ts', input: './assets/ts/main.tsx',
output: { output: {
dir: './static/bundled/js', dir: './static/bundled/js',
format: 'es', format: 'es',

View File

@@ -9,7 +9,9 @@
"esModuleInterop": true, "esModuleInterop": true,
"skipLibCheck": true, "skipLibCheck": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"moduleResolution": "node" "moduleResolution": "node",
"jsx": "preserve",
"jsxImportSource": "solid-js"
}, },
"$schema": "https://json.schemastore.org/tsconfig", "$schema": "https://json.schemastore.org/tsconfig",
"display": "Recommended" "display": "Recommended"