Browse Source

Create package nbformat

Vidar Tonaas Fauske 5 years ago
parent
commit
91a6168135

+ 2 - 0
dev_mode/package.json

@@ -138,6 +138,7 @@
     "@jupyterlab/mathjax2-extension": "~2.0.0-alpha.4",
     "@jupyterlab/metapackage": "~2.0.0-alpha.4",
     "@jupyterlab/nbconvert-css": "~2.0.0-alpha.4",
+    "@jupyterlab/nbformat": "~2.0.0-alpha.4",
     "@jupyterlab/notebook": "~2.0.0-alpha.4",
     "@jupyterlab/notebook-extension": "~2.0.0-alpha.4",
     "@jupyterlab/observables": "~3.0.0-alpha.4",
@@ -324,6 +325,7 @@
       "@jupyterlab/mathjax2-extension": "../packages/mathjax2-extension",
       "@jupyterlab/metapackage": "../packages/metapackage",
       "@jupyterlab/nbconvert-css": "../packages/nbconvert-css",
+      "@jupyterlab/nbformat": "../packages/nbformat",
       "@jupyterlab/notebook": "../packages/notebook",
       "@jupyterlab/notebook-extension": "../packages/notebook-extension",
       "@jupyterlab/observables": "../packages/observables",

+ 1 - 0
packages/metapackage/package.json

@@ -81,6 +81,7 @@
     "@jupyterlab/mathjax2": "^2.0.0-alpha.4",
     "@jupyterlab/mathjax2-extension": "^2.0.0-alpha.4",
     "@jupyterlab/nbconvert-css": "^2.0.0-alpha.4",
+    "@jupyterlab/nbformat": "^2.0.0-alpha.4",
     "@jupyterlab/notebook": "^2.0.0-alpha.4",
     "@jupyterlab/notebook-extension": "^2.0.0-alpha.4",
     "@jupyterlab/observables": "^3.0.0-alpha.4",

+ 6 - 1
packages/metapackage/tsconfig.json

@@ -4,7 +4,9 @@
     "outDir": "lib",
     "rootDir": "src"
   },
-  "include": ["src/*"],
+  "include": [
+    "src/*"
+  ],
   "references": [
     {
       "path": "../application"
@@ -239,6 +241,9 @@
     },
     {
       "path": "../vega5-extension"
+    },
+    {
+      "path": "../nbformat"
     }
   ]
 }

+ 41 - 0
packages/nbformat/package.json

@@ -0,0 +1,41 @@
+{
+  "name": "@jupyterlab/nbformat",
+  "version": "2.0.0-alpha.4",
+  "description": "Notebook format interfaces",
+  "homepage": "https://github.com/jupyterlab/jupyterlab",
+  "bugs": {
+    "url": "https://github.com/jupyterlab/jupyterlab/issues"
+  },
+  "repository": {
+    "type": "git",
+    "url": "https://github.com/jupyterlab/jupyterlab.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}"
+  ],
+  "sideEffects": [
+    "style/**/*"
+  ],
+  "main": "lib/index.js",
+  "types": "lib/index.d.ts",
+  "directories": {
+    "lib": "lib/"
+  },
+  "scripts": {
+    "build": "tsc",
+    "clean": "rimraf lib",
+    "prepublishOnly": "npm run build",
+    "watch": "tsc -w --listEmittedFiles"
+  },
+  "devDependencies": {
+    "rimraf": "~3.0.0",
+    "typescript": "~3.7.3"
+  },
+  "publishConfig": {
+    "access": "public"
+  }
+}

+ 4 - 0
packages/nbformat/src/index.ts

@@ -0,0 +1,4 @@
+/*-----------------------------------------------------------------------------
+| Copyright (c) Jupyter Development Team.
+| Distributed under the terms of the Modified BSD License.
+|----------------------------------------------------------------------------*/

+ 8 - 0
packages/nbformat/tsconfig.json

@@ -0,0 +1,8 @@
+{
+  "extends": "../../tsconfigbase",
+  "compilerOptions": {
+    "outDir": "lib",
+    "rootDir": "src"
+  },
+  "include": ["src/*"]
+}