Skip to content

provide a convenient solution for mobile users to open pages which served by the server in iOS simulator ----- 桥接 iOS 模拟器。

Notifications You must be signed in to change notification settings

dora-js/dora-plugin-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dora-plugin-simulator

NPM version Build Status Coverage Status NPM downloads

provide a convenient solution for Mac users to open pages which served by the server in iOS simulator ----- 桥接 iOS 模拟器。

Usage_1

$ npm i dora dora-plugin-simulator -SD
$ ./node_modules/.bin/dora --plugins 'simulator?scheme=http://m.alipay.com'

Build In

more about the option, visit node-isimulator

  application: 'mobilesafari',
  bundleId: '',
  device: 'iPhone 6',
  downloadURL: '',
  prefix: 'antm',
  scheme: 'http://127.0.0.1',
  sdk: ''

Usage_2 (Recomend) with dora-plugin-config-manager

$ ./node_modules/.bin/dora --plugins 'config-manager?path=./mobile.config.js|simOpts,simulator'

Your config file should look like this:

mobile.config.js

var simOpts = {
  scheme: 'http://m.baidu.com'
};

module.exports.simOpts = simOpts;

Test

$ npm test

LICENSE

MIT

About

provide a convenient solution for mobile users to open pages which served by the server in iOS simulator ----- 桥接 iOS 模拟器。

Resources

Stars

Watchers

Forks

Packages

No packages published