Commit graph

220 commits

Author SHA1 Message Date
c977615759 feat(core): use getNitroConfig in prepare command 2025-01-10 20:33:51 +01:00
5556329c83 feat: copy mcfly config to dist 2025-01-10 18:19:21 +01:00
8020987ccd fix(core): build command to consider nitroConfig.preset when not provided as arg 2025-01-10 17:48:00 +01:00
62fbf5c4b8 fix(core): use c12 to load mcfly config from route middleware
- Can pass functions; while nitro's runtimeConfig cannot. This makes plugins possible
2025-01-10 17:43:25 +01:00
c282f37fae refactor: add getNitroConfig for consolidating different nitro config sources 2025-01-10 17:23:31 +01:00
5095810077 chore(core): patch version for release 2025-01-10 10:21:14 +01:00
8b9825d761 fix(core): import from file instead of the runtime directory 2025-01-10 10:20:08 +01:00
02a3edb3e3 chore: update links from gh to sh 2025-01-09 22:02:50 +01:00
d918d476f1 chore: import as file 2025-01-09 20:23:29 +01:00
749a4e90d5 feat(core): add mcfly nitro config to core 2025-01-09 20:20:42 +01:00
0dd1840516 chore: use small logo 2025-01-09 17:39:29 +01:00
443017cddc chore: show mcfly logo 2025-01-09 17:33:57 +01:00
237ad43c65 chore: link to shadow dom in read me 2025-01-09 17:30:12 +01:00
76874d5b53 chore: link to MDN docs for why items 2025-01-09 17:25:41 +01:00
dfbebe35bf chore(create-mcfly): minor bump for release 2025-01-09 12:08:34 +01:00
8b3f0eec50 feat(create-mcfly): use template hosted at sourcehut 2025-01-09 12:06:40 +01:00
00fc0d1e56 chore: hide images on redme files 2025-01-09 12:05:04 +01:00
ab224f0258 chore: update readme files with correct image url 2025-01-09 12:03:59 +01:00
081d78936d chore: update readme files with correct api path 2025-01-09 12:02:22 +01:00
524e763af3 chore(core): patch version for fix 2025-01-08 23:44:32 +01:00
2fc4db1bfd fix(core): remove wokspace dep 2025-01-08 23:42:57 +01:00
a0d6d53a3c chore(config): patch version 2025-01-08 23:31:30 +01:00
ef60386dbd fix(core): pkg bin path 2025-01-08 23:29:51 +01:00
b526da063f feat(core): use src/api as api dir; don't render if event path is public asset 2025-01-08 23:26:27 +01:00
15bbb38123 feat(config): api directory set to src/api 2025-01-08 23:24:21 +01:00
8746f976af refactor(core): move modules to /runtime 2025-01-08 22:02:51 +01:00
014deadf75 fix(core): catch undefined plugins 2025-01-08 21:32:55 +01:00
Ayo Ayco
73617647db
feat: move cli to core (#55)
* refactor: move cli to core

* feat: move cli to core

- use route-middleware in serve
- eliminate need for `routes` dir in app

* feat: use route-middleware in build

* chore: update test gh action
2025-01-08 21:21:31 +01:00
Ayo Ayco
f08ce4c043
feat: integration hooks system (#54)
* refactor: modularize event-handler transform functions

* feat: add plugin hooks from mcfly config
2025-01-08 20:03:19 +01:00
Ayo Ayco
a6cab7aa7c chore: update homepage in package.json files 2025-01-01 01:03:56 +00:00
59ca18f616 chore: fix readmes 2024-12-31 12:02:56 +01:00
837a2363ee chore: update readmes 2024-12-31 12:01:06 +01:00
d446b582dd fix: try using pathe for cwd 2024-12-31 02:25:17 +01:00
2638b28533 feat: show logs for netlify debug 2024-12-31 02:12:41 +01:00
daffebd733 chore: patch version for release 2024-12-31 02:09:42 +01:00
5f3ef8c621 fix: handle missing server.logs config 2024-12-31 02:08:38 +01:00
0c5fc3d056 feat: sever.logs configuration 2024-12-31 02:06:22 +01:00
4520e65e21 feat: server logs 2024-12-31 01:55:41 +01:00
c288b2235f fix: add workaround for Netlify function 2024-12-31 01:52:01 +01:00
a55d669214 fix: try to add cwd to loadConfig 2024-12-31 01:46:40 +01:00
dba6b6ef84 fix: use loadedConfig 2024-12-31 01:40:37 +01:00
063bc0567b feat: log loaded config and add catch 2024-12-31 01:35:35 +01:00
4640b6e5cf fix: c12 loadConfig not getting mcfly config 2024-12-31 01:27:41 +01:00
31d5a33cd6 feat: add log for detected config file 2024-12-31 01:20:25 +01:00
b486a7a5d5 feat: add logging for when custom element registry not inserted 2024-12-31 01:15:01 +01:00
69363bfb8a chore: patch versions for release 2024-12-31 00:32:52 +01:00
Ayo Ayco
2a9b1e6c58
feat: config improvements (#53)
* feat: move defineMcFlyConfig to @mcflyjs/config

* feat: move defineMcFlyConfig to config package

* feat: programmatically build nitro dev server

* chore: bump versions

* feat: spread nitro config if exists

* chore: use nitro build programmatically

* feat: use nitro programmatically in prepare command

* feat: expose types for NitroConfig & McFlyConfig

* feat: use c12 to resolve mcfly config

* fix: too many symlinks

* chore: skip tests for now

* test: cheating

* test: cheating

* chore: update pnpm-lock
2024-12-31 00:25:25 +01:00
aeae9a80c3 chore(core): patch version for release 2024-12-27 22:53:22 +01:00
272a59d8d9 chore: remove console.logs 2024-12-27 22:51:45 +01:00
167e7ce1a4 chore(core): patch version for release 2024-12-27 22:44:27 +01:00