Skip to content

Commit 049117c

Browse files
committed
refactor directory structur
1 parent 4d0a695 commit 049117c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+77
-20950
lines changed
File renamed without changes.

README.md

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,53 @@
1-
# jupyterlab-richtext
1+
# wyswiwyg-editor
2+
3+
A WYSIWYG editor for Markdown cells in JupyterLab.
4+
5+
6+
## Requirements
7+
8+
* JupyterLab >= 0.30.0
9+
10+
## Install
11+
12+
```bash
13+
jupyter labextension install wyswiwyg-editor
14+
```
15+
16+
## Contributing
17+
18+
### Install
19+
20+
The `jlpm` command is JupyterLab's pinned version of
21+
[yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use
22+
`yarn` or `npm` in lieu of `jlpm` below.
23+
24+
```bash
25+
# Clone the repo to your local environment
26+
# Move to wyswiwyg-editor directory
27+
# Install dependencies
28+
jlpm
29+
# Build Typescript source
30+
jlpm build
31+
# Link your development version of the extension with JupyterLab
32+
jupyter labextension link .
33+
# Rebuild Typescript source after making changes
34+
jlpm build
35+
# Rebuild JupyterLab after making any changes
36+
jupyter lab build
37+
```
38+
39+
You can watch the source directory and run JupyterLab in watch mode to watch for changes in the extension's source and automatically rebuild the extension and application.
40+
41+
```bash
42+
# Watch the source directory in another terminal tab
43+
jlpm watch
44+
# Run jupyterlab in watch mode in one terminal tab
45+
jupyter lab --watch
46+
```
47+
48+
### Uninstall
49+
50+
```bash
51+
jupyter labextension uninstall wyswiwyg-editor
52+
```
53+
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

rich-text-editor/package.json renamed to package.json

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"url": "https://github.com/djupytercalpoly/jupyterlab-richtext-mode.git"
2727
},
2828
"scripts": {
29+
"test": "jest",
2930
"build": "tsc",
3031
"clean": "rimraf lib && rimraf tsconfig.tsbuildinfo",
3132
"prepare": "npm run clean && npm run build",
@@ -34,30 +35,35 @@
3435
"dependencies": {
3536
"@jupyterlab/application": "^1.0.1",
3637
"@jupyterlab/mainmenu": "^1.0.1",
37-
"@types/immutable": "^3.8.7",
38+
"@jupyterlab/notebook": "^1.0.2",
39+
"@jupyterlab/cells": "^1.0.2",
3840
"@types/prosemirror-commands": "^1.0.1",
3941
"@types/prosemirror-keymap": "^1.0.1",
4042
"@types/prosemirror-markdown": "^1.0.2",
4143
"@types/prosemirror-schema-basic": "^1.0.1",
4244
"@types/prosemirror-schema-list": "^1.0.1",
4345
"@types/prosemirror-state": "^1.2.3",
44-
"@types/react-dom": "^16.8.5",
45-
"jupyterlab": "^0.17.5",
46-
"markdown-it": "^9.0.1",
47-
"perf_hooks": "0.0.1",
4846
"prosemirror-commands": "^1.0.8",
4947
"prosemirror-example-setup": "^1.0.1",
5048
"prosemirror-keymap": "^1.0.1",
5149
"prosemirror-markdown": "^1.3.1",
5250
"prosemirror-schema-basic": "^1.0.1",
5351
"prosemirror-state": "^1.2.3",
5452
"prosemirror-view": "^1.9.11",
55-
"react-dom": "^16.8.6"
53+
"markdown-it": "^9.0.1",
54+
"react": "~16.8.4",
55+
"react-dom": "~16.8.5",
56+
"@types/react-dom": "^16.8.5"
5657
},
5758
"devDependencies": {
58-
"@types/node": "^12.6.8",
5959
"rimraf": "^2.6.1",
60-
"typescript": "~3.5.2"
60+
"typescript": "~3.5.2",
61+
"@types/node": "^12.6.8"
62+
},
63+
"jest": {
64+
"moduleNameMapper": {
65+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.ts"
66+
}
6167
},
6268
"sideEffects": [
6369
"style/*.css"

postBuild

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
jlpm
2+
jlpm build
3+
jupyter labextension link .
4+
jlpm build
5+
jupyter lab build

0 commit comments

Comments
 (0)