anthonyshort / deku

Render interfaces using pure functions and virtual DOM
https://github.com/anthonyshort/deku/tree/master/docs
3.41k stars 130 forks source link

Provide single builded file #418

Open LMnet opened 8 years ago

LMnet commented 8 years ago

I found in the readme that the recomended way of downloading deku is npm install --save deku. But in downloaded directory I didn't find single builded deku.js file. ATM I need to build this file locally from sources. It would be great if this builded file will be the part of default install.

Also, when I'm trying to build deku locally with npm run standalone, I have this error:

➜  deku git:(master) npm run standalone

> deku@2.0.0-rc16 standalone /data/IT/Projects/deku
> browserify src/index.js -s deku -t babelify -o dist/deku.js

/data/IT/Projects/deku/src/index.js:1
import * as diff from './diff';
^
ParseError: 'import' and 'export' may appear only with 'sourceType: module'

I solved this issue with browserify lib/index.js -s deku -t babelify -o dist/deku.js command. It looks like standalone command is a bit outdated.