Commit Graph

34 Commits

Author SHA1 Message Date
Alex Gleason 9f9a5bf2c1
Merge remote-tracking branch 'origin/main' into vite-config-cleanup 2024-11-09 15:02:59 -06:00
Alex Gleason 2dbda40969
Import vitest functions explicitly, remove "vitest/globals" from tsconfig 2024-11-09 13:44:37 -06:00
Alex Gleason b52f8a9b5e
vite: improve devserver backend routes middleware 2024-11-09 13:12:33 -06:00
Alex Gleason abccbdfabf
Refactor vite config, upgrade rollup-plugin-visualizer 2024-11-09 12:39:11 -06:00
Alex Gleason 848d128603
ts-ignore (sad) 2024-11-08 19:09:24 -06:00
Alex Gleason 9d9f237fd2
Rewrite all `require` to ES6 imports 2024-11-08 18:32:42 -06:00
Alex Gleason d6d62e43bb
Swap out twemoji for @twemoji/svg
Related: https://gitlab.com/soapbox-pub/soapbox/-/issues/1756
2024-10-18 16:22:19 -05:00
Alex Gleason 066c4c7568
manifest.json -> manifest.webmanifest 2024-09-26 13:30:37 -05:00
Alex Gleason 9d5bb6221c
Remove Babel 2024-09-25 19:29:35 -05:00
Alex Gleason 157d21d0d3
Set a separate CSP in local development 2024-05-21 15:52:27 -05:00
Alex Gleason b9c771a369
vite: allow setting PORT envvar 2024-02-11 16:39:45 -06:00
Alex Gleason d97602aa74
vite: add mock api, return 404s 2024-01-12 17:25:15 -06:00
Alex Gleason 33b2d19cd0
vite: don't optimize wasmboy in dev (fixes devserver) 2023-11-24 18:36:37 -06:00
Alex Gleason 05ba2ddbed
vite: enable sourcemap 2023-10-07 11:50:42 -05:00
Alex Gleason 76884f26b1
Add vite-plugin-checker, fix types 2023-09-20 18:50:17 -05:00
Alex Gleason aad07daa33
vite: copy in custom instance dir 2023-09-18 19:20:08 -05:00
Alex Gleason 95b7c62f67
Support snippets.html again 2023-09-18 19:16:42 -05:00
Alex Gleason 2b11b579a3
Move index.html to project root 2023-09-18 17:39:58 -05:00
Alex Gleason ff0bc64c7b
vite: copy instance directory again 2023-09-18 16:59:17 -05:00
Alex Gleason c85c623d25
vite: simplify config 2023-09-18 16:57:13 -05:00
Alex Gleason dd97a46a03
Update code to deal with new paths under src 2023-09-18 16:37:15 -05:00
Alex Gleason 7df9a91e37
Change app/ to src/ in configuration files etc 2023-09-18 16:07:02 -05:00
Alex Gleason 07726bf25c
Rename static --> dist, build-production --> build, output .zip with subdir 2023-09-18 11:27:19 -05:00
Alex Gleason afaac6eed2
vitest: add setup file, use @testing-library/jest-dom 2023-09-16 15:16:35 -05:00
Alex Gleason 26debebd9e
Emit a report.html bundle analysis
Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1517
2023-09-15 23:05:58 -05:00
Alex Gleason 49f8b1e55e
vite: don't strip comments from index.html, restore server-generated-meta 2023-09-15 22:38:29 -05:00
Alex Gleason f8392d22d3
vitest: put cache properly in node_modules 2023-09-15 17:19:13 -05:00
Alex Gleason da2f942563
Add vitest, make some tests actually kind of work! 2023-09-15 16:24:01 -05:00
Alex Gleason dcad4bb4f7
Build the ServiceWorker with Vite 2023-09-15 14:37:09 -05:00
Alex Gleason e6d9be15de
vite: reorganize output directory 2023-09-14 20:40:20 -05:00
Alex Gleason f0e5aaded4
vite: disable inline assets so CSP will pass 2023-09-14 20:38:56 -05:00
Alex Gleason 6e5520ce17
Add back Babel 2023-09-13 16:38:46 -05:00
Alex Gleason b32de7dab0
vite: serve on port 3036 2023-09-13 12:24:49 -05:00
Alex Gleason 2acab99e5b
Make Vite devserver work 2023-09-13 12:04:17 -05:00