GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update documentation (#515) · caijunjun/vscode-react-native@2af998b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github
    • CONTRIBUTING.md
  • CONTRIBUTING.md
  • README.md
  • doc
    • customization.md
    • debugging.md
    • expo.md
    • intellisense.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/CONTRIBUTING.md‎

Copy file name to clipboardExpand all lines: .github/CONTRIBUTING.md
-57Lines changed: 0 additions & 57 deletions
This file was deleted.
Collapse file

‎CONTRIBUTING.md‎

Copy file name to clipboard
+55Lines changed: 55 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
## Development setup
2+
We welcome any quality bugfixes or contributions!
3+
4+
To avoid a conflicts with your existing installation, delete the installed extension at `~/.vscode/extensions/vsmobile.vscode-react-native`.
5+
6+
### Windows
7+
* In `C:/Users/<username>/.vscode/extensions/`, `git clone` this repository
8+
9+
### macOS/Linux
10+
* `git clone` this repository
11+
* Run `ln -s <path to repo> ~/.vscode/extensions/vscode-react-native`
12+
* You could clone it to the extensions directory if you want, but working with hidden folders in macOS can be a pain.
13+
14+
### Then...
15+
* `cd` to the folder you just cloned
16+
* Run `npm install -g gulp` and `npm install`
17+
* You may see an error if `bufferutil` or `utf-8-validate` fail to build. These native modules required by `ws` are optional and the debug adapter should work fine without them.
18+
* Run `gulp build`
19+
20+
## Debugging
21+
There are currently 3 components to our extension: The extension running in the VS Code process, the debug adapter, and some code wrapping the user react-native code which is launched by the debug adapter. These are all debugged in different ways:
22+
23+
* To debug the extension process itself, in VS Code run the `Launch Extension` debug target which will spawn a new instance of VS Code with the extension installed. You can set breakpoints in the TypeScript and debug things such as extension activation and the command palette.
24+
25+
* To debug the code running in the same process as the React Native code, open up an instance of VS Code running the extension on a React Native project. From this instance, open up the TypesSript file in the extension codebase that you wish to debug and add breakpoints. Now, when you launch the react-native project, you should hit breakpoints in the extension code wrapper.
26+
27+
* To debug the debug adapter, open the extension in VS Code and run the `Debug debugger` launch target. This will start the debug adapter as a server rather than standalone process waiting for debug sessions to connect. Then inside a React Native project add `"debugServer": 4712` to the configuration in `launch.json` you will use to start debugging to get it to use the standalone instance. Notice that before debugging the adapter, you must ensure that `debugger/nodeDebugLocation.json` contains a `nodeDebugPath` entry which points to the location of the node debug adapter extension - to do so you could just run the extension normally and open a React Native project to generate this file.
28+
29+
## Testing
30+
There is a set of mocha tests for the debug adapter which can be run with `npm test`, and a set of mocha tests for the other functionality run as part of the `test` launch config. Also run `gulp tslint` to check your code against our tslint rules.
31+
32+
See the project under test/testProjcet/ for a sample project that should build and compile, allow debugging of plugins and merges, and enable IntelliSense for plugins.
33+
34+
## Legal
35+
You must 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.
36+
37+
Please submit a Contributor License Agreement (CLA) before submitting a pull request. You may visit [https://cla.microsoft.com](https://cla.microsoft.com) to sign the agreement digitally. Alternatively, download the agreement from ([Microsoft Contribution License Agreement.docx](https://www.codeplex.com/Download?ProjectName=typescript&DownloadId=822190) or [Microsoft Contribution License Agreement.pdf](https://www.codeplex.com/Download?ProjectName=typescript&DownloadId=921298)), sign, scan, and email it back to <[email protected]>. Be sure to include your github user name along with a copy of the signed agreement. Once we have received the signed CLA, we'll review the request.
38+
39+
## Sending a PR
40+
Pull requests should:
41+
42+
* Include a clear description of the proposed change
43+
* Be a child commit of a reasonably recent commit in the **master** branch
44+
* Requests need not be a single commit, but should be a linear sequence of commits (i.e. no merge commits in your PR)
45+
* Have clear commit messages
46+
* e.g. "Refactor feature", "Fix issue", "Add tests for issue"
47+
* Include adequate tests
48+
* 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
49+
* Tests should include reasonable permutations of the target fix/change
50+
* Include baseline changes with your change
51+
* Have linting issues (`gulp tslint`)
52+
53+
It is desirable, but not necessary, for the tests to pass at each commit.
54+
55+
To avoid line ending issues, set `autocrlf = input` and `whitespace = cr-at-eol` in your system's git configuration.

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.