Skip to content

Commit

Permalink
Merge pull request #41 from jasongrout/jlab35
Browse files Browse the repository at this point in the history
Update to jlab 0.35 and typescript 3.1.1
  • Loading branch information
jasongrout authored Oct 5, 2018
2 parents 1715bd2 + 6819e47 commit 9667391
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ Use cookiecutter to generate a package, following the prompts to fill in the nam
cookiecutter https://github.com/jupyterlab/extension-cookiecutter-ts
```

If you'd like to generate a package for a specific JupyterLab release, use the `--checkout` option and give a tag or commit from this repository.

```
cookiecutter https://github.com/jupyterlab/extension-cookiecutter-ts --checkout v0.34
```

## A simple example

The ``src/`` directory of your new extension includes a very simple example of a working extension, written in TypeScript. Use this example as a guide to build your own extension.
8 changes: 4 additions & 4 deletions {{cookiecutter.extension_name}}/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
"scripts": {
"build": "tsc",
"clean": "rimraf lib",
"watch": "tsc -w",
"prepare": "npm run clean && npm run build"
"prepare": "npm run clean && npm run build",
"watch": "tsc -w"
},
"dependencies": {
"@jupyterlab/application": "^0.18.0"
"@jupyterlab/application": "^0.19.1"
},
"devDependencies": {
"rimraf": "^2.6.1",
"typescript": "~2.9.2"
"typescript": "~3.1.1"
},
"jupyterlab": {
"extension": true
Expand Down
5 changes: 3 additions & 2 deletions {{cookiecutter.extension_name}}/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
"moduleResolution": "node",
"noEmitOnError": true,
"noUnusedLocals": true,
"outDir": "./lib",
"target": "es2015",
"outDir": "lib",
"rootDir": "src",
"strict": true,
"strictNullChecks": false,
"target": "es2015",
"types": []
},
"include": ["src/*"]
Expand Down

0 comments on commit 9667391

Please sign in to comment.