UNPKG

create-modulo

Version:

Starter projects for Modulo.html - Ready for all uses - Markdown-SSG / SSR / API-backed SPA

82 lines (48 loc) 2.4 kB
# modulo-starter 🏄️ Get ready to surf on your brand new Web Site on the World Wide Web! --- _Tip:_ A "README" is for describing a project. That means you should replace this file with a README that talks about your project, before you share it. --- ## How to use This starter project provides example usage for Modulo. - [**Read more about Modulo here (modulohtml.org)**](https://modulohtml.org/) **No installs needed:** All HTML files are browser-friendly. Double-click on index.html to view! ## Running commands 1. Step 1: Go to index.html. Bring up Dev tools (Right click, inspect, console) 2. Step 2: Do you see **`[ᵐ°dᵘ⁄o]`** logo and a list of management commands? If there are too many warnings, consider hiding them. Look for a little arrow between `[MAIN THREAD]` and `Object { }`. Click on that arrow (and possibly a `<prototype>` arrow), to expand the full command menu. 3. Step 3: Click the little arrow next to a command to run it, such as `build` or `edit` ## Files to explore - Use files like `app-example.html` and `static/components/App.html` for examples of building single-page apps with Modulo - Edit `static/index.html` and `static/components/` for _Component_ and templating examples --- ## Advanced This section explains CLI usage and server-side build automation. ### Browser automation _(requires install)_ Firefox or Chromium browser automation is ready and pre-configured with both GUI and headless modes available, _but usage incur additional installations_: ```bash npm run install-browser firefox npm run firefox-gui buildall npm run firefox buildall ``` Available browsers for installation: `firefox` and `chromium` (via _Playwright_), and `happy-dom` (DOM-only) ### OluDOM (Experimental) **Beta notice:** The Open Lightweight Utility DOM (OluDOM) is not (yet) sufficiently compatible, which is why the default build uses firefox. The template comes with a Node.js automation script for running the Modulo command menu from the CLI, which can be used via a shell wrapper (top, easier) or directly (bottom, harder): ```bash $ npm run modulo | ᵐ°dᵘ⁄o build, buildvanish, buildlib, edit, newlib, newapp, newmd [CHILD THREAD] [NO OP] $ node static/scripts/node-oludom.mjs _build/ *.* **/* index.html? | ᵐ°dᵘ⁄o build, buildvanish, buildlib, edit, newlib, newapp, newmd [CHILD THREAD] [NO OP] ```