You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/CONTRIBUTING.md
+25-1
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ If you'd like to see a certain feature in flatpickr, file an issue first with re
15
15
16
16
While a lot of feature requests often don't make it to the core, they can be implemented as [plugins](https://github.com/chmln/flatpickr/tree/master/src/plugins).
17
17
18
-
### How to submit a pull requests
18
+
### How to submit a pull request
19
19
20
20
1. Fork the repository.
21
21
2. Setup the necessary dependencies by running `npm install`.
@@ -24,6 +24,30 @@ While a lot of feature requests often don't make it to the core, they can be imp
24
24
5. Make desired changes and push.
25
25
6. Go to https://github.com/flatpickr/flatpickr/compare?expand=1
26
26
27
+
### How to debug in vscode
28
+
29
+
1. Setup a local repo as above (How to submit a pull request).
30
+
2. Install the [Debugger for Chrome](https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome)
31
+
3. Add the following configuration to `${workspaceFolder}/.vscode/launch.json`
32
+
```
33
+
{
34
+
"version": "0.1.0",
35
+
"configurations": [
36
+
{
37
+
"name": "Launch Flatpickr Quick Start",
38
+
"type": "chrome",
39
+
"request": "launch",
40
+
"url": "http://localhost:8000/index.html",
41
+
"webRoot": "${workspaceFolder}"
42
+
}
43
+
]
44
+
}
45
+
```
46
+
4. Make sure the development server is started `npm start`
47
+
5. Set your desired breakpoints in the typescipt source files.
48
+
6. Click on the debug symbol on the actions bar.
49
+
7. Click on the play button to start the debug session in a new Chrome browser window.
50
+
27
51
## License
28
52
29
53
By submitting a contribution to this project, you agree to allow the project
0 commit comments