Explorar o código

Fix build script and use light theme in terminals

Steven Silvester %!s(int64=9) %!d(string=hai) anos
pai
achega
705ed05d29
Modificáronse 2 ficheiros con 7 adicións e 2 borrados
  1. 6 1
      examples/lab/src/plugin.ts
  2. 1 1
      package.json

+ 6 - 1
examples/lab/src/plugin.ts

@@ -81,6 +81,8 @@ class DefaultHandler {
       id: 'jupyter-plugins:new-terminal',
       command: new DelegateCommand(() => {
         let term = this._term.createTerminal();
+        term.color = 'black';
+        term.background = 'white';
         this._shell.addToMainArea(term);
       })
     }
@@ -123,7 +125,10 @@ class DefaultHandler {
     }
     this._palette.add([section]);
     this._shell.addToLeftArea(this._browser, { rank: 10 });
-    this._shell.addToMainArea(this._term.createTerminal());
+    let term = this._term.createTerminal();
+    term.color = 'black';
+    term.background = 'white';
+    this._shell.addToMainArea(term);
 
   }
 

+ 1 - 1
package.json

@@ -40,7 +40,7 @@
     "clean:example": "rimraf example/build",
     "clean": "rimraf docs/api && rimraf lib && rimraf test/coverage",
     "build:example": "tsc --project example/src && webpack --config example/webpack.conf.js",
-    "build:src": "tsc --project src",
+    "build:src": "tsc --project src && node scripts/copycss.js",
     "build:test": "tsc --project test/src && webpack --config test/webpack.conf.js",
     "build": "npm run build:src && npm run build:test",
     "docs": "typedoc --options scripts/tdoptions.json",