bare-bones vel starter and browserify/watchify with npm run scripts
$ npm run watch &
$ npm start
npm run build
- build js for productionnpm run watch
- automatically build js on file changes for developmentnpm start
- start a development server
const vel = require('vel')
const el = vel(function (h, state) {
return h('div', [
h('h1', 'clicked ' + state.n + ' times'),
h('button', { onclick: onclick }, 'click me!')
])
function onclick () {
el({ n: state.n + 1 })
}
})
document.querySelector('#content').appendChild(el({ n: 0 }))
If you like what you see, but want to add something more, fork this repo and add your additional feature to the name of the fork. Try to be specific with the name of your fork, listing the technologies used plus what features the fork adds.
Check out the list of forks to see how other people have customized this starter repo.