0.0.2 • Published 5 years ago

lily-cli v0.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

Lily.js

This is just my Hobby UI framework, not done by a long shot :P I'm just trying to combine (what I think is) the best parts from Vue and React and make it in to a "true" WebComponents based framework (so mostly a webcomponents wrapper with two-way bindings through proxy :-D)

Right now I'm trying to get my head around WebComponents & Proxy

Check the /docs directory for a "working" example

Wanna try it out?

Install CLI tool

$ npm i -g lily-cli

Then download a seed project (boilerplate)

$ lily my-app

Example:

import Lily from '//unpkg.com/lily'
import TopBar from './components/topbar.js'

class MainView extends Lily {
  name () {
    return 'main-view'
  }

  components () {
    return {
      'top-bar': TopBar
    }
  }

  template () {
    return `
      <div class="app">
        <top-bar></top-bar>
        <button @click="hello">Hello</button>
      </div>
    `
  }

  hello () {
    console.log('Hello')
  }
}

Lily.mount(MainView)

Cheers

js-standard-style

0.0.2

5 years ago

0.0.1

5 years ago