cordova-plugin-meteor-webapp
Advanced tools
Comparing version 1.7.0 to 1.7.1-beta.0
# `cordova-plugin-meteor-webapp` Development | ||
## Running iOS Tests | ||
## Setup | ||
@@ -19,5 +19,26 @@ 1) Start with a cloned copy of the `cordova-plugin-meteor-webapp` repo: | ||
3) Create a new test Cordova app: | ||
## Running npm Tests | ||
1) Install dependencies | ||
``` | ||
npm install | ||
``` | ||
2) Install devDependencies from package.json globally one by one | ||
``` | ||
npm install -g xxx | ||
``` | ||
Filipe: I'm not sure why it's only working when installed globally | ||
3) Run the tests | ||
``` | ||
npm test | ||
``` | ||
## Running iOS Tests | ||
1) Create a new test Cordova app: | ||
``` | ||
cd ~ | ||
@@ -27,3 +48,3 @@ cordova create test-app | ||
4) Add the `cordova-plugin-meteor-webapp`, `cordova-plugin-meteor-webapp-tests`, and `cordova-plugin-test-framework` plugins: | ||
2) Add the `cordova-plugin-meteor-webapp`, `cordova-plugin-meteor-webapp-tests`, and `cordova-plugin-test-framework` plugins: | ||
@@ -37,3 +58,3 @@ ``` | ||
5) Add the `ios` platform: | ||
3) Add the `ios` platform: | ||
@@ -44,3 +65,3 @@ ``` | ||
6) Add a [`build.json`](https://cordova.apache.org/docs/en/latest/guide/platforms/ios/#using-buildjson) file to the root of your `test-app`, that includes your Apple Developer Team ID: | ||
4) Add a [`build.json`](https://cordova.apache.org/docs/en/latest/guide/platforms/ios/#using-buildjson) file to the root of your `test-app`, that includes your Apple Developer Team ID: | ||
@@ -62,3 +83,3 @@ ```json | ||
7) Update the `test-app`'s `config.xml` to point to the test runner: | ||
5) Update the `test-app`'s `config.xml` to point to the test runner: | ||
@@ -77,3 +98,3 @@ Change | ||
8) Run the tests on a device or using the iOS emulator: | ||
6) Run the tests on a device or using the iOS emulator: | ||
@@ -80,0 +101,0 @@ ``` |
{ | ||
"name": "cordova-plugin-meteor-webapp", | ||
"version": "1.7.0", | ||
"version": "1.7.1-beta.0", | ||
"description": "Cordova plugin that serves a Meteor web app through a local server and implements hot code push", | ||
@@ -26,11 +26,14 @@ "cordova": { | ||
"scripts": { | ||
"pretest": "ios-sim start --devicetypeid=iPhone-XS", | ||
"test": "cordova-paramedic --config ./.paramedic.config.js" | ||
"pretest": "ios-sim start --devicetypeid=iPhone-11-Pro-Max", | ||
"test": "cordova-paramedic --plugin . --platform ios --target 'iPhone-11-Pro-Max' --args=--buildFlag='-UseModernBuildSystem=0' --verbose" | ||
}, | ||
"dependencies": { | ||
"xcode": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"cordova": "^8.0.0", | ||
"cordova": "^9.0.0", | ||
"cordova-paramedic": "github:meteor/cordova-paramedic#40df66c3efc2f0db4d66b8c172174a68c031c114", | ||
"ios-deploy": "^1.9.4", | ||
"ios-sim": "^8.0.0" | ||
"ios-deploy": "^1.10.0-beta.3", | ||
"ios-sim": "^8.0.2" | ||
} | ||
} |
module.exports = function(context) { | ||
var fs = context.requireCordovaModule('fs'); | ||
var path = context.requireCordovaModule('path'); | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
var cordova_util = context.requireCordovaModule('cordova-lib/src/cordova/util.js'); | ||
@@ -5,0 +5,0 @@ var ConfigParser = context.requireCordovaModule('cordova-common').ConfigParser; |
module.exports = function(context) { | ||
var fs = context.requireCordovaModule('fs'); | ||
var path = context.requireCordovaModule('path'); | ||
var xcode = context.requireCordovaModule('xcode'); | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
var xcode = require('xcode'); | ||
var cordova_util = context.requireCordovaModule('cordova-lib/src/cordova/util.js'); | ||
@@ -6,0 +6,0 @@ var ConfigParser = context.requireCordovaModule('cordova-common').ConfigParser; |
@@ -213,9 +213,2 @@ var _ = require("cordova-plugin-meteor-webapp-tests.underscore"); | ||
xit("should set application/woff for a .woff file", function(done) { | ||
fetchFromLocalServer("/some-font.woff").then(function(response) { | ||
expect(response.headers.get("Content-Type")).toEqual("application/woff"); | ||
done(); | ||
}); | ||
}); | ||
it("should set application/octet-stream for files without an extension", function(done) { | ||
@@ -242,3 +235,3 @@ pendingOnAndroid(); | ||
it("should only serve the new verson after a page reload", function(done) { | ||
it("should only serve the new version after a page reload", function(done) { | ||
WebAppLocalServer.onNewVersionReady(function() { | ||
@@ -245,0 +238,0 @@ expectVersionServedToEqual("version1", function() { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2615612
333
1
23269
2
2
+ Addedxcode@^2.0.0
+ Added@xmldom/xmldom@0.8.10(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbig-integer@1.6.52(transitive)
+ Addedbplist-creator@0.1.1(transitive)
+ Addedbplist-parser@0.3.2(transitive)
+ Addedplist@3.1.0(transitive)
+ Addedsimple-plist@1.4.0(transitive)
+ Addedstream-buffers@2.2.0(transitive)
+ Addeduuid@3.4.0(transitive)
+ Addedxcode@2.1.0(transitive)
+ Addedxmlbuilder@15.1.1(transitive)