@@ -54,9 +54,9 @@ To run the development version of nbgather, run:
54
54
55
55
``` bash
56
56
git clone < this-repository-url> # clone the repository
57
- jlpm install # download dependencies
57
+ npm install # download dependencies
58
58
jupyter labextension link . # install this package in Jupyter Lab
59
- jlpm run watch # automatically recompile source code
59
+ npm run watch # automatically recompile source code
60
60
jupyter lab --watch # launch Jupyter Lab, automatically re-load extension
61
61
```
62
62
@@ -74,46 +74,22 @@ a pull request, as described below:
74
74
### Formatting the code
75
75
76
76
Before submitting a pull request with changed code, format the code
77
- files by running ` jlpm run format:all` .
77
+ files by running ` npm run format:all` .
78
78
79
79
### Testing the code
80
80
81
- The tests assume you have Google Chrome installed on your
82
- computer. Because this plugin depends on Jupyter Lab and in
83
- turn on browser functionality, some of these tests need a
84
- browser to run in.
85
-
86
81
To run the tests from the command line, call:
87
82
88
83
``` bash
89
- jlpm run test
90
- ```
91
-
92
- Wait a few seconds while the code compiles, and then you
93
- should see the results of running the tests. The process
94
- will continue to live after the tests finish running---it
95
- will recompile and re-run the tests whenever the test code
96
- changes. Type Ctrl+C to abort the command at any time.
97
-
98
- Note that running tests with this command may interfere with
99
- you opening Chrome browsers. If that happens, cancel the
100
- command, open Chrome, and then restart the command.
101
-
102
- To debug the tests, call:
103
-
104
- ``` bash
105
- jlpm run test:debug
84
+ npm run test
106
85
```
107
86
108
- This will launch a Chrome window. Click the ** DEBUG**
109
- button in the page that opens. Launch the Chrome developer
110
- tools (View -> Developer -> Developer Tools). The "Console"
111
- will show the test results, with one line for each test. In
112
- the "Sources" tab, you can open scripts using the file prompt
113
- (Cmd + P on Mac, Ctrl + P on Windows) and set breakpoints in
114
- the code. When you refresh the page, the tests will be run
115
- again, and the debugger will trigger when the first
116
- breakpoint is reached.
87
+ The first time you run tests, they will take about a minute
88
+ to finish. The second time, and all subsequent times, the
89
+ tests will take only a few seconds. The first test run takes
90
+ longer because the Jest test runner transpiles dependencies
91
+ like the '@jupyterlab ' libraries into a dialect of
92
+ JavaScript it expects before running the tests.
117
93
118
94
### Troubleshooting
119
95
0 commit comments