Skip to content

Added python package scripts. #159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ __pycache__/
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@ for the frontend extension.
- JupyterLab >= 3.0

## Install

Install using jupyter:
```bash
jupyter labextension install jupyterlab-code-snippets
```
Install using pip:
```bash
pip install jupyterlab-code-snippets
```

## Troubleshoot

Expand Down Expand Up @@ -74,3 +78,7 @@ Now every change will be built locally and bundled into JupyterLab. Be sure to r
```bash
jupyter labextension uninstall jupyterlab-code-snippets
```
OR
```bash
pip uninstall jupyterlab-code-snippets
```
38 changes: 31 additions & 7 deletions code_snippet/labextension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jupyterlab-code-snippets",
"version": "1.0.4",
"version": "2.0.0",
"description": "EXPERIMENTAL: Save, reuse, and share code snippets using JupyterLab Code Snippets",
"keywords": [
"jupyter",
Expand Down Expand Up @@ -44,7 +44,9 @@
"prepare": "jlpm run clean && jlpm run build:prod",
"watch": "run-p watch:src watch:labextension",
"watch:labextension": "jupyter labextension watch .",
"watch:src": "tsc -w"
"watch:src": "tsc -w",
"test": "jest --watch",
"test:cov": "jest --collect-coverage"
},
"dependencies": {
"@jupyterlab/application": "^3.0.3",
Expand All @@ -64,23 +66,45 @@
"@lumino/dragdrop": "^1.7.1",
"@lumino/messaging": "^1.4.3",
"@lumino/properties": "^1.2.3",
"@lumino/signaling": "^1.4.3"
"@lumino/signaling": "^1.4.3",
"@lumino/widgets": "^1.13.2"
},
"devDependencies": {
"@jupyterlab/builder": "^3.0.0-rc.13",
"@typescript-eslint/eslint-plugin": "^2.27.0",
"@typescript-eslint/parser": "^2.27.0",
"eslint": "^7.5.0",
"@babel/core": "^7",
"@babel/preset-env": "^7.12.1",
"@babel/preset-react": "^7.12.5",
"@testing-library/react": "^11.1.1",
"@types/enzyme": "^3.10.8",
"@types/enzyme-adapter-react-16": "^1.0.6",
"@types/jest": "^26.0.15",
"@types/node-fetch": "^2.5.7",
"@types/react": "^16.9.56",
"@types/react-dom": "^16.9.9",
"@types/react-test-renderer": "^16.9.3",
"babel-jest": "^26.6.3",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.5",
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.20.4",
"husky": "^4.2.5",
"jest": "^26.6.3",
"jest-fetch-mock": "^3.0.3",
"lint-staged": "^10.2.13",
"mkdirp": "^1.0.3",
"npm-run-all": "^4.1.5",
"prettier": "^1.19.0",
"rimraf": "^3.0.2",
"typescript": "~4.1.3"
"typescript": "~4.1.3",
"react-test-renderer": "^17.0.1",
"ts-jest": "^26.4.4"
},
"resolutions": {
"@types/react": "^16.9.56"
},
"sideEffects": [
"style/*.css",
Expand All @@ -91,7 +115,7 @@
"schemaDir": "schema",
"outputDir": "code_snippet/labextension",
"_build": {
"load": "static/remoteEntry.11378e5cdb89337016e1.js",
"load": "static/remoteEntry.dbdbed7c413868b37118.js",
"extension": "./extension",
"style": "./style"
}
Expand All @@ -102,10 +126,10 @@
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"src/*.{js,jsx,ts,tsx}": [
"eslint --cache --fix"
],
"*.js": "eslint --cache --fix"
"src/*.js": "eslint --cache --fix"
},
"styleModule": "style/index.js"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jupyterlab-code-snippets",
"version": "1.0.4",
"version": "2.0.0",
"description": "EXPERIMENTAL: Save, reuse, and share code snippets using JupyterLab Code Snippets",
"keywords": [
"jupyter",
Expand Down Expand Up @@ -44,7 +44,9 @@
"prepare": "jlpm run clean && jlpm run build:prod",
"watch": "run-p watch:src watch:labextension",
"watch:labextension": "jupyter labextension watch .",
"watch:src": "tsc -w"
"watch:src": "tsc -w",
"test": "jest --watch",
"test:cov": "jest --collect-coverage"
},
"dependencies": {
"@jupyterlab/application": "^3.0.3",
Expand All @@ -64,23 +66,45 @@
"@lumino/dragdrop": "^1.7.1",
"@lumino/messaging": "^1.4.3",
"@lumino/properties": "^1.2.3",
"@lumino/signaling": "^1.4.3"
"@lumino/signaling": "^1.4.3",
"@lumino/widgets": "^1.13.2"
},
"devDependencies": {
"@jupyterlab/builder": "^3.0.0-rc.13",
"@typescript-eslint/eslint-plugin": "^2.27.0",
"@typescript-eslint/parser": "^2.27.0",
"eslint": "^7.5.0",
"@babel/core": "^7",
"@babel/preset-env": "^7.12.1",
"@babel/preset-react": "^7.12.5",
"@testing-library/react": "^11.1.1",
"@types/enzyme": "^3.10.8",
"@types/enzyme-adapter-react-16": "^1.0.6",
"@types/jest": "^26.0.15",
"@types/node-fetch": "^2.5.7",
"@types/react": "^16.9.56",
"@types/react-dom": "^16.9.9",
"@types/react-test-renderer": "^16.9.3",
"babel-jest": "^26.6.3",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.5",
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.20.4",
"husky": "^4.2.5",
"jest": "^26.6.3",
"jest-fetch-mock": "^3.0.3",
"lint-staged": "^10.2.13",
"mkdirp": "^1.0.3",
"npm-run-all": "^4.1.5",
"prettier": "^1.19.0",
"rimraf": "^3.0.2",
"typescript": "~4.1.3"
"typescript": "~4.1.3",
"react-test-renderer": "^17.0.1",
"ts-jest": "^26.4.4"
},
"resolutions": {
"@types/react": "^16.9.56"
},
"sideEffects": [
"style/*.css",
Expand All @@ -97,10 +121,10 @@
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"src/*.{js,jsx,ts,tsx}": [
"eslint --cache --fix"
],
"*.js": "eslint --cache --fix"
"src/*.js": "eslint --cache --fix"
},
"styleModule": "style/index.js"
}

This file was deleted.

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

This file was deleted.

Loading