Skip to content
/ mho Public

Experimental service-worker based build system

Notifications You must be signed in to change notification settings

ef4/mho

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mho: an experimental service-worker based javascript build tool

Run the prebuilt demo

The prebuilt binary is currently only compiled for OSX (tested on Big Sur). To try on another OS, see the next section.

  1. Prerequisite: Node with npx command.
  2. Clone this repo.
  3. cd ember-app
  4. npx mho
  5. visit localhost:8000

Building and running from source

This will build everything including the third-party deps (a step you only need to run when you want to change the app's deps).

  1. Install volta.

  2. Install rust (see https://rustup.rs)

  3. Clone this repo

  4. yarn install

  5. Start the build of the worker code: cd worker; yarn start

  6. Run the embroider build of the ember app. cd ember-app; yarn ember build

  7. Build the deps. cd deps && yarn prepare

  8. Build and run mho: cd ember-app; yarn start:mho

Orientation

When running the prebuilt demo, the mho binary contains a prebuilt copy of all the worker code, and the ember-app contains an importmap.json pointing at prebuilt dependencies on s3.

When running from scratch:

  • running the ember build puts the stage2 build output into ./out-ember-app.
  • building the deps reads from ./out-ember-app and writes into /deps/dist and ./ember-app/importmap.json
  • the worker builds into ./worker/dist
  • we run mho with command line options telling it to use the worker code from ./worker-dist and serve the deps from ./deps/dist, and the importmap points at the files served from ./deps/dist

TODOs

switch to ember beta with no modules polyfill at all!

get test suite passing

finish addon-meta crawling for the other features that are still scaffolded

add Server Sent Events to the server to trigger page refresh

About

Experimental service-worker based build system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published