Advertisement
Guest User

package.json

a guest
Jun 21st, 2024
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.09 KB | None | 0 0
  1. {
  2. "name": "unicodelab-ts",
  3. "version": "0.1.0",
  4. "description": "A JupyterLab extension to add Unicode capabilities.",
  5. "keywords": [
  6. "jupyter",
  7. "jupyterlab",
  8. "jupyterlab-extension"
  9. ],
  10. "homepage": "https://gitlab.cas.mcmaster.ca/nagyj2/unicodelab-ts",
  11. "bugs": {
  12. "url": "https://gitlab.cas.mcmaster.ca/nagyj2/unicodelab-ts/issues"
  13. },
  14. "license": "BSD-3-Clause",
  15. "author": {
  16. "name": "Jason Nagy",
  17. "email": "[email protected]"
  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. "src/**/*.{ts,tsx}",
  23. "schema/*.json"
  24. ],
  25. "main": "lib/index.js",
  26. "types": "lib/index.d.ts",
  27. "style": "style/index.css",
  28. "repository": {
  29. "type": "git",
  30. "url": "https://gitlab.cas.mcmaster.ca/nagyj2/unicodelab-ts.git"
  31. },
  32. "scripts": {
  33. "build": "jlpm build:lib && jlpm build:labextension:dev",
  34. "build:prod": "jlpm clean && jlpm build:lib:prod && jlpm build:labextension",
  35. "build:labextension": "jupyter labextension build .",
  36. "build:labextension:dev": "jupyter labextension build --development True .",
  37. "build:lib": "jlpm build:parser && tsc --sourceMap",
  38. "build:lib:prod": "jlpm build:parser && tsc",
  39. "build:parser": "lezer-generator src/algorithm.grammar -o src/algorithm.js",
  40. "clean": "jlpm clean:lib",
  41. "clean:lib": "rimraf lib tsconfig.tsbuildinfo",
  42. "clean:lintcache": "rimraf .eslintcache .stylelintcache",
  43. "clean:labextension": "rimraf unicodelab_ts/labextension unicodelab_ts/_version.py",
  44. "clean:parser": "rimraf src/algorithm.js src/algorithm.terms.js",
  45. "clean:all": "jlpm clean:lib && jlpm clean:labextension && jlpm clean:lintcache && jlpm clean:parser",
  46. "eslint": "jlpm eslint:check --fix",
  47. "eslint:check": "eslint . --cache --ext .ts,.tsx",
  48. "install:extension": "jlpm build",
  49. "lint": "jlpm stylelint && jlpm prettier && jlpm eslint",
  50. "lint:check": "jlpm stylelint:check && jlpm prettier:check && jlpm eslint:check",
  51. "prettier": "jlpm prettier:base --write --list-different",
  52. "prettier:base": "prettier \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
  53. "prettier:check": "jlpm prettier:base --check",
  54. "stylelint": "jlpm stylelint:check --fix",
  55. "stylelint:check": "stylelint --cache \"style/**/*.css\"",
  56. "watch": "run-p watch:src watch:labextension",
  57. "watch:src": "tsc -w --sourceMap",
  58. "watch:labextension": "jupyter labextension watch ."
  59. },
  60. "dependencies": {
  61. "@codemirror/language": "^6.10.1",
  62. "@codemirror/legacy-modes": "^6.4.0",
  63. "@jupyterlab/application": "^4.0.0",
  64. "@jupyterlab/codemirror": "^4.2.0",
  65. "@jupyterlab/mainmenu": "^4.2.0",
  66. "@jupyterlab/notebook": "^4.2.0",
  67. "@jupyterlab/settingregistry": "^4.0.0",
  68. "@lezer/generator": "^1.7.0",
  69. "@lezer/highlight": "^1.2.0",
  70. "@lezer/lr": "^1.4.1",
  71. "minipass": "^7.1.2"
  72. },
  73. "devDependencies": {
  74. "@jupyterlab/builder": "^4.0.0",
  75. "@types/json-schema": "^7.0.11",
  76. "@types/react": "^18.0.26",
  77. "@types/react-addons-linked-state-mixin": "^0.14.22",
  78. "@typescript-eslint/eslint-plugin": "^6.1.0",
  79. "@typescript-eslint/parser": "^6.1.0",
  80. "css-loader": "^6.7.1",
  81. "eslint": "^8.36.0",
  82. "eslint-config-prettier": "^8.8.0",
  83. "eslint-plugin-prettier": "^5.0.0",
  84. "npm-run-all": "^4.1.5",
  85. "prettier": "^3.0.0",
  86. "rimraf": "^5.0.1",
  87. "source-map-loader": "^1.0.2",
  88. "style-loader": "^3.3.1",
  89. "stylelint": "^15.10.1",
  90. "stylelint-config-recommended": "^13.0.0",
  91. "stylelint-config-standard": "^34.0.0",
  92. "stylelint-csstree-validator": "^3.0.0",
  93. "stylelint-prettier": "^4.0.0",
  94. "typescript": "~5.0.2",
  95. "yjs": "^13.5.0"
  96. },
  97. "resolutions": {
  98. "@lezer/lr": "^1.4.1"
  99. },
  100. "sideEffects": [
  101. "style/*.css",
  102. "style/index.js"
  103. ],
  104. "styleModule": "style/index.js",
  105. "publishConfig": {
  106. "access": "public"
  107. },
  108. "jupyterlab": {
  109. "extension": true,
  110. "outputDir": "unicodelab_ts/labextension",
  111. "schemaDir": "schema"
  112. },
  113. "eslintIgnore": [
  114. "node_modules",
  115. "dist",
  116. "coverage",
  117. "**/*.d.ts"
  118. ],
  119. "eslintConfig": {
  120. "extends": [
  121. "eslint:recommended",
  122. "plugin:@typescript-eslint/eslint-recommended",
  123. "plugin:@typescript-eslint/recommended",
  124. "plugin:prettier/recommended"
  125. ],
  126. "parser": "@typescript-eslint/parser",
  127. "parserOptions": {
  128. "project": "tsconfig.json",
  129. "sourceType": "module"
  130. },
  131. "plugins": [
  132. "@typescript-eslint"
  133. ],
  134. "rules": {
  135. "@typescript-eslint/naming-convention": [
  136. "error",
  137. {
  138. "selector": "interface",
  139. "format": [
  140. "PascalCase"
  141. ],
  142. "custom": {
  143. "regex": "^I[A-Z]",
  144. "match": true
  145. }
  146. }
  147. ],
  148. "@typescript-eslint/no-unused-vars": [
  149. "warn",
  150. {
  151. "args": "none"
  152. }
  153. ],
  154. "@typescript-eslint/no-explicit-any": "off",
  155. "@typescript-eslint/no-namespace": "off",
  156. "@typescript-eslint/no-use-before-define": "off",
  157. "@typescript-eslint/quotes": [
  158. "error",
  159. "single",
  160. {
  161. "avoidEscape": true,
  162. "allowTemplateLiterals": false
  163. }
  164. ],
  165. "curly": [
  166. "error",
  167. "all"
  168. ],
  169. "eqeqeq": "error",
  170. "prefer-arrow-callback": "error"
  171. }
  172. },
  173. "prettier": {
  174. "singleQuote": true,
  175. "trailingComma": "none",
  176. "arrowParens": "avoid",
  177. "endOfLine": "auto",
  178. "overrides": [
  179. {
  180. "files": "package.json",
  181. "options": {
  182. "tabWidth": 4
  183. }
  184. }
  185. ]
  186. },
  187. "stylelint": {
  188. "extends": [
  189. "stylelint-config-recommended",
  190. "stylelint-config-standard",
  191. "stylelint-prettier/recommended"
  192. ],
  193. "plugins": [
  194. "stylelint-csstree-validator"
  195. ],
  196. "rules": {
  197. "csstree/validator": true,
  198. "property-no-vendor-prefix": null,
  199. "selector-class-pattern": "^([a-z][A-z\\d]*)(-[A-z\\d]+)*$",
  200. "selector-no-vendor-prefix": null,
  201. "value-no-vendor-prefix": null
  202. }
  203. }
  204. }
  205.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement