Commit Graph

64 Commits

Author SHA1 Message Date
Aaron Klinker 977246f9ed fix: Add logs when a hot reload happens 2023-07-14 09:39:40 -05:00
Aaron 602dd42e5c chore: Svelte template (#34) 2023-07-14 09:20:49 -05:00
Aaron Klinker ea92a2743b fix: Resolve tsconfig paths in vite 2023-07-14 08:35:48 -05:00
Aaron Klinker 371be99770 fix: Include vite/client types 2023-07-13 17:36:52 -05:00
Aaron Klinker 49965e7786 fix: Fix config hook implementations for vite plugins
Turns out the returned config is merged with the user config, so we don't have to do that ourselves.
2023-07-13 16:36:39 -05:00
Aaron Klinker fa2b6566d8 fix: Fix regression where manifest was not listed first in build summary 2023-07-13 16:09:23 -05:00
Aaron aa16014650 feat: Add tsconfig path aliases (#32) 2023-07-11 17:39:13 -05:00
Aaron Klinker ac0b28e608 fix: Cleanup build summary with sourcemaps 2023-07-11 17:18:22 -05:00
Aaron Klinker 05ca9985d5 fix: Merge manifest option from both inline and user config 2023-07-11 10:24:55 -05:00
Aaron Klinker 6e7184d98d fix: Generate valid type for EntrypointPath when there are no entrypoints 2023-07-11 09:42:08 -05:00
Aaron Klinker ee49837804 feat: Accept a function for config.manifest 2023-07-11 09:41:43 -05:00
Aaron Klinker b29c3c6fdd fix: Only add imports to JS files 2023-07-10 23:19:13 -05:00
Aaron Klinker ef6001e0c0 types: Change config.vite to UserConfig 2023-07-10 23:00:30 -05:00
Aaron 2efc193b45 fix: Unable to read entrypoint options (#28) 2023-07-10 22:18:20 -05:00
Aaron Klinker 2e51e7349d fix: Allow dashes in entrypoint names 2023-07-10 22:16:08 -05:00
Aaron 249aa5eccc feat: Content scripts reloading (#25) 2023-07-10 17:47:52 -05:00
Aaron 75eb3de89e chore: Rename templates to virtual-modules (#24) 2023-07-02 21:49:01 -05:00
Aaron cd714ea196 feat: Reload HTML files individually (#23) 2023-07-02 21:37:28 -05:00
Aaron Klinker c51f0e055f fix: Show Vite warnings and errors 2023-07-02 20:40:34 -05:00
Aaron Klinker 37986bf230 fix: Overwrite files with the same name when renaming entrypoints in dev mode 2023-07-02 20:11:21 -05:00
Aaron 13a713cc28 feat: Setup background script web socket/reload (#22) 2023-07-02 20:00:18 -05:00
Aaron Klinker a78aada96e chore: Refactor build outputs to support transpiled templates 2023-07-02 17:05:23 -05:00
Aaron 3307fc42a0 feat: Reload extension when source code is changed (#17) 2023-07-02 16:04:13 -05:00
Aaron 8be53efd24 chore: Refactor build output type (#19) 2023-07-01 13:58:44 -05:00
Aaron f02abc5227 fix: Remove hash from content script css outputs (#20) 2023-07-01 13:54:18 -05:00
Aaron Klinker 2dd7a99937 fix: Output chunks to a chunks directory 2023-06-28 16:35:11 -05:00
Aaron Klinker 9ab3953810 chore: Refactor folder structure 2023-06-25 21:11:11 -05:00
Aaron 62f4f605d0 feat: Open browser when starting dev server (#11) 2023-06-25 20:58:47 -05:00
Aaron Klinker 50bb8454dd fix: Firefox manifest warnings in dev mode 2023-06-25 20:53:32 -05:00
Aaron Klinker f114c5bf88 feat: Add more supported browser types 2023-06-25 12:43:15 -05:00
Aaron 9ef451be2e feat: Support more CLI flags for build and dev (#9) 2023-06-25 12:23:04 -05:00
Aaron Klinker 8ca56572ef chore: Fix header log's timestamp 2023-06-25 11:28:31 -05:00
Aaron Klinker 51a10725cf chore: Rename package to wxt 2023-06-25 10:53:35 -05:00
Aaron Klinker f380378c0f fix: Make content script array orders consistent 2023-06-25 10:53:35 -05:00
Aaron Klinker 573ef8029f fix: Respect background type and persistent manifest options 2023-06-25 10:53:35 -05:00
Aaron Klinker 7abb577254 feat: Support browser and chrome styles for mv2 popups 2023-06-25 10:53:35 -05:00
Aaron Klinker 0f37ceb774 fix: Respect the mv2 popup type 2023-06-25 10:53:35 -05:00
Aaron Klinker 7945c94deb feat: Support browser and chrome styles for mv2 popups 2023-06-25 10:53:35 -05:00
Aaron Klinker 8eb4e86b91 fix: Only allow a single entrypoint with a given name 2023-06-25 10:53:35 -05:00
Aaron Klinker 3ca16eeb23 fix: Load package.json from root not cwd 2023-06-25 10:53:35 -05:00
Aaron Klinker 3e37de97a6 fix: Print durations as ms/s based on total time 2023-06-25 10:53:35 -05:00
Aaron Klinker 4faa3b3493 fix: Root path customization now works 2023-06-25 10:53:35 -05:00
Aaron Klinker 7c634f4841 chore: Refactor internal config creation 2023-06-25 10:53:35 -05:00
Aaron Klinker 739d19f3e3 fix: Support srcDir config 2023-06-25 10:53:35 -05:00
Aaron Klinker 1a25f2b532 feat: Copy public directory to outputs 2023-06-25 10:53:35 -05:00
Aaron Klinker e3e9c0d482 chore: Remove comments 2023-06-25 10:53:35 -05:00
Aaron Klinker 8c59a1c001 feat: Provide custom, typed globals defined by Vite 2023-06-25 10:53:35 -05:00
Aaron Klinker ca29537bbc feat: Virtualized content script entrypoint
Generalized the background logic so it can be reused with mulitple entrypoint types
2023-06-25 10:53:35 -05:00
Aaron Klinker ec57e8cbca chore: Improve build summary sorting 2023-06-25 10:53:35 -05:00
Aaron Klinker 505e41951c feat: Dev server working and a valid extension is built 2023-06-25 10:53:35 -05:00