Commit graph

263 commits

Author SHA1 Message Date
cfd7e7ba9a chore(core): patch version for release 2024-12-27 11:58:19 +01:00
d50b67f3f4 feat: allow no semicolon server:setup scripts 2024-12-27 11:52:25 +01:00
4e10f7d92d chore(core): add esbuild as dependency 2024-12-27 11:38:00 +01:00
08c4ee7259 test(cli): remove unneeded assertion 2024-12-20 00:01:17 +01:00
06b7b8e729 test(cli): change assertion 2024-12-19 23:59:00 +01:00
c25c5e03d4 chore: format code 2024-12-19 23:11:07 +01:00
5a4f8b9b30 chore: set up husky 2024-12-19 23:07:49 +01:00
4975bb8206 chore: add todo 2024-12-19 22:57:56 +01:00
a413fc14f2 chore(config): bump version patch for release 2024-12-08 21:21:23 +01:00
2e5a44d5e5 feat(config): add compatibilityDate
- prevents the nitro server prompt to auto add compatibilityDate; it is used for cloudflare workers if I understand it correctly
2024-12-08 21:20:33 +01:00
01493ae617 chore(cli): update nitro 2024-12-08 20:32:24 +01:00
17f631baaf test(cli): main subcommands list 2024-12-08 19:54:23 +01:00
c1e2ed579c chore(cli): remove TODO 2024-12-07 20:41:05 +01:00
ea06089c4a test(cli): add tests for generate command 2024-12-07 20:40:15 +01:00
41d8ff83a5 chore(cli): update script command for coverage 2024-12-07 20:35:11 +01:00
cc6dfda559 test(cli): add tests to serve.printInfo() 2024-12-07 20:34:52 +01:00
47fa380ef0 test(cli): add tests for serve() 2024-12-07 19:25:29 +01:00
6c14bbf2b5 refactor(cli): remove unused import 2024-12-07 19:25:09 +01:00
4001369337 test(cli): add @mcflyjs/core as devDep for testing 2024-12-07 19:24:42 +01:00
0834f13633 test(cli): error scenarios for new, build, prepare 2024-12-07 18:35:34 +01:00
025587c0e6 test(cli): test output default 2024-12-07 18:35:14 +01:00
6c7877b049 chore(cli): clean imports 2024-12-07 10:56:57 +01:00
09cd38a481 refactor(cli): remove debug logs 2024-12-07 10:40:15 +01:00
86cf39daf7 test(cli): initial tests for 'prepare' 2024-12-07 10:39:58 +01:00
d4a5be60f1 chore(cli): add 'text' coverage report 2024-12-07 10:34:34 +01:00
b1778d09f9 chore(cli): configure vitest 2024-12-07 10:29:31 +01:00
f77f78f459 test(cli): extract baseCommand for new 2024-12-07 09:24:22 +01:00
Ayo Ayco
56592bdeef
test(cli): add tests for cli commands (#37)
* chore(cli): add vitest & add test script

* chore: add test:cli script

* test(cli): initial tests for build command

* chore(cli): add nitropack as devDepencency for tests

* chore(cli): add vitest config

* test(cli): add tests for build command

* test(cli): add tests for new command
2024-12-07 02:44:38 +01:00
Ayo
a0dda26c12 chore(create-mcfly): patch version for release 2024-03-16 13:16:28 +01:00
Ayo
b04b7ef805 feat(create-mcfly): don't clear the terminal upon start 2024-03-16 13:14:14 +01:00
Ayo
ed4045b96d chore(config, core): patch version for release 2024-03-11 12:57:10 +01:00
Ayo Ayco
61e10e701a
fix: temporarily pin to nitropack@2.8 for evalStore not a constructor err (#36)
* fix: check if evalStore is constructor

* deps: pin nitro to 2.8

* chore: remove console.log
2024-03-11 12:51:32 +01:00
Ayo
ebb91c709d chore: patch versions; fix dep 2024-03-09 21:41:29 +01:00
Ayo
e924240c8f feat(config): show McFly name in build success 2024-03-09 21:34:29 +01:00
Ayo
798e25753f chore: fix deps 2024-03-09 21:31:00 +01:00
Ayo
b0ea97c644 chore: add core as dep to cli 2024-03-09 21:26:39 +01:00
Ayo
da849d6953 chore: bump versions 2023-12-22 05:01:21 +01:00
Ayo
cc60a683ac feat: ignore search param in resolving .html files 2023-12-22 05:00:42 +01:00
Ayo
677ac408da feat(config): update WebComponent version 2023-12-16 12:26:47 +01:00
Ayo
52345451f8 feat(core): update WebComponent version 2023-12-16 12:23:56 +01:00
Ayo
16495143d1 fix(config): wrong options for auto imports 2023-12-11 18:17:32 +01:00
Ayo
1cafa7326f feat(core, config): update WebComponent base class
- update to WebComponent v2.0.0
- provide new auto imports: html, attachEffect
2023-12-11 17:41:37 +01:00
Ayo
47edf0408d feat(create-mcfly): handle cancel event 2023-12-05 17:07:49 +01:00
Ayo
2e79b4cc7f chore(create-mcfly): bump version for release 2023-12-04 20:01:39 +01:00
Ayo
4146a5cc3d fix(create-mcfly): install deps on win32 2023-12-04 20:00:57 +01:00
Ayo
278572da89 fix(create-mcfly): install deps fail on win32
closes #26; use spawnSync instead of npm --prefix
2023-12-04 19:46:01 +01:00
Ayo
b3695f7219 chore: update links to WebComponent.io 2023-11-27 16:49:38 +01:00
Ayo
e7c7ec0e9d refactor(create-mcfly): remove console.logs 🫣 2023-11-25 12:36:09 +01:00
Ayo
7e63eb8c1d chore(create-mcfly): bump version for release 2023-11-25 12:34:13 +01:00
Ayo
e533233c5a fix(create-mcfly): npm install failing on Windows 2023-11-25 12:33:20 +01:00
Ayo
1f66e726d3 chore(core): bump versions for release 2023-11-23 22:25:27 +01:00
Ayo
12c7c7d651 chore(core): update WebComonent to v1.13.2 2023-11-23 22:24:33 +01:00
Ayo
7c69e0ba94 chore(core): bump version for release 2023-11-19 00:45:20 +01:00
Ayo
c329070dc1 feat(chore): use minified WebComponent class 2023-11-19 00:43:55 +01:00
Ayo
65b8b4a3d6 chore(core): bump version for release 2023-11-18 02:54:19 +01:00
Ayo
534de63500 feat(core): update web-component-base 2023-11-18 02:53:38 +01:00
Ayo
cb8cfd7c5e fix: apply web-component-base patch 2023-11-18 00:48:18 +01:00
Ayo
0671658197 feat(core): easy prop access on WebComponent v1.12
- update web-component-base to v1.12
- update site and template examples
2023-11-18 00:03:54 +01:00
Ayo
9ebd6e7f3b chore(cli): remove unused dep 2023-11-17 16:35:10 +01:00
Ayo Ayco
47600f5f45
feat(core): support for boolean attributes in web-component-base (#25) 2023-11-17 16:25:19 +01:00
Ayo
09e5418a3b chore(core): bump version for release 2023-11-12 16:43:24 +01:00
Ayo
93989ac1e5 chore(core): update web-component-base dep 2023-11-12 16:13:15 +01:00
Ayo
6b0e0a46f0 feat(core): allow nested objects in setup scripts 2023-11-10 22:19:51 +01:00
Ayo
111c53d2fb fix(core): allow non-element slot child 2023-11-09 11:56:20 +01:00
Ayo Ayco
17c5b810f9 feat(core): named slots (#21) 2023-11-09 11:35:14 +01:00
Ayo
51be11da89 chore(packages): update LICENSEs 2023-11-09 11:33:02 +01:00
Ayo Ayco
065209a5ad feat(core): update unpkg imported version 2023-11-09 11:32:56 +01:00
Ayo
0b101d0743 refactor(config): separate typedef 2023-11-06 22:07:03 +01:00
Ayo
09d55e65f3 chore(cli): import from 'node:' prefix 2023-11-06 22:06:31 +01:00
Ayo
60c24d6036 style(cli): make version bold 2023-11-03 23:20:41 +01:00
Ayo
52b0c69db7 feat(cli): serve to show mcfly & nitro version 2023-11-03 22:31:29 +01:00
Ayo
92e468e717 refactor(config): single imports preset for core 2023-10-31 10:02:47 +01:00
Ayo
2e4d3f6598 refactor(core): explicit exports 2023-10-31 09:53:41 +01:00
Ayo
1fa777d200 chore(cli): remove web-component-base as dep 2023-10-30 16:42:52 +01:00
Ayo
3c56af6223 refactor(create-mcfly): distribute .js instead of .mjs 2023-10-29 19:18:36 +01:00
Ayo
101eb48e5d chore(config): bump version 2023-10-29 19:11:03 +01:00
Ayo
4770410ef6 fix(config): add core as dep 2023-10-29 19:09:53 +01:00
Ayo
ef7cb4b634 feat(config): distribute .js instead of .mjs 2023-10-29 19:05:00 +01:00
Ayo
42b57c270b chore(cli): bump version 2023-10-29 19:03:08 +01:00
Ayo
dc05105432 refactor(cli): remove unused globals assets 2023-10-29 19:02:12 +01:00
Ayo
c2f7201b49 chore: patch versions 2023-10-29 18:29:02 +01:00
Ayo
b7f2ac2620 feat: auto imports 2023-10-29 18:21:43 +01:00
Ayo
de736d3177 chore: some clean up 2023-10-29 15:30:02 +01:00
Ayo
924534e98f refactor(core): clean up return types 2023-10-29 11:53:26 +01:00
Ayo
8bd1491dc8 refactor(core): add return type to useMcFlyRoute 2023-10-29 11:48:49 +01:00
Ayo
eb8f5baa49 chore(cli): bump version 2023-10-29 00:22:39 +02:00
Ayo
a4dd2d0549 fix(cli): new command no args 2023-10-29 00:20:26 +02:00
Ayo
d7297f6b3f chore: bump versions 2023-10-29 00:07:28 +02:00
Ayo
12b538a6ab fix: global route interceptor 2023-10-28 23:26:30 +02:00
Ayo
33c45c7cc5 chore: bump cli version 2023-10-28 22:50:38 +02:00
Ayo
5003d6bf9d refactor(cli): prepare steps, utils, and globals; clean up unused args 2023-10-28 22:48:58 +02:00
Ayo
c1befc44d8 chore: try file type fix for vercel 2023-10-26 22:27:31 +02:00
Ayo
969a9ddd76 feat(cli): better info on prepare script 2023-10-26 22:20:36 +02:00
Ayo
9c7cd8c43c feat(cli): declare global class 2023-10-26 22:13:40 +02:00
Ayo
27237f7e9f chore(packages): esm all-the-way 2023-10-26 21:38:30 +02:00
Ayo
5f4019cf0f refactor(cli): rename dev command to serve 2023-10-26 17:46:27 +02:00
Ayo
41a18f5d4a chore(cli): update repository directory info 2023-10-25 23:06:23 +02:00
Ayo
1efdfc5b66 feat(cli): always use latest web-component-base 2023-10-25 22:54:15 +02:00
Ayo
8a2c7e8830 chore(cli): bump versions 2023-10-25 22:43:48 +02:00
Ayo
c741bdbda9 chore(cli): add web-component-base as dependency 2023-10-25 22:42:56 +02:00
Ayo
c383ae70fa chore: update commands list for the CLI 2023-10-25 22:40:29 +02:00
Ayo
877a45a44f feat(cli): new commands build, prepare, dev 2023-10-25 22:34:36 +02:00
Ayo
5170463d0b chore: McFly CLI commands section in readme 2023-10-25 22:11:43 +02:00
Ayo
9584c2731c feat(cli): initial commands new and generate 2023-10-25 22:00:07 +02:00
Ayo
82d4131b7e feat(create-mcfly): accept project name as argument 2023-10-25 21:51:14 +02:00
Ayo
4ac710ca69 feat(cli): initial cli package 2023-10-25 21:50:25 +02:00
Ayo
7f1d6ce140 feat(create-mcfly): display prompt action progress 2023-10-25 09:36:36 +02:00
Ayo
91c25b7865 chore(packages): bump versions 2023-10-25 07:41:10 +02:00
Ayo
3e1ca3b1a6 chore(packages): update packages readme 2023-10-25 07:39:02 +02:00
Ayo
d341de9179 refactor: strictly type all packages 2023-10-24 20:51:32 +02:00
Ayo
e66ce3bbc5 refactor(core): strictly type 2023-10-24 20:47:26 +02:00
Ayo
0124a9249f fix(create-mcfly): imports not allowed in non-module js 2023-10-24 20:03:31 +02:00
Ayo
f1681d2c63 refactor(create-mcfly): no importing 2023-10-24 20:00:14 +02:00
Ayo
e623808231 refactor(create-mcfly): strictly type the script 2023-10-24 19:56:59 +02:00
Ayo
6430183a13 fix(create-mcfly): name with space causing error 2023-10-24 18:55:07 +02:00
Ayo
c26206ea21 feat(create-mcfly): colorize commands 2023-10-23 16:13:27 +02:00
Ayo
95a471bf63 chore(create-mcfly): patch version 2023-10-22 22:24:47 +02:00
Ayo
d04a7ebdcd feat(create-mcfly): default directory; some styles 2023-10-22 22:23:54 +02:00
Ayo
1881bcdcf5 refactor(create-mcfly): remove unneeded logic 2023-10-22 22:04:32 +02:00
Ayo
0c0d4e84a0 feat(create-mcfly): add reminder to install dependencies 2023-10-22 20:41:49 +02:00
Ayo
e3b42101a9 feat(create-mcfly): even more helpful messages 😱 2023-10-22 19:00:43 +02:00
Ayo
5a4722c80e feat(create-mcfly): add more helpful info 2023-10-22 18:52:51 +02:00
Ayo
cd590dcdf8 chore(config): patch version 2023-10-22 18:08:11 +02:00
Ayo
0c47d3b857 fix(config): package files typo 2023-10-22 18:05:55 +02:00
Ayo
9f59da48b1 chore(packages): add licenses 2023-10-22 18:02:08 +02:00
Ayo
5a6ed3c0e4 fix(create-mcfly): install deps not awaited 2023-10-22 17:53:33 +02:00
Ayo
4613b1bcb8 chore(create-mcfly): bump version 2023-10-22 17:33:03 +02:00
Ayo
5095f504e7 feat(create-mcfly): install deps & init git 2023-10-22 17:32:36 +02:00
Ayo
9a855041b3 chore(packages): readme image alt text fix 2023-10-22 16:18:09 +02:00
Ayo
a833dde978 chore(core): remove unneeded deps; bump patch 2023-10-22 16:15:35 +02:00
Ayo
db6e73047a chore(core): bump version 2023-10-22 03:39:44 +02:00
Ayo
f67cc3f4ca fix(core): message on error 404 2023-10-22 03:37:53 +02:00
Ayo
5bf0940868 chore(packages): initialize README; bump versions 2023-10-22 01:13:25 +02:00
Ayo
979fbf4ab5 chore(core): bump version 2023-10-22 00:51:36 +02:00
Ayo
9c2e0cfed6 fix(core): error 500 when no 404.html is found 2023-10-22 00:51:22 +02:00
Ayo
ba49dd80d1 chore(create-mcfly): bump version 2023-10-21 21:14:14 +02:00
Ayo
de89c9df5a feat(create-mcfly): catch error 2023-10-21 21:13:35 +02:00
Ayo
90fe47c352 feat(create-mcfly): generate from basic template 2023-10-21 20:25:50 +02:00
Ayo
a90bc0133e refactor: delete remaining .ts files 😱 2023-10-21 17:59:32 +02:00
Ayo
03815d3918 chore(chore): update versions 2023-10-21 17:37:50 +02:00
Ayo
abea79edd4 refactor(core): use defineRoute() instead of default export; single object param 2023-10-21 17:36:34 +02:00
Ayo
58c1e56b57 chore: update versions 2023-10-21 16:36:35 +02:00
Ayo
b913e11e10 refactor: publish .mjs files 2023-10-21 16:34:34 +02:00
Ayo
df2b47e1d6 chore(core): update version 2023-10-21 15:57:43 +02:00
Ayo
fb8192f367 fix(core): use mcfly config in eventHandler 2023-10-21 15:56:36 +02:00
Ayo
9523e751f6 feat: decouple route with @mcflyjs/core logic 2023-10-21 15:19:43 +02:00
Ayo
f7a41de130 chore(landing-page): move all deps to app workspace 2023-10-21 14:06:41 +02:00
Ayo
d87a4260e3 feat: initial packages @mcflyjs/core, @templates/basic 2023-10-21 13:32:22 +02:00
Ayo
2231ba81d7 chore: patch create-mcfly 2023-10-21 08:44:13 +02:00
Ayo
10561df08c chore(create-mcfly): package info 2023-10-21 08:42:55 +02:00