Bläddra i källkod

Add cells package

Steven Silvester 8 år sedan
förälder
incheckning
c0fc4b7f72

+ 4 - 4
package.json

@@ -11,16 +11,16 @@
     "@phosphor/algorithm": "^0.1.0",
     "@phosphor/application": "^0.2.0",
     "@phosphor/commands": "^0.1.3",
-    "@phosphor/coreutils": "^0.1.1",
+    "@phosphor/coreutils": "^0.1.5",
     "@phosphor/disposable": "^0.1.0",
     "@phosphor/domutils": "^0.1.1",
     "@phosphor/dragdrop": "^0.1.2",
     "@phosphor/keyboard": "^0.1.0",
-    "@phosphor/messaging": "^0.1.1",
+    "@phosphor/messaging": "^0.1.2",
     "@phosphor/properties": "^0.1.0",
-    "@phosphor/signaling": "^0.1.1",
+    "@phosphor/signaling": "^0.1.2",
     "@phosphor/virtualdom": "^0.1.0",
-    "@phosphor/widgets": "^0.2.0",
+    "@phosphor/widgets": "^0.3.0",
     "ansi_up": "^1.3.0",
     "codemirror": "^5.23",
     "d3-dsv": "^1.0.0",

+ 43 - 0
src/cells/package.json

@@ -0,0 +1,43 @@
+{
+  "name": "@jupyterlab/cells",
+  "version": "0.1.0",
+  "description": "JupyterLab - Notebook Cells",
+  "main": "lib/index.js",
+  "types": "lib/index.d.ts",
+  "files": [
+    "lib/*.d.ts",
+    "lib/*.js"
+  ],
+  "directories": {
+    "lib": "lib/"
+  },
+  "dependencies": {
+    "@jupyterlab/codeeditor": "^0.1.0",
+    "@jupyterlab/coreutils": "^0.1.0",
+    "@jupyterlab/outputarea": "^0.1.0",
+    "@jupyterlab/rendermime": "^0.1.0",
+    "@jupyterlab/services": "^0.40.1",
+    "@phosphor/coreutils": "^0.1.5",
+    "@phosphor/messaging": "^0.1.2",
+    "@phosphor/signaling": "^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"
+}

+ 0 - 0
src/cells/index.ts → src/cells/src/index.ts


+ 4 - 4
src/cells/model.ts → src/cells/src/model.ts

@@ -11,19 +11,19 @@ import {
 
 import {
   CodeEditor
-} from '../codeeditor';
+} from '../../codeeditor';
 
 import {
   IChangedArgs, nbformat
-} from '../coreutils';
+} from '../../coreutils';
 
 import {
   IObservableJSON, ObservableJSON
-} from '../coreutils';
+} from '../../coreutils';
 
 import {
   IOutputAreaModel, OutputAreaModel
-} from '../outputarea';
+} from '../../outputarea';
 
 
 /**

+ 5 - 5
src/cells/widget.ts → src/cells/src/widget.ts

@@ -23,23 +23,23 @@ import {
 
 import {
   IChangedArgs
-} from '../coreutils';
+} from '../../coreutils';
 
 import {
   CodeEditor, CodeEditorWidget
-} from '../codeeditor';
+} from '../../codeeditor';
 
 import {
   MimeModel, RenderMime
-} from '../rendermime';
+} from '../../rendermime';
 
 import {
   IObservableMap, ObservableMap
-} from '../coreutils';
+} from '../../coreutils';
 
 import {
   OutputAreaWidget
-} from '../outputarea';
+} from '../../outputarea';
 
 import {
   ICellModel, ICodeCellModel,

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


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

+ 1 - 0
src/test.js

@@ -51,6 +51,7 @@ glob(dname + '/src/*.ts', function(er, filenames) {
     }
     writeFileSync(path.resolve(dname) + '/package.json', JSON.stringify(package, null, 2));
 
+    process.chdir(dname);
     for (let i = 0; i < names.length; i++) {
         if (names[i] in package['dependencies']) {
             continue;