浏览代码

Add image widget package

Steven Silvester 8 年之前
父节点
当前提交
817e6e6ef4

+ 40 - 0
src/imagewidget/package.json

@@ -0,0 +1,40 @@
+{
+  "name": "@jupyterlab/imagewidget",
+  "version": "0.1.0",
+  "description": "JupyterLab - Image Widget",
+  "main": "lib/index.js",
+  "types": "lib/index.d.ts",
+  "files": [
+    "lib/*.d.ts",
+    "lib/*.js"
+  ],
+  "directories": {
+    "lib": "lib/"
+  },
+  "dependencies": {
+    "@jupyterlab/apputils": "^0.1.0",
+    "@jupyterlab/docregistry": "^0.1.0",
+    "@phosphor/commands": "^0.1.5",
+    "@phosphor/coreutils": "^0.1.5",
+    "@phosphor/messaging": "^0.1.2",
+    "@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"
+}

+ 1 - 1
src/imagewidget/index.ts → src/imagewidget/src/index.ts

@@ -11,7 +11,7 @@ import {
 
 import {
   IInstanceTracker
-} from '../apputils';
+} from '@jupyterlab/apputils';
 
 import {
   ImageWidget

+ 1 - 1
src/imagewidget/widget.ts → src/imagewidget/src/widget.ts

@@ -11,7 +11,7 @@ import {
 
 import {
   ABCWidgetFactory, DocumentRegistry
-} from '../docregistry';
+} from '@jupyterlab/docregistry';
 
 /**
  * The class name added to a imagewidget.

+ 0 - 0
src/imagewidget/index.css → src/imagewidget/style/index.css


+ 15 - 0
src/imagewidget/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/*"]
+}