diff --git a/package.json b/package.json index 0b29203..f19d110 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,9 @@ "email": "hello@flayks.com" }, "scripts": { - "dev": "svelte-kit dev", - "build": "svelte-kit build", - "preview": "svelte-kit preview", + "dev": "vite dev", + "build": "vite build", + "preview": "vite preview", "check": "svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-check --tsconfig ./tsconfig.json --watch", "lint": "eslint --ignore-path .gitignore ." @@ -23,16 +23,16 @@ "sanitize.css": "^13.0.0" }, "devDependencies": { - "@sveltejs/adapter-auto": "^1.0.0-next.53", + "@sveltejs/adapter-auto": "^1.0.0-next.54", "@sveltejs/adapter-node": "^1.0.0-next.78", "@sveltejs/adapter-vercel": "^1.0.0-next.59", "@sveltejs/kit": "next", "@types/animejs": "^3.1.4", - "@typescript-eslint/eslint-plugin": "^5.30.0", - "@typescript-eslint/parser": "^5.30.0", + "@typescript-eslint/eslint-plugin": "^5.30.5", + "@typescript-eslint/parser": "^5.30.5", "browserslist": "^4.21.1", "cssnano": "^5.1.12", - "eslint": "^8.18.0", + "eslint": "^8.19.0", "eslint-plugin-svelte3": "^4.0.0", "postcss": "^8.4.14", "postcss-focus-visible": "^6.0.4", @@ -45,7 +45,8 @@ "svelte-preprocess": "^4.10.7", "swell-node": "^4.0.10", "tslib": "^2.4.0", - "typescript": "^4.7.4" + "typescript": "^4.7.4", + "vite": "^2.9.13" }, "type": "module", "browserslist": [ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 929e352..e4465f1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,19 +1,19 @@ lockfileVersion: 5.4 specifiers: - '@sveltejs/adapter-auto': ^1.0.0-next.53 + '@sveltejs/adapter-auto': ^1.0.0-next.54 '@sveltejs/adapter-node': ^1.0.0-next.78 '@sveltejs/adapter-vercel': ^1.0.0-next.59 '@sveltejs/kit': next '@types/animejs': ^3.1.4 - '@typescript-eslint/eslint-plugin': ^5.30.0 - '@typescript-eslint/parser': ^5.30.0 + '@typescript-eslint/eslint-plugin': ^5.30.5 + '@typescript-eslint/parser': ^5.30.5 animejs: ^3.2.1 browserslist: ^4.21.1 cssnano: ^5.1.12 dayjs: ^1.11.3 embla-carousel: ^6.2.0 - eslint: ^8.18.0 + eslint: ^8.19.0 eslint-plugin-svelte3: ^4.0.0 focus-visible: ^5.2.0 postcss: ^8.4.14 @@ -29,6 +29,7 @@ specifiers: swell-node: ^4.0.10 tslib: ^2.4.0 typescript: ^4.7.4 + vite: ^2.9.13 dependencies: animejs: 3.2.1 @@ -38,17 +39,17 @@ dependencies: sanitize.css: 13.0.0 devDependencies: - '@sveltejs/adapter-auto': 1.0.0-next.53 + '@sveltejs/adapter-auto': 1.0.0-next.54 '@sveltejs/adapter-node': 1.0.0-next.78 '@sveltejs/adapter-vercel': 1.0.0-next.59 - '@sveltejs/kit': 1.0.0-next.357_sass@1.53.0+svelte@3.48.0 + '@sveltejs/kit': 1.0.0-next.360_svelte@3.48.0+vite@2.9.13 '@types/animejs': 3.1.4 - '@typescript-eslint/eslint-plugin': 5.30.0_5mtqsiui4sk53pmkx7i7ue45wm - '@typescript-eslint/parser': 5.30.0_b5e7v2qnwxfo6hmiq56u52mz3e + '@typescript-eslint/eslint-plugin': 5.30.5_6zdoc3rn4mpiddqwhppni2mnnm + '@typescript-eslint/parser': 5.30.5_4x5o4skxv6sl53vpwefgt23khm browserslist: 4.21.1 cssnano: 5.1.12_postcss@8.4.14 - eslint: 8.18.0 - eslint-plugin-svelte3: 4.0.0_wy4erphnvhealet26qderqv6bu + eslint: 8.19.0 + eslint-plugin-svelte3: 4.0.0_m4jpobot6gi3xtcba7bv5cflma postcss: 8.4.14 postcss-focus-visible: 6.0.4_postcss@8.4.14 postcss-normalize: 10.0.1_vqntrzeodbkzmktqxvgijrtgk4 @@ -61,6 +62,7 @@ devDependencies: swell-node: 4.0.10 tslib: 2.4.0 typescript: 4.7.4 + vite: 2.9.13_sass@1.53.0 packages: @@ -210,7 +212,7 @@ packages: ajv: 6.12.6 debug: 4.3.4 espree: 9.3.2 - globals: 13.15.0 + globals: 13.16.0 ignore: 5.2.0 import-fresh: 3.3.0 js-yaml: 4.1.0 @@ -239,8 +241,8 @@ packages: resolution: {integrity: sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==} dev: true - /@jridgewell/resolve-uri/3.0.8: - resolution: {integrity: sha512-YK5G9LaddzGbcucK4c8h5tWFmMPBvRZ/uyWmN1/SbBdIvqGUdWGkJ5BAaccgs6XbzVLsqbPJrBSFwKv3kT9i7w==} + /@jridgewell/resolve-uri/3.1.0: + resolution: {integrity: sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==} engines: {node: '>=6.0.0'} dev: true @@ -251,7 +253,7 @@ packages: /@jridgewell/trace-mapping/0.3.14: resolution: {integrity: sha512-bJWEfQ9lPTvm3SneWwRFVLzrh6nhjwqw7TUFFBEMzwvg7t7PCDenf2lDwqo4NQXzdpgBXyFgDWnQA+2vkruksQ==} dependencies: - '@jridgewell/resolve-uri': 3.0.8 + '@jridgewell/resolve-uri': 3.1.0 '@jridgewell/sourcemap-codec': 1.4.14 dev: true @@ -302,10 +304,10 @@ packages: picomatch: 2.3.1 dev: true - /@sveltejs/adapter-auto/1.0.0-next.53: - resolution: {integrity: sha512-LyaeU0rkcymGWvV/3K26AZxqG/+ZQHwa+hrx3xsbmOykjQ2WQPTXRVwmH23zV4A5ABvni76LRMsQOoqWzP3G9Q==} + /@sveltejs/adapter-auto/1.0.0-next.54: + resolution: {integrity: sha512-GT3LmE+Qy4HcMO/CZJJTLWaLrchufo1Z+BVec79u02GNM16y7Q8Jbs1gVg4EKMHV8AqtDxYFsb0j5gUlP8Ol9g==} dependencies: - '@sveltejs/adapter-cloudflare': 1.0.0-next.24 + '@sveltejs/adapter-cloudflare': 1.0.0-next.25 '@sveltejs/adapter-netlify': 1.0.0-next.66 '@sveltejs/adapter-vercel': 1.0.0-next.59 transitivePeerDependencies: @@ -313,8 +315,8 @@ packages: - supports-color dev: true - /@sveltejs/adapter-cloudflare/1.0.0-next.24: - resolution: {integrity: sha512-g1QSrjWYjM6sfJB+pQn52EIfbVFjpk23GYsj5PLt2Gi3zRNfLRbpkFkPeyAOZbAfT4k/9lUqfLW+pkh+W3yxlg==} + /@sveltejs/adapter-cloudflare/1.0.0-next.25: + resolution: {integrity: sha512-fhjH4LInepYxJ6ubuNO38sJeor04cUBKMPF5hpwrXLhKHrYTVwq1Oi7xNVbnrrIQzGRyiHOCvMy8E/MNnO3xLw==} dependencies: esbuild: 0.14.48 worktop: 0.8.0-next.14 @@ -345,12 +347,13 @@ packages: - supports-color dev: true - /@sveltejs/kit/1.0.0-next.357_sass@1.53.0+svelte@3.48.0: - resolution: {integrity: sha512-nCAehVybIEpQNnPu61V/EFVdfDb1nBSiQUfW9EcSSDEUbyAMCVBOKZZuzQ0qQDp3xniqRkyDzpBA4wN+ADxHBw==} + /@sveltejs/kit/1.0.0-next.360_svelte@3.48.0+vite@2.9.13: + resolution: {integrity: sha512-z1W6oYSmDzYcjlXANkbsb0N0IS/0aDl0huzDGRZWXobis4VmzoqzOyxsczyvxwH6FWxQBXls5wNrtm6drzsr6A==} engines: {node: '>=16.7'} hasBin: true peerDependencies: svelte: ^3.44.0 + vite: ^2.9.10 dependencies: '@sveltejs/vite-plugin-svelte': 1.0.0-next.49_svelte@3.48.0+vite@2.9.13 chokidar: 3.5.3 @@ -359,9 +362,6 @@ packages: vite: 2.9.13_sass@1.53.0 transitivePeerDependencies: - diff-match-patch - - less - - sass - - stylus - supports-color dev: true @@ -401,8 +401,8 @@ packages: resolution: {integrity: sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==} dev: true - /@types/node/18.0.0: - resolution: {integrity: sha512-cHlGmko4gWLVI27cGJntjs/Sj8th9aYwplmZFwmmgYQQvL5NUsgVJG7OddLvNfLqYS31KFN0s3qlaD9qCaxACA==} + /@types/node/18.0.3: + resolution: {integrity: sha512-HzNRZtp4eepNitP+BD6k2L6DROIDG4Q0fm4x+dwfsr6LGmROENnok75VGw40628xf+iR24WeMFcHuuBDUAzzsQ==} dev: true /@types/pug/2.0.6: @@ -412,11 +412,11 @@ packages: /@types/sass/1.43.1: resolution: {integrity: sha512-BPdoIt1lfJ6B7rw35ncdwBZrAssjcwzI5LByIrYs+tpXlj/CAkuVdRsgZDdP4lq5EjyWzwxZCqAoFyHKFwp32g==} dependencies: - '@types/node': 18.0.0 + '@types/node': 18.0.3 dev: true - /@typescript-eslint/eslint-plugin/5.30.0_5mtqsiui4sk53pmkx7i7ue45wm: - resolution: {integrity: sha512-lvhRJ2pGe2V9MEU46ELTdiHgiAFZPKtLhiU5wlnaYpMc2+c1R8fh8i80ZAa665drvjHKUJyRRGg3gEm1If54ow==} + /@typescript-eslint/eslint-plugin/5.30.5_6zdoc3rn4mpiddqwhppni2mnnm: + resolution: {integrity: sha512-lftkqRoBvc28VFXEoRgyZuztyVUQ04JvUnATSPtIRFAccbXTWL6DEtXGYMcbg998kXw1NLUJm7rTQ9eUt+q6Ig==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: '@typescript-eslint/parser': ^5.0.0 @@ -426,12 +426,12 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/parser': 5.30.0_b5e7v2qnwxfo6hmiq56u52mz3e - '@typescript-eslint/scope-manager': 5.30.0 - '@typescript-eslint/type-utils': 5.30.0_b5e7v2qnwxfo6hmiq56u52mz3e - '@typescript-eslint/utils': 5.30.0_b5e7v2qnwxfo6hmiq56u52mz3e + '@typescript-eslint/parser': 5.30.5_4x5o4skxv6sl53vpwefgt23khm + '@typescript-eslint/scope-manager': 5.30.5 + '@typescript-eslint/type-utils': 5.30.5_4x5o4skxv6sl53vpwefgt23khm + '@typescript-eslint/utils': 5.30.5_4x5o4skxv6sl53vpwefgt23khm debug: 4.3.4 - eslint: 8.18.0 + eslint: 8.19.0 functional-red-black-tree: 1.0.1 ignore: 5.2.0 regexpp: 3.2.0 @@ -442,8 +442,8 @@ packages: - supports-color dev: true - /@typescript-eslint/parser/5.30.0_b5e7v2qnwxfo6hmiq56u52mz3e: - resolution: {integrity: sha512-2oYYUws5o2liX6SrFQ5RB88+PuRymaM2EU02/9Ppoyu70vllPnHVO7ioxDdq/ypXHA277R04SVjxvwI8HmZpzA==} + /@typescript-eslint/parser/5.30.5_4x5o4skxv6sl53vpwefgt23khm: + resolution: {integrity: sha512-zj251pcPXI8GO9NDKWWmygP6+UjwWmrdf9qMW/L/uQJBM/0XbU2inxe5io/234y/RCvwpKEYjZ6c1YrXERkK4Q==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 @@ -452,26 +452,26 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 5.30.0 - '@typescript-eslint/types': 5.30.0 - '@typescript-eslint/typescript-estree': 5.30.0_typescript@4.7.4 + '@typescript-eslint/scope-manager': 5.30.5 + '@typescript-eslint/types': 5.30.5 + '@typescript-eslint/typescript-estree': 5.30.5_typescript@4.7.4 debug: 4.3.4 - eslint: 8.18.0 + eslint: 8.19.0 typescript: 4.7.4 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/scope-manager/5.30.0: - resolution: {integrity: sha512-3TZxvlQcK5fhTBw5solQucWSJvonXf5yua5nx8OqK94hxdrT7/6W3/CS42MLd/f1BmlmmbGEgQcTHHCktUX5bQ==} + /@typescript-eslint/scope-manager/5.30.5: + resolution: {integrity: sha512-NJ6F+YHHFT/30isRe2UTmIGGAiXKckCyMnIV58cE3JkHmaD6e5zyEYm5hBDv0Wbin+IC0T1FWJpD3YqHUG/Ydg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - '@typescript-eslint/types': 5.30.0 - '@typescript-eslint/visitor-keys': 5.30.0 + '@typescript-eslint/types': 5.30.5 + '@typescript-eslint/visitor-keys': 5.30.5 dev: true - /@typescript-eslint/type-utils/5.30.0_b5e7v2qnwxfo6hmiq56u52mz3e: - resolution: {integrity: sha512-GF8JZbZqSS+azehzlv/lmQQ3EU3VfWYzCczdZjJRxSEeXDQkqFhCBgFhallLDbPwQOEQ4MHpiPfkjKk7zlmeNg==} + /@typescript-eslint/type-utils/5.30.5_4x5o4skxv6sl53vpwefgt23khm: + resolution: {integrity: sha512-k9+ejlv1GgwN1nN7XjVtyCgE0BTzhzT1YsQF0rv4Vfj2U9xnslBgMYYvcEYAFVdvhuEscELJsB7lDkN7WusErw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: '*' @@ -480,22 +480,22 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/utils': 5.30.0_b5e7v2qnwxfo6hmiq56u52mz3e + '@typescript-eslint/utils': 5.30.5_4x5o4skxv6sl53vpwefgt23khm debug: 4.3.4 - eslint: 8.18.0 + eslint: 8.19.0 tsutils: 3.21.0_typescript@4.7.4 typescript: 4.7.4 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/types/5.30.0: - resolution: {integrity: sha512-vfqcBrsRNWw/LBXyncMF/KrUTYYzzygCSsVqlZ1qGu1QtGs6vMkt3US0VNSQ05grXi5Yadp3qv5XZdYLjpp8ag==} + /@typescript-eslint/types/5.30.5: + resolution: {integrity: sha512-kZ80w/M2AvsbRvOr3PjaNh6qEW1LFqs2pLdo2s5R38B2HYXG8Z0PP48/4+j1QHJFL3ssHIbJ4odPRS8PlHrFfw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@typescript-eslint/typescript-estree/5.30.0_typescript@4.7.4: - resolution: {integrity: sha512-hDEawogreZB4n1zoqcrrtg/wPyyiCxmhPLpZ6kmWfKF5M5G0clRLaEexpuWr31fZ42F96SlD/5xCt1bT5Qm4Nw==} + /@typescript-eslint/typescript-estree/5.30.5_typescript@4.7.4: + resolution: {integrity: sha512-qGTc7QZC801kbYjAr4AgdOfnokpwStqyhSbiQvqGBLixniAKyH+ib2qXIVo4P9NgGzwyfD9I0nlJN7D91E1VpQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: typescript: '*' @@ -503,8 +503,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 5.30.0 - '@typescript-eslint/visitor-keys': 5.30.0 + '@typescript-eslint/types': 5.30.5 + '@typescript-eslint/visitor-keys': 5.30.5 debug: 4.3.4 globby: 11.1.0 is-glob: 4.0.3 @@ -515,29 +515,29 @@ packages: - supports-color dev: true - /@typescript-eslint/utils/5.30.0_b5e7v2qnwxfo6hmiq56u52mz3e: - resolution: {integrity: sha512-0bIgOgZflLKIcZsWvfklsaQTM3ZUbmtH0rJ1hKyV3raoUYyeZwcjQ8ZUJTzS7KnhNcsVT1Rxs7zeeMHEhGlltw==} + /@typescript-eslint/utils/5.30.5_4x5o4skxv6sl53vpwefgt23khm: + resolution: {integrity: sha512-o4SSUH9IkuA7AYIfAvatldovurqTAHrfzPApOZvdUq01hHojZojCFXx06D/aFpKCgWbMPRdJBWAC3sWp3itwTA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: '@types/json-schema': 7.0.11 - '@typescript-eslint/scope-manager': 5.30.0 - '@typescript-eslint/types': 5.30.0 - '@typescript-eslint/typescript-estree': 5.30.0_typescript@4.7.4 - eslint: 8.18.0 + '@typescript-eslint/scope-manager': 5.30.5 + '@typescript-eslint/types': 5.30.5 + '@typescript-eslint/typescript-estree': 5.30.5_typescript@4.7.4 + eslint: 8.19.0 eslint-scope: 5.1.1 - eslint-utils: 3.0.0_eslint@8.18.0 + eslint-utils: 3.0.0_eslint@8.19.0 transitivePeerDependencies: - supports-color - typescript dev: true - /@typescript-eslint/visitor-keys/5.30.0: - resolution: {integrity: sha512-6WcIeRk2DQ3pHKxU1Ni0qMXJkjO/zLjBymlYBy/53qxe7yjEFSvzKLDToJjURUhSl2Fzhkl4SMXQoETauF74cw==} + /@typescript-eslint/visitor-keys/5.30.5: + resolution: {integrity: sha512-D+xtGo9HUMELzWIUqcQc0p2PO4NyvTrgIOK/VnSH083+8sq0tiLozNRKuLarwHYGRuA6TVBQSuuLwJUDWd3aaA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - '@typescript-eslint/types': 5.30.0 + '@typescript-eslint/types': 5.30.5 eslint-visitor-keys: 3.3.0 dev: true @@ -552,7 +552,7 @@ packages: glob: 7.2.3 graceful-fs: 4.2.10 micromatch: 4.0.5 - node-gyp-build: 4.4.0 + node-gyp-build: 4.5.0 resolve-from: 5.0.0 rollup-pluginutils: 2.8.2 transitivePeerDependencies: @@ -649,7 +649,7 @@ packages: postcss: ^8.1.0 dependencies: browserslist: 4.21.1 - caniuse-lite: 1.0.30001361 + caniuse-lite: 1.0.30001363 fraction.js: 4.2.0 normalize-range: 0.1.2 picocolors: 1.0.0 @@ -695,8 +695,8 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true dependencies: - caniuse-lite: 1.0.30001361 - electron-to-chromium: 1.4.174 + caniuse-lite: 1.0.30001363 + electron-to-chromium: 1.4.182 node-releases: 2.0.5 update-browserslist-db: 1.0.4_browserslist@4.21.1 dev: true @@ -714,13 +714,13 @@ packages: resolution: {integrity: sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==} dependencies: browserslist: 4.21.1 - caniuse-lite: 1.0.30001361 + caniuse-lite: 1.0.30001363 lodash.memoize: 4.1.2 lodash.uniq: 4.5.0 dev: true - /caniuse-lite/1.0.30001361: - resolution: {integrity: sha512-ybhCrjNtkFji1/Wto6SSJKkWk6kZgVQsDq5QI83SafsF6FXv2JB4df9eEdH6g8sdGgqTXrFLjAxqBGgYoU3azQ==} + /caniuse-lite/1.0.30001363: + resolution: {integrity: sha512-HpQhpzTGGPVMnCjIomjt+jvyUu8vNFo3TaDiZ/RcoTrlOq/5+tC8zHdsbgFB6MxmaY+jCpsH09aD80Bb4Ow3Sg==} dev: true /chalk/4.1.2: @@ -1013,8 +1013,8 @@ packages: domhandler: 4.3.1 dev: true - /electron-to-chromium/1.4.174: - resolution: {integrity: sha512-JER+w+9MV2MBVFOXxP036bLlNOnzbYAWrWU8sNUwoOO69T3w4564WhM5H5atd8VVS8U4vpi0i0kdoYzm1NPQgQ==} + /electron-to-chromium/1.4.182: + resolution: {integrity: sha512-OpEjTADzGoXABjqobGhpy0D2YsTncAax7IkER68ycc4adaq0dqEG9//9aenKPy7BGA90bqQdLac0dPp6uMkcSg==} dev: true /embla-carousel/6.2.0: @@ -1251,13 +1251,13 @@ packages: engines: {node: '>=10'} dev: true - /eslint-plugin-svelte3/4.0.0_wy4erphnvhealet26qderqv6bu: + /eslint-plugin-svelte3/4.0.0_m4jpobot6gi3xtcba7bv5cflma: resolution: {integrity: sha512-OIx9lgaNzD02+MDFNLw0GEUbuovNcglg+wnd/UY0fbZmlQSz7GlQiQ1f+yX0XvC07XPcDOnFcichqI3xCwp71g==} peerDependencies: eslint: '>=8.0.0' svelte: ^3.2.0 dependencies: - eslint: 8.18.0 + eslint: 8.19.0 svelte: 3.48.0 dev: true @@ -1277,13 +1277,13 @@ packages: estraverse: 5.3.0 dev: true - /eslint-utils/3.0.0_eslint@8.18.0: + /eslint-utils/3.0.0_eslint@8.19.0: resolution: {integrity: sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==} engines: {node: ^10.0.0 || ^12.0.0 || >= 14.0.0} peerDependencies: eslint: '>=5' dependencies: - eslint: 8.18.0 + eslint: 8.19.0 eslint-visitor-keys: 2.1.0 dev: true @@ -1297,8 +1297,8 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint/8.18.0: - resolution: {integrity: sha512-As1EfFMVk7Xc6/CvhssHUjsAQSkpfXvUGMFC3ce8JDe6WvqCgRrLOBQbVpsBFr1X1V+RACOadnzVvcUS5ni2bA==} + /eslint/8.19.0: + resolution: {integrity: sha512-SXOPj3x9VKvPe81TjjUJCYlV4oJjQw68Uek+AM0X4p+33dj2HY5bpTZOgnQHcG2eAm1mtCU9uNMnJi7exU/kYw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} hasBin: true dependencies: @@ -1311,7 +1311,7 @@ packages: doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.1.1 - eslint-utils: 3.0.0_eslint@8.18.0 + eslint-utils: 3.0.0_eslint@8.19.0 eslint-visitor-keys: 3.3.0 espree: 9.3.2 esquery: 1.4.0 @@ -1320,7 +1320,7 @@ packages: file-entry-cache: 6.0.1 functional-red-black-tree: 1.0.1 glob-parent: 6.0.2 - globals: 13.15.0 + globals: 13.16.0 ignore: 5.2.0 import-fresh: 3.3.0 imurmurhash: 0.1.4 @@ -1521,8 +1521,8 @@ packages: path-is-absolute: 1.0.1 dev: true - /globals/13.15.0: - resolution: {integrity: sha512-bpzcOlgDhMG070Av0Vy5Owklpv1I6+j96GhUI7Rh7IzDCKLzboflLrrfqMu8NquDbiR4EOQk7XzJwqVJxicxog==} + /globals/13.16.0: + resolution: {integrity: sha512-A1lrQfpNF+McdPOnnFqY3kSN0AFTy485bTi1bkLk4mVPODIUEcSfhHgRqA+QdXPksrSTTztYXx37NFV+GpGk3Q==} engines: {node: '>=8'} dependencies: type-fest: 0.20.2 @@ -1818,8 +1818,8 @@ packages: whatwg-url: 5.0.0 dev: true - /node-gyp-build/4.4.0: - resolution: {integrity: sha512-amJnQCcgtRVw9SvoebO3BKGESClrfXGCUTX9hSn1OuGQTQBOZmVd0Z0OlecpuRksKvbsUqALE8jls/ErClAPuQ==} + /node-gyp-build/4.5.0: + resolution: {integrity: sha512-2iGbaQBV+ITgCz76ZEjmhUKAKVf7xfY1sRl4UiKQspfZMH2h06SyhNsnSVy50cwkFQDGLyif6m/6uFXHkOZ6rg==} hasBin: true dev: true @@ -2613,8 +2613,8 @@ packages: picomatch: 2.3.1 dev: true - /regexparam/2.0.0: - resolution: {integrity: sha512-gJKwd2MVPWHAIFLsaYDZfyKzHNS4o7E/v8YmNf44vmeV2e4YfVoDToTOKTvE7ab68cRJ++kLuEXJBaEeJVt5ow==} + /regexparam/2.0.1: + resolution: {integrity: sha512-zRgSaYemnNYxUv+/5SeoHI0eJIgTL/A2pUtXUPLHQxUldagouJ9p+K6IbIZ/JiQuCEv2E2B1O11SjVQy3aMCkw==} engines: {node: '>=8'} dev: true @@ -3116,7 +3116,7 @@ packages: engines: {node: '>=12'} dependencies: mrmime: 1.0.1 - regexparam: 2.0.0 + regexparam: 2.0.1 dev: true /wrappy/1.0.2: diff --git a/svelte.config.js b/svelte.config.js index dcd1f4c..a24b9fc 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -4,7 +4,7 @@ import { fileURLToPath } from 'url' import { dirname } from 'path' const stylePath = `${dirname(fileURLToPath(import.meta.url))}/src/style` -const scssImports = `@use "${stylePath}/imports.scss" as *;` +export const scssImports = `@use "${stylePath}/imports.scss" as *;` /** @type {import('@sveltejs/kit').Config} */ const config = { @@ -25,15 +25,6 @@ const config = { $utils: 'src/utils', $style: 'src/style', }, - vite: { - css: { - preprocessorOptions: { - scss: { - additionalData: scssImports, - } - } - } - } } } diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..e23df9e --- /dev/null +++ b/vite.config.js @@ -0,0 +1,18 @@ +import { sveltekit } from '@sveltejs/kit/vite'; +import { scssImports } from './svelte.config.js' + +/** @type {import('vite').UserConfig} */ +const config = { + plugins: [ + sveltekit() + ], + css: { + preprocessorOptions: { + scss: { + additionalData: scssImports, + } + } + }, +} + +export default config \ No newline at end of file