Update config to allow generate proper browser builds.

This commit is contained in:
Irakli Gozalishvili 2016-10-20 13:05:04 -07:00
Родитель 15f114c859
Коммит 82ea81dfb0
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -23,6 +23,8 @@
"babel-plugin-transform-flow-strip-types": "6.4.0",
"babel-preset-es2015": "6.3.13",
"babel-register": "6.4.3",
"babelify": "7.3.0",
"browserify": "13.1.0",
"flow-bin": "0.28.0",
"reflex": "0.4.1",
"tap": "1.1.0",
@ -33,9 +35,9 @@
"tape": "tape -r babel-register test/**/*.js",
"flow": "flow check",
"start": "babel --watch --out-dir ./lib ./src",
"build-node": "babel --out-dir ./lib ./src && cp ./src/*.flow ./lib",
"build-browser": "mkdir -p dist && babel --out-file ./dist/reflex-virtual-dom-driver.js --plugins 'transform-es2015-modules-umd' ./src",
"build": "npm run build-node && npm run build-browser",
"build:node": "babel --out-dir ./lib ./src && cp ./src/*.flow ./lib",
"build:browser": "browserify --require ./src/index:reflex-virtual-dom-driver --debug --transform babelify --outfile dist/reflex-virtual-dom-driver.js",
"build": "npm run build:node",
"prepublish": "npm run build && npm run flow"
},
"repository": {