Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-meteor-webapp

Package Overview
Dependencies
Maintainers
4
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-meteor-webapp - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1-beta.0

.idea/cordova-plugin-meteor-webapp.iml

35

DEVELOPMENT.md
# `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"
}
}

4

scripts/iosAddBridgingHeader.js
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc