Skip to content

Commit

Permalink
feat(h5): automator
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Apr 24, 2020
1 parent b78148e commit 16d84e8
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 12 deletions.
8 changes: 6 additions & 2 deletions lib/h5/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ import Vue from 'vue'
// import 'uni-platform/view/index.css'
import initVue from 'uni-core/vue'

global.UniViewJSBridge = {
global.UniViewJSBridge = {
subscribe: UniViewJSBridge.subscribe,
publishHandler: UniViewJSBridge.publishHandler,
subscribeHandler: UniViewJSBridge.subscribeHandler
}

global.UniServiceJSBridge = {
global.UniServiceJSBridge = {
subscribe: UniServiceJSBridge.subscribe,
publishHandler: UniServiceJSBridge.publishHandler,
subscribeHandler: UniServiceJSBridge.subscribeHandler
}

Expand Down
5 changes: 3 additions & 2 deletions packages/uni-automator/dist/index.js

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions packages/uni-automator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@
"dependencies": {
"debug": "^4.1.1",
"jimp": "^0.10.1",
"licia": "^1.21.0",
"licia": "^1.21.0",
"postcss-selector-parser": "^6.0.2",
"qrcode-reader": "^1.0.4",
"qrcode-terminal": "^0.12.0",
"ws": "^7.2.3"
},
"peerDependencies": {
"puppeteer": "^3.0.1"
}
}
}
16 changes: 15 additions & 1 deletion packages/uni-h5/dist/automator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/uni-h5/dist/index.umd.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 16d84e8

Please sign in to comment.