File tree 10 files changed +1191
-1093
lines changed
10 files changed +1191
-1093
lines changed Original file line number Diff line number Diff line change 24
24
source /workspace/bin/activate-env.sh
25
25
micromamba install -n base -y -c conda-forge python=3.11 nodejs=18
26
26
source /workspace/bin/activate-env.sh
27
- python -m pip install -e ".[dev,test]" && jlpm && jlpm run build && jlpm develop
27
+ python -m pip install -e ".[dev,test]" && jlpm run build && jlpm develop
28
28
gp sync-done setup
29
29
command : |
30
30
gp sync-done setup
Original file line number Diff line number Diff line change @@ -94,6 +94,17 @@ Running the end to end tests in headful mode will trigger something like the fol
94
94
95
95
![ playwight-headed-demo] ( https://user-images.githubusercontent.com/591645/141274633-ca9f9c2f-eef6-430e-9228-a35827f8133d.gif )
96
96
97
+ ## Tasks caching
98
+
99
+ The repository is configured to use the Lerna caching system (via ` nx ` ) for some of the development scripts.
100
+
101
+ This helps speed up rebuilds when running ` jlpm run build ` multiple times to avoid rebuilding packages that have not changed on disk.
102
+
103
+ To learn more about Lerna caching:
104
+
105
+ - https://lerna.js.org/docs/features/cache-tasks
106
+ - https://nx.dev/core-features/cache-task-results
107
+
97
108
### Updating reference snapshots
98
109
99
110
Often a PR might make changes to the user interface, which can cause the visual regression tests to fail.
Original file line number Diff line number Diff line change 169
169
"@jupyterlab/tooltip-extension" : " ^4.0.3" ,
170
170
"@jupyterlab/translation-extension" : " ^4.0.3" ,
171
171
"@jupyterlab/ui-components-extension" : " ^4.0.3" ,
172
- "@jupyterlab/vega5-extension" : " ^4.0.3"
172
+ "@jupyterlab/vega5-extension" : " ^4.0.3" ,
173
+ "react" : " ^18.2.0" ,
174
+ "react-dom" : " ^18.2.0" ,
175
+ "yjs" : " ^13.5.40"
173
176
},
174
177
"devDependencies" : {
175
178
"@jupyterlab/builder" : " ^4.0.3" ,
Original file line number Diff line number Diff line change 1
1
{
2
- "npmClient " : " jlpm " ,
2
+ "$schema " : " node_modules/lerna/schemas/lerna-schema.json " ,
3
3
"version" : " independent" ,
4
4
"useWorkspaces" : true
5
5
}
Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " ./node_modules/nx/schemas/nx-schema.json" ,
3
+ "tasksRunnerOptions" : {
4
+ "default" : {
5
+ "runner" : " nx/tasks-runners/default" ,
6
+ "options" : {
7
+ "cacheableOperations" : [
8
+ " build" ,
9
+ " build:prod" ,
10
+ " build:lib" ,
11
+ " build:labextension:dev" ,
12
+ " build:labextension"
13
+ ]
14
+ }
15
+ }
16
+ },
17
+ "namedInputs" : {
18
+ "default" : [" {projectRoot}/**/*" ]
19
+ },
20
+ "targetDefaults" : {
21
+ "build:lib" : {
22
+ "dependsOn" : [" ^build:lib" ],
23
+ "inputs" : [" default" , " ^default" ],
24
+ "outputs" : [" {projectRoot}/lib" ]
25
+ },
26
+ "build" : {
27
+ "dependsOn" : [" ^build" ],
28
+ "inputs" : [" default" , " ^default" ]
29
+ },
30
+ "build:prod" : {
31
+ "dependsOn" : [" ^build:prod" ],
32
+ "inputs" : [" default" , " ^default" ]
33
+ }
34
+ }
35
+ }
Original file line number Diff line number Diff line change 19
19
" packages/*"
20
20
]
21
21
},
22
+ "nx" : {},
22
23
"scripts" : {
23
24
"build" : " lerna run build" ,
24
- "build:prod" : " lerna run build:prod" ,
25
+ "build:lib" : " lerna run build:lib" ,
26
+ "build:prod" : " lerna run build:prod --skip-nx-cache" ,
25
27
"build:test" : " lerna run build:test" ,
26
28
"build:utils" : " cd buildutils && npm run build" ,
27
29
"clean" : " lerna run clean" ,
50
52
"eslint-plugin-jest" : " ^27.2.1" ,
51
53
"eslint-plugin-prettier" : " ^4.2.1" ,
52
54
"eslint-plugin-react" : " ^7.32.2" ,
53
- "lerna" : " ^6.5.1 " ,
55
+ "lerna" : " ^6.6.2 " ,
54
56
"npm-run-all" : " ^4.1.5" ,
55
57
"prettier" : " ^2.8.5" ,
56
58
"rimraf" : " ^3.0.2" ,
57
59
"typescript" : " ~5.0.2"
60
+ },
61
+ "resolutions" : {
62
+ "@types/react" : " ^18.0.26" ,
63
+ "react" : " ^18.2.0" ,
64
+ "yjs" : " ^13.5.40"
58
65
}
59
66
}
Original file line number Diff line number Diff line change 38
38
"watch" : " tsc -b --watch"
39
39
},
40
40
"dependencies" : {
41
+ "@jupyter-notebook/application" : " ^7.0.0" ,
41
42
"@jupyterlab/application" : " ^4.0.3" ,
42
43
"@jupyterlab/coreutils" : " ^6.0.3" ,
43
44
"@jupyterlab/docmanager" : " ^4.0.3" ,
Original file line number Diff line number Diff line change 4
4
"outDir" : " lib" ,
5
5
"rootDir" : " src"
6
6
},
7
- "include" : [" src/**/*" ]
7
+ "include" : [" src/**/*" ],
8
+ "references" : [
9
+ {
10
+ "path" : " ../application"
11
+ }
12
+ ]
8
13
}
Original file line number Diff line number Diff line change 30
30
" style/index.js"
31
31
],
32
32
"scripts" : {
33
- "build" : " jlpm run build:lib && jlpm run build: labextension:dev" ,
33
+ "build" : " jlpm run build:labextension:dev" ,
34
34
"build:labextension" : " jupyter labextension build ." ,
35
35
"build:labextension:dev" : " jupyter labextension build --development True ." ,
36
- "build:lib" : " tsc" ,
37
- "build:prod" : " jlpm run build:lib && jlpm run build: labextension" ,
36
+ "build:lib" : " tsc -b " ,
37
+ "build:prod" : " jlpm run build:labextension" ,
38
38
"clean" : " jlpm run clean:lib && jlpm run clean:labextension" ,
39
39
"clean:labextension" : " rimraf ../../notebook/labextension" ,
40
40
"clean:lib" : " rimraf lib tsconfig.tsbuildinfo" ,
41
41
"watch" : " run-p watch:src watch:labextension" ,
42
42
"watch:labextension" : " jupyter labextension watch ." ,
43
43
"watch:src" : " tsc -w"
44
44
},
45
+ "nx" : {
46
+ "targets" : {
47
+ "build:labextension:dev" : {
48
+ "dependsOn" : [
49
+ " ^build:lib" ,
50
+ " build:lib"
51
+ ],
52
+ "outputs" : [
53
+ " {workspaceRoot}/notebook/labextension" ,
54
+ " {workspaceRoot}/notebook/labextension/build_log.json"
55
+ ]
56
+ },
57
+ "build:labextension" : {
58
+ "dependsOn" : [
59
+ " ^build:lib" ,
60
+ " build:lib"
61
+ ],
62
+ "outputs" : [
63
+ " {workspaceRoot}/notebook/labextension"
64
+ ]
65
+ },
66
+ "build" : {
67
+ "dependsOn" : [
68
+ " build:labextension:dev"
69
+ ]
70
+ },
71
+ "build:prod" : {
72
+ "dependsOn" : [
73
+ " build:labextension"
74
+ ]
75
+ }
76
+ }
77
+ },
45
78
"dependencies" : {
46
79
"@jupyter-notebook/application" : " ^7.0.0" ,
47
80
"@jupyterlab/application" : " ^4.0.3" ,
You can’t perform that action at this time.
0 commit comments