瀏覽代碼

Add tooltip extension package

Steven Silvester 8 年之前
父節點
當前提交
c732694493
共有 3 個文件被更改,包括 62 次插入5 次删除
  1. 42 0
      src/tooltip-extension/package.json
  2. 5 5
      src/tooltip-extension/src/index.ts
  3. 15 0
      src/tooltip-extension/tsconfig.json

+ 42 - 0
src/tooltip-extension/package.json

@@ -0,0 +1,42 @@
+{
+  "name": "@jupyterlab/tooltip-extension",
+  "version": "0.1.0",
+  "description": "JupyterLab - Tooltip Extension",
+  "main": "lib/index.js",
+  "types": "lib/index.d.ts",
+  "files": [
+    "lib/*.d.ts",
+    "lib/*.js"
+  ],
+  "directories": {
+    "lib": "lib/"
+  },
+  "dependencies": {
+    "@jupyterlab/application": "^0.1.0",
+    "@jupyterlab/codeeditor": "^0.1.0",
+    "@jupyterlab/console": "^0.1.0",
+    "@jupyterlab/notebook": "^0.1.0",
+    "@jupyterlab/services": "^0.40.1",
+    "@jupyterlab/tooltip": "^0.1.0",
+    "@phosphor/coreutils": "^0.1.5",
+    "@phosphor/widgets": "^0.3.0"
+  },
+  "devDependencies": {
+    "rimraf": "^2.5.2",
+    "typescript": "^2.2.1"
+  },
+  "scripts": {
+    "build": "tsc",
+    "clean": "rimraf lib"
+  },
+  "repository": {
+    "type": "git",
+    "url": "https://github.com/jupyterlab/jupyterlab.git"
+  },
+  "author": "Project Jupyter",
+  "license": "BSD-3-Clause",
+  "bugs": {
+    "url": "https://github.com/jupyterlab/jupyterlab/issues"
+  },
+  "homepage": "https://github.com/jupyterlab/jupyterlab"
+}

+ 5 - 5
src/tooltip-extension/index.ts → src/tooltip-extension/src/index.ts

@@ -15,23 +15,23 @@ import {
 
 import {
   JupyterLab, JupyterLabPlugin
-} from '../application';
+} from '@jupyterlab/application';
 
 import {
   CodeEditor
-} from '../codeeditor';
+} from '@jupyterlab/codeeditor';
 
 import {
   IConsoleTracker
-} from '../console';
+} from '@jupyterlab/console';
 
 import {
   INotebookTracker
-} from '../notebook';
+} from '@jupyterlab/notebook';
 
 import {
   ITooltipManager, TooltipWidget
-} from '../tooltip';
+} from '@jupyterlab/tooltip';
 
 
 /**

+ 15 - 0
src/tooltip-extension/tsconfig.json

@@ -0,0 +1,15 @@
+{
+  "compilerOptions": {
+    "declaration": true,
+    "noImplicitAny": true,
+    "noEmitOnError": true,
+    "noUnusedLocals": true,
+    "module": "commonjs",
+    "moduleResolution": "node",
+    "target": "ES5",
+    "outDir": "./lib",
+    "lib": ["ES5", "ES2015.Promise", "DOM", "ES2015.Collection"],
+    "types": []
+  },
+  "include": ["src/*"]
+}