在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:mozilla/node-firefox-install-app开源软件地址:https://github.com/mozilla/node-firefox-install-app开源编程语言:JavaScript 90.4%开源软件介绍:node-firefox-install-app
This is part of the node-firefox project. NOTE This is a work in progress. Things will probably be missing and broken while we move from InstallationFrom gitgit clone https://github.com/mozilla/node-firefox-install-app.git
cd node-firefox-install-app
npm install If you want to update later on: cd node-firefox-install-app
git pull origin master
npm install npmnpm install node-firefox-install-app UsageinstallApp(options) // returns a Promise where
If no Installing a packaged app on a simulatorThis is done by passing the path to the app folder: var startSimulator = require('node-firefox-start-simulator');
var connect = require('node-firefox-connect');
var installApp = require('node-firefox-install-app');
startSimulator().then(function(simulator) {
connect(simulator.port).then(function(client) {
installApp({
appPath: appPath,
client: client
}).then(function(appId) {
console.log('App was installed with appId = ', appId);
}, function(error) {
console.error('App could not be installed: ', error);
});
});
});
You can have a look at the Running the testsAfter installing, you can simply run the following from the module folder: npm test To add a new unit test file, create a new file in the We use Code quality and styleBecause we have multiple contributors working on our projects, we value consistent code styles. It makes it easier to read code written by many people! :-) Our tests include unit tests as well as code quality ("linting") tests that make sure our test pass a style guide and JSHint. Instead of submitting code with the wrong indentation or a different style, run the tests and you will be told where your code quality/style differs from ours and instructions on how to fix it. HistoryThis is based on initial work on fxos-deploy by Nicola Greco. LicenseThis program is free software; it is distributed under an Apache License. CopyrightCopyright (c) 2015 Mozilla (Contributors). |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论