Commit 5898055b authored by Mark Ghiorso's avatar Mark Ghiorso

Upgraded libraries and Typescript compiler

parent f5292852
This diff is collapsed.
{
"name": "@enki-portal/enkiintro",
"version": "0.1.3",
"version": "0.1.4",
"description": "Show an intro widget in the laucher that displays ENKI information.",
"keywords": [
"extension",
"jupyter",
"jupyterlab"
"jupyterlab",
"jupyterlab-extension"
],
"homepage": "https://gitlab.com/ENKI-portal/jupyterlab_enkiintro",
"bugs": {
......@@ -26,16 +26,17 @@
"scripts": {
"build": "tsc",
"clean": "rimraf lib",
"prepare": "npm run clean && npm run build",
"watch": "tsc -w"
},
"dependencies": {
"@jupyterlab/application": "^0.16.2",
"@jupyterlab/apputils": "^0.16.3",
"@jupyterlab/launcher": "^0.16.2"
"@jupyterlab/application": "^0.19.1",
"@jupyterlab/apputils": "^0.19.1",
"@jupyterlab/launcher": "^0.19.1"
},
"devDependencies": {
"rimraf": "^2.6.1",
"typescript": "~2.6.0"
"typescript": "~3.1.1"
},
"jupyterlab": {
"extension": true
......
......@@ -50,8 +50,10 @@ function activate(app: JupyterLab, palette: ICommandPalette, launcher: ILauncher
const command: string = 'enkiinfo:open';
app.commands.addCommand(command, {
label: 'ENKI Information',
execute: () => {
label: args => (args['isPalette'] ? 'ENKI Information' : 'ENKI Info'),
caption: 'Display information about ENKI',
iconClass: args => (args['isPalette'] ? '' : 'jp-ENKIicon'),
execute: args => {
if (!widget) {
widget = new ENKIWidget();
widget.update();
......@@ -70,14 +72,12 @@ function activate(app: JupyterLab, palette: ICommandPalette, launcher: ILauncher
});
launcher.add({
displayName: 'ENKI Info',
command: command,
category: 'Other',
rank: 0,
iconClass: 'jp-ENKIicon',
callback: () => app.commands.execute(command)
rank: 0
});
palette.addItem({command, category: 'Help'});
palette.addItem({command, category: 'Help', args: { isPalette: true } });
let tracker = new InstanceTracker<Widget>({ namespace: 'ENKIinfo'});
restorer.restore(tracker, {
......
......@@ -6,9 +6,12 @@
"noUnusedLocals": true,
"module": "commonjs",
"moduleResolution": "node",
"target": "ES5",
"target": "es2015",
"outDir": "./lib",
"lib": ["ES5", "ES2015.Promise", "DOM"],
"rootDir": "./src",
"strict": true,
"strictNullChecks": false,
"lib": ["es2015", "dom"],
"types": []
},
"include": ["src/*"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment