Skip to content

zpenghao/berial

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

112 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

berial logo

Berial

👿 Simple micro-front-end framework.

Build Status npm-v npm-d

Feature

  • lifecycle loop

  • shadow dom

  • scoped css

  • js sandbox

  • html loader

  • global store

Use

<one-app></one-app>

<two-app></two-app>
import { register, start } from 'berial'

register(
  'one-app',
  'http://localhost:3000/one.html',
  (location) => location.hash === '#/app1'
)
register(
  'two-app',
  'http://localhost:3000/two.html',
  (location) => location.hash === '#/app2'
)
start()

License

MIT ©yisar ©h-a-n-a

About

😈 Simple micro frontend framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 96.1%
  • JavaScript 3.9%