package.json 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. {
  2. "name": "jupyterlab_pygments",
  3. "version": "0.3.0",
  4. "description": "Pygments theme using JupyterLab CSS variables",
  5. "keywords": [
  6. "jupyter",
  7. "jupyterlab",
  8. "jupyterlab-extension"
  9. ],
  10. "homepage": "https://github.com/jupyterlab/jupyterlab_pygments",
  11. "bugs": {
  12. "url": "https://github.com/jupyterlab/jupyterlab_pygments/issues"
  13. },
  14. "license": "BSD-3-Clause",
  15. "author": {
  16. "name": "Jupyter Development Team",
  17. "email": "jupyter@googlegroups.com"
  18. },
  19. "files": [
  20. "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
  21. "style/**/*.{css,js,eot,gif,html,jpg,json,png,svg,woff2,ttf}",
  22. "style/index.js"
  23. ],
  24. "main": "lib/index.js",
  25. "types": "lib/index.d.ts",
  26. "style": "style/index.css",
  27. "repository": {
  28. "type": "git",
  29. "url": "https://github.com/jupyterlab/jupyterlab_pygments.git"
  30. },
  31. "scripts": {
  32. "build": "jlpm build:css && jlpm build:lib && jlpm build:labextension:dev",
  33. "build:css": "python generate_css.py",
  34. "build:labextension": "jupyter labextension build .",
  35. "build:labextension:dev": "jupyter labextension build --development True .",
  36. "build:lib": "tsc",
  37. "build:prod": "jlpm clean && jlpm build:css && jlpm build:lib && jlpm build:labextension",
  38. "clean": "jlpm clean:lib",
  39. "clean:all": "jlpm clean:lib && jlpm clean:labextension && jlpm clean:lintcache",
  40. "clean:labextension": "rimraf jupyterlab_pygments/labextension",
  41. "clean:lib": "rimraf lib tsconfig.tsbuildinfo style/base.css",
  42. "clean:lintcache": "rimraf .eslintcache .stylelintcache",
  43. "eslint": "jlpm eslint:check --fix",
  44. "eslint:check": "eslint . --cache --ext .ts,.tsx",
  45. "install:extension": "jlpm build",
  46. "lint": "jlpm stylelint && jlpm prettier && jlpm eslint",
  47. "lint:check": "jlpm stylelint:check && jlpm prettier:check && jlpm eslint:check",
  48. "prettier": "jlpm prettier:base --write --list-different",
  49. "prettier:base": "prettier \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
  50. "prettier:check": "jlpm prettier:base --check",
  51. "stylelint": "jlpm stylelint:check --fix",
  52. "stylelint:check": "stylelint --cache \"style/**/*.css\"",
  53. "watch": "run-p watch:src watch:labextension",
  54. "watch:labextension": "jupyter labextension watch .",
  55. "watch:src": "tsc -w"
  56. },
  57. "dependencies": {
  58. "@jupyterlab/application": "^4.0.8",
  59. "@types/node": "^20.9.0"
  60. },
  61. "devDependencies": {
  62. "@jupyterlab/builder": "^4.0.0",
  63. "@types/json-schema": "^7.0.11",
  64. "@types/react": "^18.0.26",
  65. "@types/react-addons-linked-state-mixin": "^0.14.22",
  66. "@typescript-eslint/eslint-plugin": "^6.1.0",
  67. "@typescript-eslint/parser": "^6.1.0",
  68. "css-loader": "^6.7.1",
  69. "eslint": "^8.36.0",
  70. "eslint-config-prettier": "^8.8.0",
  71. "eslint-plugin-prettier": "^5.0.0",
  72. "npm-run-all": "^4.1.5",
  73. "prettier": "3.0.3",
  74. "rimraf": "^5.0.5",
  75. "source-map-loader": "^1.0.2",
  76. "style-loader": "^3.3.1",
  77. "stylelint": "^15.10.1",
  78. "stylelint-config-prettier": "^9.0.3",
  79. "stylelint-config-recommended": "^13.0.0",
  80. "stylelint-config-standard": "^34.0.0",
  81. "stylelint-csstree-validator": "^3.0.0",
  82. "stylelint-prettier": "^4.0.0",
  83. "typescript": "~5.0.2",
  84. "yjs": "^13.5.40"
  85. },
  86. "sideEffects": [
  87. "style/*.css",
  88. "style/index.js"
  89. ],
  90. "styleModule": "style/index.js",
  91. "publishConfig": {
  92. "access": "public"
  93. },
  94. "jupyterlab": {
  95. "extension": true,
  96. "outputDir": "jupyterlab_pygments/labextension",
  97. "_build": {
  98. "load": "static/remoteEntry.5cbb9d2323598fbda535.js",
  99. "extension": "./extension",
  100. "style": "./style"
  101. }
  102. },
  103. "jupyter-releaser": {
  104. "hooks": {
  105. "before-build-npm": [
  106. "python -m pip install jupyterlab~=3.1",
  107. "jlpm"
  108. ],
  109. "before-build-python": [
  110. "jlpm clean:all"
  111. ]
  112. }
  113. },
  114. "eslintConfig": {
  115. "extends": [
  116. "eslint:recommended",
  117. "plugin:@typescript-eslint/eslint-recommended",
  118. "plugin:@typescript-eslint/recommended",
  119. "plugin:prettier/recommended"
  120. ],
  121. "parser": "@typescript-eslint/parser",
  122. "parserOptions": {
  123. "project": "tsconfig.json",
  124. "sourceType": "module"
  125. },
  126. "plugins": [
  127. "@typescript-eslint"
  128. ],
  129. "rules": {
  130. "@typescript-eslint/naming-convention": [
  131. "error",
  132. {
  133. "selector": "interface",
  134. "format": [
  135. "PascalCase"
  136. ],
  137. "custom": {
  138. "regex": "^I[A-Z]",
  139. "match": true
  140. }
  141. }
  142. ],
  143. "@typescript-eslint/no-unused-vars": [
  144. "warn",
  145. {
  146. "args": "none"
  147. }
  148. ],
  149. "@typescript-eslint/no-explicit-any": "off",
  150. "@typescript-eslint/no-namespace": "off",
  151. "@typescript-eslint/no-use-before-define": "off",
  152. "@typescript-eslint/quotes": [
  153. "error",
  154. "single",
  155. {
  156. "avoidEscape": true,
  157. "allowTemplateLiterals": false
  158. }
  159. ],
  160. "curly": [
  161. "error",
  162. "all"
  163. ],
  164. "eqeqeq": "error",
  165. "prefer-arrow-callback": "error"
  166. }
  167. },
  168. "eslintIgnore": [
  169. "node_modules",
  170. "dist",
  171. "coverage",
  172. "**/*.d.ts"
  173. ],
  174. "prettier": {
  175. "singleQuote": true,
  176. "trailingComma": "none",
  177. "arrowParens": "avoid",
  178. "endOfLine": "auto",
  179. "overrides": [
  180. {
  181. "files": "package.json",
  182. "options": {
  183. "tabWidth": 4
  184. }
  185. }
  186. ]
  187. },
  188. "stylelint": {
  189. "extends": [
  190. "stylelint-config-recommended",
  191. "stylelint-config-standard",
  192. "stylelint-prettier/recommended"
  193. ],
  194. "plugins": [
  195. "stylelint-csstree-validator"
  196. ],
  197. "rules": {
  198. "csstree/validator": true,
  199. "property-no-vendor-prefix": null,
  200. "selector-class-pattern": "^([a-z][A-z\\d]*)(-[A-z\\d]+)*$",
  201. "selector-no-vendor-prefix": null,
  202. "value-no-vendor-prefix": null
  203. }
  204. }
  205. }