We welcome any quality bugfixes or contributions!
git clone https://github.com/microsoft/cordova-simulate.git
to any preferrable foldercd
to the folder you just cloned- Run
npm ci
- In
cordova-simulate
root folder, open terminal and runnpm link
. - In cordova application project root folder, open terminal and run
npm link cordova-simulate
. - Back to
cordova-simulate
project, add scrpit in package.json:"debug": "run-script"
(like"debug": "cd ../helloCordova && simulate"
) - Add config in launch.json:
"configurations": [
{
"name": "Launch via npm",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run-script",
"debug"
]
}
]
- Add breakpoint in cordova-simulate and run debugger to start simulating your cordova application.
Here is related documentation for the details.
You will need to complete a Contributor License Agreement (CLA). Briefly, this agreement testifies that you are granting us permission to use the submitted change according to the terms of the project's license, and that the work being submitted is under appropriate copyright.
Please submit a Contributor License Agreement (CLA) before submitting a pull request. You may visit https://cla.microsoft.com to sign digitally. Alternatively, download the agreement (Microsoft Contribution License Agreement.docx or Microsoft Contribution License Agreement.pdf), sign, scan, and email it back to [email protected]. Be sure to include your github user name along with the agreement. Once we have received the signed CLA, we'll review the request.
Your pull request should:
- Include a clear description of the change
- Be a child commit of a reasonably recent commit in the master branch
- Requests need not be a single commit, but should be a linear sequence of commits (i.e. no merge commits in your PR)
- It is desirable, but not necessary, for the tests to pass at each commit
- Have clear commit messages
- e.g. "Refactor feature", "Fix issue", "Add tests for issue"
- Include adequate tests
- At least one test should fail in the absence of your non-test code changes. If your PR does not match this criteria, please specify why
- Tests should include reasonable permutations of the target fix/change
- Include baseline changes with your change
- Ensure there are no linting issues
- To avoid line ending issues, set
autocrlf = input
andwhitespace = cr-at-eol
in your git configuration
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.