瀏覽代碼

Add a launcher extension package

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

+ 39 - 0
src/launcher-extension/package.json

@@ -0,0 +1,39 @@
+{
+  "name": "@jupyterlab/launcher-extension",
+  "version": "0.1.0",
+  "description": "JupyterLab - Launcher Page 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/apputils": "^0.1.0",
+    "@jupyterlab/filebrowser": "^0.1.0",
+    "@jupyterlab/launcher": "^0.1.0",
+    "@jupyterlab/services": "^0.40.1"
+  },
+  "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"
+}

+ 4 - 4
src/launcher-extension/index.ts → src/launcher-extension/src/index.ts

@@ -7,19 +7,19 @@ import {
 
 import {
   JupyterLab, JupyterLabPlugin
-} from '../application';
+} from '@jupyterlab/application';
 
 import {
   ICommandLinker, ICommandPalette, ILayoutRestorer
-} from '../apputils';
+} from '@jupyterlab/apputils';
 
 import {
   IPathTracker
-} from '../filebrowser';
+} from '@jupyterlab/filebrowser';
 
 import {
   ILauncher, ILauncherItem, LauncherModel, LauncherWidget
-} from '../launcher';
+} from '@jupyterlab/launcher';
 
 
 /**

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