Update config to allow generate proper browser builds.
This commit is contained in:
Родитель
15f114c859
Коммит
82ea81dfb0
|
@ -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": {
|
||||
|
|
Загрузка…
Ссылка в новой задаче