Ver Fonte

Update configs of separate toc packages

Martha Cryan há 4 anos atrás
pai
commit
af4d0a6854

+ 69 - 0
packages/toc-extension/package.json

@@ -0,0 +1,69 @@
+{
+  "name": "@jupyterlab/toc-extension",
+  "version": "4.0.0",
+  "private": false,
+  "description": "Table of Contents extension for JupyterLab",
+  "keywords": [
+    "jupyter",
+    "jupyterlab",
+    "jupyterlab-extension"
+  ],
+  "homepage": "https://github.com/jupyterlab/jupyterlab-toc",
+  "bugs": {
+    "url": "https://github.com/jupyterlab/jupyterlab-toc/issues"
+  },
+  "repository": {
+    "type": "git",
+    "url": "https://github.com/jupyterlab/jupyterlab-toc.git"
+  },
+  "license": "BSD-3-Clause",
+  "author": "Project Jupyter",
+  "files": [
+    "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
+    "schema/*.json",
+    "style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}"
+  ],
+  "main": "lib/index.js",
+  "types": "lib/index.d.ts",
+  "scripts": {
+    "build": "tsc",
+    "clean": "rimraf lib",
+    "precommit": "lint-staged",
+    "prettier": "prettier --write '**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}'",
+    "watch": "tsc -w"
+  },
+  "lint-staged": {
+    "**/*{.ts,.tsx,.css,.json,.md}": [
+      "prettier --write",
+      "git add"
+    ]
+  },
+  "dependencies": {
+    "@jupyterlab/application": "^2.0.0",
+    "@jupyterlab/apputils": "^2.0.0",
+    "@jupyterlab/docmanager": "^2.0.0",
+    "@jupyterlab/fileeditor": "^2.0.0",
+    "@jupyterlab/markdownviewer": "^2.0.0",
+    "@jupyterlab/notebook": "^2.0.0",
+    "@jupyterlab/rendermime": "^2.0.0",
+    "@jupyterlab/toc": "^4.0.0",
+    "@lumino/widgets": "^1.11.1"
+  },
+  "devDependencies": {
+    "husky": "^2.7.0",
+    "lint-staged": "^8.2.1",
+    "prettier": "^1.19.1",
+    "rimraf": "^2.7.1",
+    "tslint": "^5.20.1",
+    "tslint-config-prettier": "^1.18.0",
+    "tslint-plugin-prettier": "^2.1.0",
+    "typescript": "^3.5.2"
+  },
+  "publishConfig": {
+    "access": "public"
+  },
+  "jupyterlab": {
+    "extension": "true",
+    "schemaDir": "schema"
+  }
+}

+ 23 - 0
packages/toc-extension/tsconfig.json

@@ -0,0 +1,23 @@
+{
+  "compilerOptions": {
+    "declaration": true,
+    "noImplicitAny": true,
+    "strictNullChecks": true,
+    "skipLibCheck": true,
+    "noEmitOnError": true,
+    "noUnusedLocals": true,
+    "lib": ["DOM", "ES6"],
+    "module": "commonjs",
+    "moduleResolution": "node",
+    "target": "ES6",
+    "outDir": "lib",
+    "rootDir": "src",
+    "jsx": "react"
+  },
+  "include": ["src/**/*"],
+  "references": [
+    {
+        "path": "../toc"
+    }
+  ]
+}

+ 1 - 8
packages/toc/package.json

@@ -4,9 +4,7 @@
   "private": false,
   "description": "Table of Contents extension for JupyterLab",
   "keywords": [
-    "jupyter",
     "jupyterlab",
-    "jupyterlab-extension"
   ],
   "homepage": "https://github.com/jupyterlab/jupyterlab-toc",
   "bugs": {
@@ -39,7 +37,6 @@
     ]
   },
   "dependencies": {
-    "@jupyterlab/application": "^2.0.0",
     "@jupyterlab/apputils": "^2.0.0",
     "@jupyterlab/cells": "^2.0.0",
     "@jupyterlab/coreutils": "^4.0.0",
@@ -52,7 +49,7 @@
     "@lumino/algorithm": "^1.2.3",
     "@lumino/coreutils": "^1.4.2",
     "@lumino/messaging": "^1.3.3",
-    "@lumino/widgets": "^1.10.2",
+    "@lumino/widgets": "^1.11.1",
     "react": "^16.8.6",
     "react-dom": "^16.8.6"
   },
@@ -73,9 +70,5 @@
   },
   "publishConfig": {
     "access": "public"
-  },
-  "jupyterlab": {
-    "extension": "lib/extension.js",
-    "schemaDir": "schema"
   }
 }

+ 3 - 0
packages/toc/src/index.ts

@@ -1,6 +1,9 @@
 // Copyright (c) Jupyter Development Team.
 // Distributed under the terms of the Modified BSD License.
 
+import '../style/index.css';
+
 // Note: keep in alphabetical order...
 export * from './registry';
 export * from './toc';
+export * from './generators';

+ 1 - 0
packages/toc/tsconfig.json

@@ -1,6 +1,7 @@
 {
   "compilerOptions": {
     "declaration": true,
+    "composite": true,
     "noImplicitAny": true,
     "strictNullChecks": true,
     "skipLibCheck": true,