cordova-plugin-meteor-webapp
Advanced tools
Comparing version 1.7.3 to 1.7.4
# `cordova-plugin-meteor-webapp` Development | ||
## Setup | ||
## Running iOS Tests | ||
@@ -19,26 +19,5 @@ 1) Start with a cloned copy of the `cordova-plugin-meteor-webapp` repo: | ||
## Running npm Tests | ||
3) Create a new test Cordova app: | ||
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 ~ | ||
@@ -48,3 +27,3 @@ cordova create test-app | ||
2) Add the `cordova-plugin-meteor-webapp`, `cordova-plugin-meteor-webapp-tests`, and `cordova-plugin-test-framework` plugins: | ||
4) Add the `cordova-plugin-meteor-webapp`, `cordova-plugin-meteor-webapp-tests`, and `cordova-plugin-test-framework` plugins: | ||
@@ -58,3 +37,3 @@ ``` | ||
3) Add the `ios` platform: | ||
5) Add the `ios` platform: | ||
@@ -65,3 +44,3 @@ ``` | ||
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: | ||
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: | ||
@@ -83,3 +62,3 @@ ```json | ||
5) Update the `test-app`'s `config.xml` to point to the test runner: | ||
7) Update the `test-app`'s `config.xml` to point to the test runner: | ||
@@ -98,3 +77,3 @@ Change | ||
6) Run the tests on a device or using the iOS emulator: | ||
8) Run the tests on a device or using the iOS emulator: | ||
@@ -101,0 +80,0 @@ ``` |
{ | ||
"name": "cordova-plugin-meteor-webapp", | ||
"version": "1.7.3", | ||
"version": "1.7.4", | ||
"description": "Cordova plugin that serves a Meteor web app through a local server and implements hot code push", | ||
@@ -26,14 +26,11 @@ "cordova": { | ||
"scripts": { | ||
"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" | ||
"pretest": "ios-sim start --devicetypeid=iPhone-XS", | ||
"test": "cordova-paramedic --config ./.paramedic.config.js" | ||
}, | ||
"dependencies": { | ||
"xcode": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"cordova": "^9.0.0", | ||
"cordova": "^8.0.0", | ||
"cordova-paramedic": "github:meteor/cordova-paramedic#40df66c3efc2f0db4d66b8c172174a68c031c114", | ||
"ios-deploy": "^1.10.0-beta.3", | ||
"ios-sim": "^8.0.2" | ||
"ios-deploy": "^1.9.4", | ||
"ios-sim": "^8.0.0" | ||
} | ||
} |
module.exports = function(context) { | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
var fs = context.requireCordovaModule('fs'); | ||
var path = context.requireCordovaModule('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 = require('fs'); | ||
var path = require('path'); | ||
var xcode = require('xcode'); | ||
var fs = context.requireCordovaModule('fs'); | ||
var path = context.requireCordovaModule('path'); | ||
var xcode = context.requireCordovaModule('xcode'); | ||
var cordova_util = context.requireCordovaModule('cordova-lib/src/cordova/util.js'); | ||
@@ -6,0 +6,0 @@ var ConfigParser = context.requireCordovaModule('cordova-common').ConfigParser; |
@@ -213,2 +213,9 @@ 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) { | ||
@@ -235,3 +242,3 @@ pendingOnAndroid(); | ||
it("should only serve the new version after a page reload", function(done) { | ||
it("should only serve the new verson after a page reload", function(done) { | ||
WebAppLocalServer.onNewVersionReady(function() { | ||
@@ -238,0 +245,0 @@ expectVersionServedToEqual("version1", function() { |
Sorry, the diff of this file is not supported yet
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
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
2625118
0
21697
0
0
- Removedxcode@^2.0.0
- Removed@xmldom/xmldom@0.8.10(transitive)
- Removedbase64-js@1.5.1(transitive)
- Removedbig-integer@1.6.52(transitive)
- Removedbplist-creator@0.1.1(transitive)
- Removedbplist-parser@0.3.2(transitive)
- Removedplist@3.1.0(transitive)
- Removedsimple-plist@1.4.0(transitive)
- Removedstream-buffers@2.2.0(transitive)
- Removeduuid@3.4.0(transitive)
- Removedxcode@2.1.0(transitive)
- Removedxmlbuilder@15.1.1(transitive)