mcfly/templates/basic
2023-10-21 18:25:04 +02:00
..
public feat(templates): add code-block to basic template 2023-10-21 14:41:53 +02:00
routes refactor: all .ts to .js files 😱 2023-10-21 17:58:03 +02:00
src feat(templates): update footer 2023-10-21 16:51:35 +02:00
.editorconfig feat: initial packages @mcflyjs/core, @templates/basic 2023-10-21 13:32:22 +02:00
.eslintignore feat: initial packages @mcflyjs/core, @templates/basic 2023-10-21 13:32:22 +02:00
.eslintrc feat: initial packages @mcflyjs/core, @templates/basic 2023-10-21 13:32:22 +02:00
.gitignore feat: initial packages @mcflyjs/core, @templates/basic 2023-10-21 13:32:22 +02:00
.npmrc feat: initial packages @mcflyjs/core, @templates/basic 2023-10-21 13:32:22 +02:00
mcfly.config.mjs refactor: all .ts to .js files 😱 2023-10-21 17:58:03 +02:00
nitro.config.mjs refactor: all .ts to .js files 😱 2023-10-21 17:58:03 +02:00
package.json refactor: publish .mjs files 2023-10-21 16:34:34 +02:00
README.md feat(templates): update basic template readme 2023-10-21 18:25:04 +02:00
tsconfig.json feat: initial packages @mcflyjs/core, @templates/basic 2023-10-21 13:32:22 +02:00

McFly Starter Project

McFly is a no-framework framework that assists in leveraging the web platform

npm create mcfly@latest

template-basic

Features

  • Create web apps with vanilla custom elements
  • Write real .HTML files
  • Have no frameworks or reactivity libraries on the browser
  • Use server-side rendering
  • Deploy anywhere

Special directories

1. src/pages

  • file based routing for .html files
  • directly use custom elements & static fragments (no imports or registry maintenance needed)
  • use <script server:setup> to define logic that runs on the server, which then gets stripped away

2. src/components

  • custom element constructor files (only .js files for now)
  • all components are automatically registered using their file names; a hello-world.js component can be used as <hello-world>
  • static .html fragments; a my-header.html fragment can be directly used as <my-header>