Skip to content

Commit 42a58de

Browse files
authored
Merge pull request #272 from Microsoft/release/0.4.0
Migrate to [email protected]
2 parents e40f269 + 4fb20a3 commit 42a58de

File tree

5 files changed

+123
-52
lines changed

5 files changed

+123
-52
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ simulate [<platform>] [--target=<browser>]
2121
Where:
2222

2323
* **platform** is any Cordova platform that has been added to your project. Defaults to `browser`.
24-
* **browser** is the name of the browser to launch your app in. Can be any of the following: `chrome`, `chromium`, `edge`, `firefox`, `ie`, `opera`, `safari`. Defaults to `chrome`.
24+
* **browser** is the name of the browser to launch your app in. Can be any of the following: `default`, `chrome`, `chromium`, `edge`, `firefox`, `ie`, `opera`, `safari`.
2525

2626
## API
2727
Use `require('cordova-simulate')` to launch a simulation via the API:
@@ -40,7 +40,7 @@ Where `opts` is an object with the following properties (all optional):
4040
Supported `windows` devices are `Lumia930`, `Lumia950` and `SurfacePro`. Supported generic devices (which will use the
4141
`browser` platform) are `Generic320x480`, `Generic320x568`, `Generic360x640`, `Generic384x640`, `Generic412x732`,
4242
`Generic768x1024`, `Generic800x1280` and `Generic1920x1080`.
43-
* **target** - the name of the browser to launch your app in. Can be any of the following: `chrome`, `chromium`, `edge`, `firefox`, `ie`, `opera`, `safari`. Defaults to `chrome`.
43+
* **target** - the name of the browser to launch your app in. Can be any of the following: `default`, `chrome`, `chromium`, `edge`, `firefox`, `ie`, `opera`, `safari`.
4444
* **port** - the desired port for the server to use. Defaults to `8000`.
4545
* **lang** - the language to display in the interface (does not impact console output). Supported values (case-insensitive)
4646
are `cs` (Czech), `de` (German), `es` (Spanish), `fr` (French), `it` (Italian), `ja` (Japanese), `ko` (Korean), `pl` (Polish),

RELEASENOTES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# cordova-simulate Release Notes
22

3+
### 0.4.0 (June 21, 2018)
4+
* Migrate to [[email protected]](https://github.com/apache/cordova-serve/releases/tag/rel%2F2.0.1)
5+
* Fixed work with Cordova Android 7.0.0
6+
37
### 0.3.15 (June 18, 2018)
48
* Fixed rendering in Chrome ([#265](https://github.com/Microsoft/cordova-simulate/pull/265))
59
* Fixed switcher for radio buttons in camera plugin ([#268](https://github.com/Microsoft/cordova-simulate/pull/268))

package-lock.json

Lines changed: 114 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cordova-simulate",
3-
"version": "0.3.15",
3+
"version": "0.4.0",
44
"description": "Simulates your Cordova application in the browser.",
55
"main": "src/simulate.js",
66
"bin": {
@@ -31,7 +31,7 @@
3131
"browserify": "^13.0.1",
3232
"chalk": "^1.1.1",
3333
"cordova-registry-mapper": "^1.1.12",
34-
"cordova-serve": "^1.0.0",
34+
"cordova-serve": "^2.0.1",
3535
"csp-parse": "^0.0.2",
3636
"glob": "^7.0.5",
3737
"minimist": "^1.2.0",

src/simulate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var launchBrowser = function (target, url) {
99
};
1010

1111
var simulate = function (opts) {
12-
var target = opts.target || 'chrome';
12+
var target = opts.target || 'default';
1313
var simulator = new Simulator(opts);
1414

1515
return simulator.startSimulation()

0 commit comments

Comments
 (0)