浏览代码

more cleanup

Steven Silvester 4 年之前
父节点
当前提交
87c009e945
共有 5 个文件被更改,包括 2 次插入117 次删除
  1. 1 4
      builder/package.json
  2. 0 79
      buildutils/metadata_schema.json
  3. 0 1
      buildutils/package.json
  4. 0 32
      buildutils/src/ensure-max-old-space.ts
  5. 1 1
      package.json

+ 1 - 4
builder/package.json

@@ -16,10 +16,7 @@
     "metadata_schema.json",
     "lib/*.d.ts",
     "lib/*.js.map",
-    "lib/*.js",
-    "template/package.json",
-    "template/tsconfig.json",
-    "template/src/index.ts"
+    "lib/*.js"
   ],
   "main": "lib/index.js",
   "types": "lib/index.d.ts",

+ 0 - 79
buildutils/metadata_schema.json

@@ -1,79 +0,0 @@
-{
-  "title": "JupyterLab Package Metadata",
-  "version": "0.1.0",
-  "description": "JupyterLab package.json settings.",
-  "definitions": {
-    "extension": {
-      "type": ["boolean", "string"]
-    },
-    "relativePath": {
-      "type": ["string", "null"]
-    }
-  },
-  "properties": {
-    "extension": {
-      "title": "Extension",
-      "description": "Presence of or relative path to a standard JupyterLab extension",
-      "$ref": "#/definitions/extension",
-      "default": false
-    },
-    "mimeExtension": {
-      "title": "Mime extension",
-      "description": "Presence of or relative path to a JupyterLab MIME renderer extension",
-      "$ref": "#/definitions/extension",
-      "default": false
-    },
-    "themePath": {
-      "title": "Theme path",
-      "description": "The relative path to theme files",
-      "$ref": "#/definitions/relativePath",
-      "default": null
-    },
-    "schemaDir": {
-      "title": "Schema directory",
-      "description": "The relative path to schema files",
-      "$ref": "#/definitions/relativePath",
-      "default": null
-    },
-    "outputDir": {
-      "title": "Output directory",
-      "description": "The relative path to the static assets",
-      "$ref": "#/definitions/relativePath",
-      "default": "static"
-    },
-    "sharedPackages": {
-      "title": "Shared packages",
-      "description": "Packages that should be shared (in addition to core shared packages)",
-      "type": "array",
-      "items": {
-        "type": "string"
-      }
-    },
-    "nonSharedPackages": {
-      "title": "Non-shared packages",
-      "description": "Packages that should not be shared (which can include core packages)",
-      "type": "array",
-      "items": {
-        "type": "string"
-      }
-    },
-    "singletonPackages": {
-      "title": "Singleton packages",
-      "description": "Packages that should be singletons (in addition to core singleton packages)",
-      "type": "array",
-      "items": {
-        "type": "string"
-      }
-    },
-    "nonSingleltonPackages": {
-      "title": "Non-singleton packages",
-      "description": "Packages that should not be singletons (which can include core packages)",
-      "type": "array",
-      "items": {
-        "type": "string"
-      }
-    }
-  },
-  "additionalProperties": false,
-  "type": "object"
-}

+ 0 - 1
buildutils/package.json

@@ -13,7 +13,6 @@
   "license": "BSD-3-Clause",
   "author": "Project Jupyter",
   "files": [
-    "metadata_schema.json",
     "lib/*.d.ts",
     "lib/*.js.map",
     "lib/*.js",

+ 0 - 32
buildutils/src/ensure-max-old-space.ts

@@ -1,32 +0,0 @@
-#!/usr/bin/env node
-/* -----------------------------------------------------------------------------
-| Copyright (c) Jupyter Development Team.
-| Distributed under the terms of the Modified BSD License.
-|----------------------------------------------------------------------------*/
-
-/**
- * This file is a temporary workaround to ensure that we can set
- * max_old_space by default but allow others to override it.
- *
- * When node 10 support is dropped, we can remove this file as node 12
- * should just grow as required.
- *
- * See: https://github.com/jupyterlab/jupyterlab/issues/7175
- *
- * @example
- * node ensure-max-old-space.js real-cli.js arg1 arg2
- */
-import { execFileSync } from 'child_process';
-import * as which from 'which';
-
-const MAX_OLD_SPACE = '--max_old_space_size=4096';
-
-if (!process.env.NODE_OPTIONS) {
-  process.env.NODE_OPTIONS = MAX_OLD_SPACE;
-} else if (!/--max[_\-]old[_\-]space[_\-]size/.test(process.env.NODE_OPTIONS)) {
-  process.env.NODE_OPTIONS += ` ${MAX_OLD_SPACE}`;
-}
-
-const program = which.sync(process.argv[2]);
-const args = process.argv.slice(3);
-execFileSync(program, args, { env: process.env, stdio: 'inherit' });

+ 1 - 1
package.json

@@ -27,7 +27,7 @@
     "build": "jlpm run build:dev",
     "build:builder": "cd builder && jlpm run build",
     "build:core": "cd jupyterlab/staging && jlpm && (jlpm deduplicate || jlpm) && jlpm run build",
-    "build:dev": "jlpm run integrity && jlpm run build:packages && cd dev_mode && jlpm run build",
+    "build:dev": "jlpm run integrity && jlpm run build:packages && cd dev_mode && jlpm run build && jlpm run build:builder",
     "build:dev:prod": "jlpm run integrity && jlpm run build:packages && cd dev_mode && jlpm run build:prod",
     "build:dev:prod:release": "jlpm run integrity && jlpm run build:packages && cd dev_mode && jlpm run build:prod:release",
     "build:examples": "lerna run build --scope \"@jupyterlab/example-*\"",