|
30 | 30 | }, |
31 | 31 | "homepage": "https://github.com/swan-cern/sparkmonitor#readme", |
32 | 32 | "scripts": { |
33 | | - "build:prod": "jlpm run build:lib && jlpm run build:labextension && jlpm run build:nbextension && jlpm run build:scalalistener", |
34 | | - "build": "jlpm run build:lib && jlpm run build:labextension", |
35 | | - "build:lib": "tsc -p tsconfig.lab.json", |
| 33 | + "build": "jlpm run build:lib && jlpm run build:labextension:dev", |
| 34 | + "build:prod": "jlpm clean && jlpm run build:lib:prod && jlpm run build:labextension && jlpm run build:nbextension && jlpm run build:scalalistener", |
36 | 35 | "build:labextension": "jupyter labextension build .", |
37 | 36 | "build:labextension:dev": "jupyter labextension build --development True .", |
| 37 | + "build:lib": "tsc -p tsconfig.lab.json --sourceMap", |
| 38 | + "build:lib:prod": "tsc -p tsconfig.lab.json", |
| 39 | + "build:nbextension": "webpack --config src/notebook-extension/webpack.config.js", |
38 | 40 | "build:scalalistener": "cd scalalistener && sbt +assembly", |
39 | | - "clean": "rimraf lib jupyterlab_sparkmonior:labextension", |
40 | | - "clean:all": "jlpm run clean:lib && jlpm run clean:labextension", |
| 41 | + "clean": "jlpm clean:lib", |
| 42 | + "clean:lib": "rimraf lib tsconfig.tsbuildinfo", |
| 43 | + "clean:lintcache": "rimraf .eslintcache .stylelintcache", |
| 44 | + "clean:labextension": "rimraf sparkmonitor/labextension sparkmonitor/_version.py", |
| 45 | + "clean:nbextension": "rimraf sparkmonitor/static", |
| 46 | + "clean:scalalistener": "rimraf sparkmonitor/*.jar", |
| 47 | + "clean:all": "jlpm clean:lib && jlpm clean:labextension && jlpm clean:nbextension && jlpm clean:scalalistener && jlpm clean:lintcache", |
| 48 | + "eslint": "jlpm eslint:check --fix", |
| 49 | + "eslint:check": "eslint . --cache --ext .ts,.tsx", |
| 50 | + "install:extension": "jlpm build", |
| 51 | + "lint": "jlpm stylelint && jlpm prettier && jlpm eslint", |
| 52 | + "lint:check": "jlpm stylelint:check && jlpm prettier:check && jlpm eslint:check", |
| 53 | + "prettier": "jlpm prettier:base --write --list-different", |
| 54 | + "prettier:base": "prettier \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"", |
| 55 | + "prettier:check": "jlpm prettier:base --check", |
| 56 | + "stylelint": "jlpm stylelint:check --fix", |
| 57 | + "stylelint:check": "stylelint --cache \"style/**/*.css\"", |
41 | 58 | "watch": "run-p watch:src watch:labextension", |
42 | | - "watch:src": "tsc -w -p tsconfig.lab.json", |
| 59 | + "watch:src": "tsc -w -p tsconfig.lab.json --sourceMap", |
43 | 60 | "watch:labextension": "jupyter labextension watch .", |
44 | | - "build:nbextension": "webpack --config src/notebook-extension/webpack.config.js", |
45 | 61 | "watch:nbextension": "webpack --config src/notebook-extension/webpack.config.js --mode development --watch", |
46 | | - "check:all": "jlpm run check:eslint && jlpm run check:nbextension && jlpm run check:labextension", |
47 | | - "check:eslint": "eslint .", |
48 | | - "check:nbextension": "tsc -p tsconfig.notebook.json", |
49 | | - "check:labextension": "tsc -p tsconfig.lab.json --noEmit" |
| 62 | + "check:all": "jlpm run lint:check && jlpm run check:nbextension && jlpm run check:labextension", |
| 63 | + "check:labextension": "tsc -p tsconfig.lab.json --noEmit", |
| 64 | + "check:nbextension": "tsc -p tsconfig.notebook.json" |
50 | 65 | }, |
51 | 66 | "dependencies": { |
52 | | - "@jupyterlab/application": "^4.0.9", |
53 | | - "@jupyterlab/apputils": "^4.1.9", |
54 | | - "@jupyterlab/cells": "^4.0.9", |
55 | | - "@jupyterlab/mainmenu": "^4.0.9", |
56 | | - "@jupyterlab/notebook": "^4.0.9", |
57 | | - "@jupyterlab/services": "^7.0.9", |
58 | | - "@lumino/coreutils": "^2.1.2", |
59 | | - "@lumino/widgets": "^2.3.1", |
| 67 | + "@jupyterlab/application": "^4.0.10", |
| 68 | + "@jupyterlab/apputils": "^4.1.10", |
| 69 | + "@jupyterlab/cells": "^4.0.10", |
| 70 | + "@jupyterlab/mainmenu": "^4.0.10", |
| 71 | + "@jupyterlab/notebook": "^4.0.10", |
| 72 | + "@jupyterlab/services": "^7.0.10", |
| 73 | + "@lumino/coreutils": "^2.0.0", |
| 74 | + "@lumino/widgets": "^2.0.1", |
60 | 75 | "hammerjs": "^2.0.8", |
61 | 76 | "keycharm": "^0.4.0", |
62 | 77 | "mobx": "^6.12.0", |
|
84 | 99 | "@types/plotly.js-basic-dist": "^1.54.4", |
85 | 100 | "@types/react": "^18.0.26", |
86 | 101 | "@types/react-addons-linked-state-mixin": "^0.14.22", |
| 102 | + "@types/react-dom": "^18.2.18", |
87 | 103 | "@types/react-plotly.js": "^2.6.3", |
88 | 104 | "@types/react-timeago": "^4.1.6", |
89 | 105 | "@typescript-eslint/eslint-plugin": "^6.1.0", |
|
107 | 123 | "stylelint-prettier": "^4.0.0", |
108 | 124 | "typescript": "~5.0.2", |
109 | 125 | "webpack": "^5.89.0", |
110 | | - "yjs": "^13.5.0" |
| 126 | + "yjs": "^13.5.40" |
111 | 127 | }, |
112 | 128 | "jupyterlab": { |
113 | 129 | "extension": "lib/lab-extension/index", |
|
116 | 132 | "style": "style/lab.css", |
117 | 133 | "files": [ |
118 | 134 | "lib/*", |
119 | | - "src/*" |
120 | | - ] |
| 135 | + "src/*", |
| 136 | + "style/lab.js" |
| 137 | + ], |
| 138 | + "eslintConfig": { |
| 139 | + "extends": [ |
140 | + "eslint:recommended", |
| 141 | + "plugin:@typescript-eslint/eslint-recommended", |
| 142 | + "plugin:@typescript-eslint/recommended", |
| 143 | + "plugin:prettier/recommended" |
| 144 | + ], |
| 145 | + "parser": "@typescript-eslint/parser", |
| 146 | + "parserOptions": { |
| 147 | + "project": "tsconfig.json", |
| 148 | + "sourceType": "module" |
| 149 | + }, |
| 150 | + "plugins": [ |
| 151 | + "@typescript-eslint" |
| 152 | + ], |
| 153 | + "rules": { |
| 154 | + "@typescript-eslint/naming-convention": [ |
| 155 | + "error", |
| 156 | + { |
| 157 | + "selector": "interface", |
| 158 | + "format": [ |
| 159 | + "PascalCase" |
| 160 | + ], |
| 161 | + "custom": { |
| 162 | + "regex": "^I[A-Z]", |
| 163 | + "match": true |
| 164 | + } |
| 165 | + } |
| 166 | + ], |
| 167 | + "@typescript-eslint/no-unused-vars": [ |
| 168 | + "warn", |
| 169 | + { |
| 170 | + "args": "none" |
| 171 | + } |
| 172 | + ], |
| 173 | + "@typescript-eslint/no-explicit-any": "off", |
| 174 | + "@typescript-eslint/no-namespace": "off", |
| 175 | + "@typescript-eslint/no-use-before-define": "off", |
| 176 | + "@typescript-eslint/quotes": [ |
| 177 | + "error", |
| 178 | + "single", |
| 179 | + { |
| 180 | + "avoidEscape": true, |
| 181 | + "allowTemplateLiterals": false |
| 182 | + } |
| 183 | + ], |
| 184 | + "curly": [ |
| 185 | + "error", |
| 186 | + "all" |
| 187 | + ], |
| 188 | + "eqeqeq": "error", |
| 189 | + "prefer-arrow-callback": "error" |
| 190 | + } |
| 191 | + }, |
| 192 | + "eslintIgnore": [ |
| 193 | + "node_modules", |
| 194 | + "dist", |
| 195 | + "coverage", |
| 196 | + "**/*.d.ts" |
| 197 | + ], |
| 198 | + "prettier": { |
| 199 | + "singleQuote": true, |
| 200 | + "trailingComma": "none", |
| 201 | + "arrowParens": "avoid", |
| 202 | + "endOfLine": "auto", |
| 203 | + "overrides": [ |
| 204 | + { |
| 205 | + "files": "package.json", |
| 206 | + "options": { |
| 207 | + "tabWidth": 4 |
| 208 | + } |
| 209 | + } |
| 210 | + ] |
| 211 | + }, |
| 212 | + "stylelint": { |
| 213 | + "extends": [ |
| 214 | + "stylelint-config-recommended", |
| 215 | + "stylelint-config-standard", |
| 216 | + "stylelint-prettier/recommended" |
| 217 | + ], |
| 218 | + "plugins": [ |
| 219 | + "stylelint-csstree-validator" |
| 220 | + ], |
| 221 | + "rules": { |
| 222 | + "csstree/validator": true, |
| 223 | + "property-no-vendor-prefix": null, |
| 224 | + "selector-class-pattern": "^([a-z][A-z\\d]*)(-[A-z\\d]+)*$", |
| 225 | + "selector-no-vendor-prefix": null, |
| 226 | + "value-no-vendor-prefix": null |
| 227 | + } |
| 228 | + }, |
| 229 | + "styleModule": "style/lab.js" |
121 | 230 | } |
0 commit comments