.yarn-metadata.json 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. {
  2. "manifest": {
  3. "name": "@ijmbarr/jupyterlab_spellchecker",
  4. "version": "0.7.2",
  5. "description": "A spell checker for JupyterLab.",
  6. "keywords": [
  7. "jupyter",
  8. "jupyterlab",
  9. "jupyterlab-extension"
  10. ],
  11. "homepage": "https://github.com/jupyterlab-contrib/spellchecker",
  12. "bugs": {
  13. "url": "https://github.com/jupyterlab-contrib/spellchecker/issues"
  14. },
  15. "license": "BSD-3-Clause",
  16. "author": {
  17. "name": "JupyterLab Spellchecker Development Team"
  18. },
  19. "contributors": [
  20. {
  21. "name": "Iain Barr"
  22. },
  23. {
  24. "name": "Michał Krassowski"
  25. },
  26. {
  27. "name": "Oliver Cordes",
  28. "email": "ocordes@astro.uni-bonn.de",
  29. "url": "https://astro.uni-bonn.de/~ocordes"
  30. }
  31. ],
  32. "files": [
  33. "dictionaries/*{aff,dic}",
  34. "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
  35. "schema/**/*.{json,}",
  36. "style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}",
  37. "style/index.js"
  38. ],
  39. "main": "lib/index.js",
  40. "types": "lib/index.d.ts",
  41. "repository": {
  42. "type": "git",
  43. "url": "git+https://github.com/jupyterlab-contrib/spellchecker.git"
  44. },
  45. "scripts": {
  46. "build": "jlpm run build:lib && jlpm run build:labextension:dev",
  47. "build:prod": "jlpm run build:lib && jlpm run build:labextension",
  48. "build:labextension": "jupyter labextension build .",
  49. "build:labextension:dev": "jupyter labextension build --development True .",
  50. "build:lib": "tsc",
  51. "clean": "jlpm run clean:lib",
  52. "clean:lib": "rimraf lib tsconfig.tsbuildinfo",
  53. "clean:labextension": "rimraf jupyterlab_spellchecker/labextension",
  54. "clean:all": "jlpm run clean:lib && jlpm run clean:labextension",
  55. "eslint": "eslint . --ext .ts,.tsx --fix",
  56. "eslint:check": "eslint . --ext .ts,.tsx",
  57. "install:extension": "jupyter labextension develop --overwrite .",
  58. "prepare": "jlpm run clean && jlpm run build:prod",
  59. "watch": "run-p watch:src watch:labextension",
  60. "watch:src": "tsc -w",
  61. "watch:labextension": "jupyter labextension watch ."
  62. },
  63. "dependencies": {
  64. "@jupyterlab/application": "^3.0.3",
  65. "@jupyterlab/apputils": "^3.0.2",
  66. "@jupyterlab/cells": "^3.0.3",
  67. "@jupyterlab/codemirror": "^3.0.2",
  68. "@jupyterlab/fileeditor": "^3.0.3",
  69. "@jupyterlab/notebook": "^3.0.3",
  70. "@jupyterlab/statusbar": "^3.0.2",
  71. "@jupyterlab/ui-components": "^3.0.2",
  72. "@lumino/widgets": "^1.16.1",
  73. "@types/codemirror": "0.0.87",
  74. "typo-js": "^1.1.0"
  75. },
  76. "devDependencies": {
  77. "@jupyterlab/builder": "^3.0.0",
  78. "@jupyterlab/translation": "^3.0.0",
  79. "@lumino/coreutils": "^1.8.0",
  80. "@typescript-eslint/eslint-plugin": "^4.8.1",
  81. "@typescript-eslint/parser": "^4.8.1",
  82. "eslint": "^7.14.0",
  83. "eslint-config-prettier": "^6.15.0",
  84. "eslint-plugin-prettier": "^3.1.4",
  85. "npm-run-all": "^4.1.5",
  86. "prettier": "^2.1.1",
  87. "rimraf": "^3.0.2",
  88. "typescript": "~4.1.3"
  89. },
  90. "jupyterlab": {
  91. "discovery": {
  92. "server": {
  93. "managers": [
  94. "pip",
  95. "conda"
  96. ],
  97. "base": {
  98. "name": "jupyterlab-spellchecker"
  99. }
  100. }
  101. },
  102. "extension": true,
  103. "schemaDir": "schema",
  104. "outputDir": "jupyterlab_spellchecker/labextension"
  105. },
  106. "styleModule": "style/index.js",
  107. "_registry": "npm",
  108. "_loc": "/home/jovyan/.cache/yarn/v6/.tmp/0f557d7fd1c78911b88705aa96f14692/package.json",
  109. "readmeFilename": "README.md",
  110. "readme": "# jupyterlab-spellchecker\n\n[![Extension status](https://img.shields.io/badge/status-ready-success \"ready to be used\")](https://jupyterlab-contrib.github.io/)\n[![Github Actions Status](https://github.com/jupyterlab-contrib/spellchecker/workflows/Build/badge.svg)](https://github.com/jupyterlab-contrib/spellchecker/actions)\n[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/jupyterlab-contrib/spellchecker/master?urlpath=lab)\n[![PyPI version](https://img.shields.io/pypi/v/jupyterlab-spellchecker.svg)](https://pypi.org/project/jupyterlab-spellchecker/)\n[![Conda version](https://img.shields.io/conda/vn/conda-forge/jupyterlab-spellchecker.svg)](https://anaconda.org/conda-forge/jupyterlab-spellchecker)\n\nA JupyterLab extension highlighting misspelled words in markdown cells within notebooks and in the text files.\n\n![](https://raw.githubusercontent.com/jupyterlab-contrib/spellchecker/master/demo.gif)\n\nThe JupyterLab extension is based on [the spellchecker Jupyter Notebook extension](https://github.com/ipython-contrib/jupyter_contrib_nbextensions/tree/master/src/jupyter_contrib_nbextensions/nbextensions/spellchecker) and relies on [Typo.js](https://github.com/cfinke/Typo.js) for the actual spell checking.\nSpellchecker suggestions are available from the context menu. The style of the highlights can be customized in the *Advanced Settings Editor*.\n\nThe extension provides (Hunspell) [SCOWL](http://wordlist.aspell.net/) dictionaries for:\n- American, British, Canadian, and Australian English\n- French,\n- German (Germany, Austria, Switzerland)\n- Portuguese,\n- Spanish\n\nand will also use the Hunspell dictionaries installed in [known paths](https://github.com/jupyterlab-contrib/spellchecker/search?q=OS_SPECIFIC_PATHS) which vary by operating systems.\nIf you use JupyterLab in a browser running on a different computer than the jupyter server, please note that the dictionaries need to be installed on the server machine.\n\nYou can add custom dictionary by placing Hunspell files it in `dictionaries` folder in one of the `data` locations as returned by:\n\n```bash\njupyter --paths\n```\n\nYou should place two files with extensions `.aff` and `.dic`, and name following [BCP 47](https://datatracker.ietf.org/doc/html/rfc5646#section-2.1) standards.\nFor more details, please see the [example](#adding-dictionaries---example) below.\n\n## JupyterLab Version\nThe extension has been tested up to JupyterLab version 3.0.\n\n## Installation\n\nFor JupyterLab 3.x:\n\n```bash\npip install jupyterlab-spellchecker\n```\n\nor\n\n```bash\nconda install -c conda-forge jupyterlab-spellchecker\n```\n\nFor JupyterLab 2.x:\n\n```bash\njupyter labextension install @ijmbarr/jupyterlab_spellchecker\n```\n\n### Adding dictionaries - example\n\nIf `jupyter --paths` looks like:\n\n```\nconfig:\n /home/your_name/.jupyter\n /usr/local/etc/jupyter\n /etc/jupyter\ndata:\n /home/your_name/.local/share/jupyter\n /usr/local/share/jupyter\n /usr/share/jupyter\nruntime:\n /home/your_name/.local/share/jupyter/runtime\n```\n\nand you want to add Polish language, you would put `pl_PL.aff` and `pl_PL.dic` in `/home/your_name/.local/share/jupyter/dictionaries` (you will need to create this folder), so that the final structure looks similar to:\n\n```\n/home/your_name/.local/share/jupyter\n├── dictionaries\n│   ├── pl_PL.aff\n│   └── pl_PL.dic\n├── kernels\n│   └── julia-1.5\n│   ├── kernel.json\n│   ├── logo-32x32.png\n│   └── logo-64x64.png\n├── nbconvert\n│   └── templates\n│   ├── html\n│   └── latex\n├── nbsignatures.db\n├── notebook_secret\n└── runtime\n```\n\n#### Where to get the dictionaries from?\n\nSome good sources of dictionaries include:\n- [LibreOffice/dictionaries](https://github.com/LibreOffice/dictionaries) GitHub repository\n- [Chromium](https://chromium.googlesource.com/chromium/deps/hunspell_dictionaries/+/master) repository\n- (if you know of any other quality resources please send a PR to add them here)\n\n#### Using online dictionaries\n\nAn alternative to saving the dictionary on your own disk (or more accurately on the disk where jupyter-server is set up)\nis fetching the dictionaries from a remote URL. This requires an Internet connection to load the dictionary\n(each time when you open JupyterLab or change the dictionary), and might be useful if you are not able\nto save dictionaries on disk (e.g. when using JupyterLab on JupyterHub configured by someone else).\n\nTo configure the online dictionaries go to *Advanced Settings Editor* → *Spellchecker*\nand set `onlineDictionaries` to an array of JSON objects like in the example below:\n\n```json\n[\n {\n \"id\": \"en_US-online\",\n \"aff\": \"https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.aff\",\n \"dic\": \"https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.dic\",\n \"name\": \"My favorite variant of English\"\n }\n]\n```\n\n## Contributing\n\n### Development install\n\nNote: You will need NodeJS to build the extension package.\n\nThe `jlpm` command is JupyterLab's pinned version of\n[yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use\n`yarn` or `npm` in lieu of `jlpm` below.\n\n```bash\n# Clone the repo to your local environment\n# Change directory to the jupyterlab_spellchecker directory\n# Install package in development mode\npip install -e .\n# Link your development version of the extension with JupyterLab\njupyter labextension develop . --overwrite\n# Rebuild extension Typescript source after making changes\njlpm run build\npip install pytest\n```\n\nYou can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.\n\n```bash\n# Watch the source directory in one terminal, automatically rebuilding when needed\njlpm run watch\n# Run JupyterLab in another terminal\njupyter lab\n```\n\n### Before commit\n\nMake sure that eslint passes:\n\n```bash\njlpm run eslint:check\n```\n\nIf there are any issues it might be possible to autofix them with:\n\n```bash\njlpm run eslint\n```\n\nRun tests:\n\n```bash\npython -m pytest\n```\n",
  111. "licenseText": "BSD 3-Clause License\n\nCopyright (c) 2020, ijmbarr All rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n* Neither the name of the copyright holder nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"
  112. },
  113. "artifacts": [],
  114. "remote": {
  115. "type": "tarball",
  116. "reference": "file:../extensions/ijmbarr-jupyterlab_spellchecker-0.7.2.tgz",
  117. "registry": "npm",
  118. "hash": "",
  119. "cacheIntegrity": "sha1-NqxH7SNfW8U3T1qy/gbdMRjXWQg="
  120. },
  121. "registry": "npm",
  122. "hash": "36ac47ed235f5bc5374f5ab2fe06dd3118d75908"
  123. }