Skip to content

Commit 9b5a6fd

Browse files
fcollonvalSteven Silvester
and
Steven Silvester
authored
Fix clean-package and correct toc extension (jupyterlab#10332)
* Fix clean-package and correct toc extension * Lint the code * Update packages/toc-extension/README.md Co-authored-by: Steven Silvester <[email protected]>
1 parent 56c27f8 commit 9b5a6fd

File tree

8 files changed

+27
-6
lines changed

8 files changed

+27
-6
lines changed

buildutils/src/clean-packages.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { readJSONFile } from './utils';
1111
// Get all of the packages.
1212
const basePath = path.resolve('.');
1313
const baseConfig = readJSONFile(path.join(basePath, 'package.json'));
14-
const packageConfig = baseConfig.workspaces;
14+
const packageConfig = baseConfig.workspaces.packages;
1515
const skipSource = process.argv.indexOf('packages') === -1;
1616
const skipExamples = process.argv.indexOf('examples') === -1;
1717

dev_mode/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@
285285
"@jupyterlab/statedb",
286286
"@jupyterlab/statusbar",
287287
"@jupyterlab/terminal",
288+
"@jupyterlab/toc",
288289
"@jupyterlab/tooltip",
289290
"@jupyterlab/translation",
290291
"@jupyterlab/ui-components",

jupyterlab/staging/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@
285285
"@jupyterlab/statedb",
286286
"@jupyterlab/statusbar",
287287
"@jupyterlab/terminal",
288+
"@jupyterlab/toc",
288289
"@jupyterlab/tooltip",
289290
"@jupyterlab/translation",
290291
"@jupyterlab/ui-components",

packages/toc-extension/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# @jupyterlab/toc-extension
2+
3+
A JupyterLab extension which provides an entry-point and commands for the [@jupyterlab/toc](../toc) package.

packages/toc-extension/package.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,20 @@
2424
"main": "lib/index.js",
2525
"types": "lib/index.d.ts",
2626
"style": "style/index.css",
27+
"directories": {
28+
"lib": "lib/"
29+
},
2730
"files": [
2831
"lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
2932
"style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}",
3033
"style/index.js"
3134
],
3235
"scripts": {
3336
"build": "tsc -b",
34-
"clean": "rimraf lib",
35-
"precommit": "lint-staged",
37+
"clean": "rimraf lib && rimraf tsconfig.tsbuildinfo",
38+
"docs": "typedoc src",
3639
"prepublishOnly": "npm run build",
37-
"watch": "tsc -w"
40+
"watch": "tsc -b --watch"
3841
},
3942
"dependencies": {
4043
"@jupyterlab/application": "^3.1.0-alpha.11",
@@ -49,6 +52,7 @@
4952
},
5053
"devDependencies": {
5154
"rimraf": "~3.0.0",
55+
"typedoc": "~0.20.0-beta.27",
5256
"typescript": "~4.1.3"
5357
},
5458
"publishConfig": {

packages/toc-extension/typedoc.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"out": "../../docs/api/toc-extension",
3+
"theme": "../../typedoc-theme"
4+
}

packages/toc/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
"jest": "^26.4.2",
7070
"rimraf": "~3.0.0",
7171
"ts-jest": "^26.3.0",
72+
"typedoc": "~0.20.0-beta.27",
7273
"typescript": "~4.1.3"
7374
},
7475
"publishConfig": {

typedoc.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ const packages = [
1919
'coreutils',
2020
'csvviewer-extension',
2121
'csvviewer',
22+
'debugger-extension',
23+
'debugger',
24+
'docprovider-extension',
25+
'docprovider',
2226
'docmanager-extension',
2327
'docmanager',
2428
'docregistry',
@@ -53,8 +57,6 @@ const packages = [
5357
// 'metapackage',
5458
// 'nbconvert-css',
5559
'nbformat',
56-
'shared-models',
57-
'docprovider',
5860
'notebook-extension',
5961
'notebook',
6062
'observables',
@@ -70,6 +72,7 @@ const packages = [
7072
'settingeditor-extension',
7173
'settingeditor',
7274
'settingregistry',
75+
'shared-models',
7376
'shortcuts-extension',
7477
'statedb',
7578
'statusbar-extension',
@@ -78,8 +81,12 @@ const packages = [
7881
'terminal',
7982
'theme-dark-extension',
8083
'theme-light-extension',
84+
'toc',
85+
'toc-extension',
8186
'tooltip-extension',
8287
'tooltip',
88+
'translation-extension',
89+
'translation',
8390
'ui-components-extension',
8491
'ui-components',
8592
'vdom-extension',

0 commit comments

Comments
 (0)