Quellcode durchsuchen

Clean up release scripts and notes

Steven Silvester vor 7 Jahren
Ursprung
Commit
a380195bdb
3 geänderte Dateien mit 4 neuen und 15 gelöschten Zeilen
  1. 1 13
      RELEASE.md
  2. 1 1
      jupyterlab/package.json
  3. 2 1
      package.json

+ 1 - 13
RELEASE.md

@@ -8,18 +8,6 @@ This document guides a contributor through creating a release of JupyterLab.
 Review ``CONTRIBUTING.md``. Make sure all the tools needed to generate the
 built JavaScript files are properly installed.
 
-## Clean the repository
-
-You can remove all non-tracked files with:
-
-```bash
-git clean -xfdi
-```
-
-This would ask you for confirmation before removing all untracked files. Make
-sure the ``dist/`` folder is clean and avoid stale build from
-previous attempts.
-
 ## Create the release
 
 We publish the npm packages, a Python source package, and a Python universal binary wheel.  We also publish a conda package on conda-forge (see below).
@@ -43,7 +31,7 @@ npm run publish
 - Prep the static assets for release:
 
 ```bash
-cd jupyterlab && npm run publish && cd ..
+npm run build:static
 ```
 
 - Commit and tag and push the tag

+ 1 - 1
jupyterlab/package.json

@@ -5,8 +5,8 @@
   "scripts": {
     "build": "npm run clean && node update-core.js && webpack",
     "build:prod": "node update-core.js && webpack --devtool source-map",
+    "build:static": "node make-release.js",
     "clean": "rimraf build",
-    "publish": "node make-release.js",
     "watch": "node update-core.js && webpack --watch"
   },
   "dependencies": {

+ 2 - 1
package.json

@@ -8,6 +8,7 @@
     "build:main": "npm run build",
     "build:main:prod": "npm run build:packages && cd jupyterlab && npm run build:prod",
     "build:src": "lerna run build --scope \"@jupyterlab/!(test-|example-)*\"",
+    "build:static": "cd jupyterlab && npm run build:static",
     "build:test": "lerna run build:test",
     "clean": "node scripts/clean-packages.js examples packages",
     "clean:examples": "node scripts/clean-packages.js examples",
@@ -19,7 +20,7 @@
     "docs": "lerna run docs",
     "get:dependency": "node scripts/get-dependency.js",
     "integrity": "node scripts/package-integrity.js",
-    "publish": "npm update && npm install && npm run clean && npm run build:packages && lerna publish --force-publish=* -m \"Publish\"",
+    "publish": "npm run clean:slate && lerna publish --force-publish=* -m \"Publish\"",
     "test": "cd test && npm test",
     "test:services": "cd packages/services && npm test && npm run test:integration && cd examples/node && python main.py",
     "test:chrome": "lerna run test:chrome --stream",