diff --git a/.urlview b/.urlview new file mode 100644 index 0000000..54e161c --- /dev/null +++ b/.urlview @@ -0,0 +1 @@ +BROWSER=firefox diff --git a/packages/content/LICENSE b/packages/content/LICENSE new file mode 100644 index 0000000..a0cb95f --- /dev/null +++ b/packages/content/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Ayo Ayco + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/content/README.md b/packages/content/README.md new file mode 100644 index 0000000..2671b55 --- /dev/null +++ b/packages/content/README.md @@ -0,0 +1,88 @@ +

+ rRick & Morty cartoon +

+ +

McFly Content

+ +

McFly is a no-framework metaframework
that assists in building on the Web

+ +

+ + + +

+ +## Why + +I often wonder what it would look like to build sites & apps knowing just the basics. + +I thought: + +- What if I knew how to write [HTML](https://developer.mozilla.org/en-US/docs/Web/HTML) and I can have a dynamic web page from that? +- What if I knew how to build [custom elements](https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_custom_elements) and that's all the component system I needed? +- What if I can write [HTML fragments](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment) and [assemble them](https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_shadow_DOM) easily in a page? +- What if I did not have to worry about the [ever-growing number of ways to have a place on the Web](https://ayos.blog/places-in-the-web/)? + +**McFly** is my reimagination of web development: Back to the basics. Into the future. + +## Project Status + +We are currently in a Proof of Concept phase. All parts are subject to breaking changes in minor releases. + +## Try it today + +Run the following to generate a McFly starter project. + +``` +npm create mcfly@latest +``` + +## Features + +✅ Use vanilla custom elements (or sugar-coated web components)
+✅ Write server-powered .html pages
+✅ "Use the Platform™" on both server runtimes & browsers
+✅ Use server-side rendering
+✅ Deploy anywhere, even the Edge
+ +## Special directories + +**1. `./src/pages/`** + +- file-based routing for `.html` files +- directly use custom elements & static fragments (no imports or registry maintenance needed) +- use `