|
7 | 7 | "license": "MIT", |
8 | 8 | "private": true, |
9 | 9 | "scripts": { |
10 | | - "build:prod": "webpack --env=production", |
11 | | - "build:dev": "webpack", |
12 | | - "build": "npm run build:dev", |
13 | | - "watch": "webpack --watch", |
14 | | - "lint:prod": "npm run eslint -c .eslintrc.prod.json .", |
15 | | - "test": "jest", |
16 | | - "format": "npm run prettier --write .", |
17 | | - "lint": "npm run eslint -c .eslintrc.json .", |
18 | | - "postinstall": "husky install" |
| 10 | + "build:release": "pnpm exec webpack --env production --env includeReleaseLink", |
| 11 | + "build:prod": "pnpm exec webpack --env production", |
| 12 | + "build": "pnpm exec webpack", |
| 13 | + "watch": "pnpm exec webpack --watch", |
| 14 | + "lint:prod": "pnpm exec -c .eslintrc.prod.json .", |
| 15 | + "test": "pnpm exec jest", |
| 16 | + "format": "pnpm exec eslint --cache --fix -c .eslintrc.json . && pnpm exec prettier --write .", |
| 17 | + "lint": "pnpm exec eslint -c .eslintrc.json .", |
| 18 | + "postinstall": "pnpm exec husky install" |
19 | 19 | }, |
20 | 20 | "devDependencies": { |
21 | 21 | "@babel/core": "^7.20.12", |
22 | 22 | "@tsconfig/svelte": "^3.0.0", |
| 23 | + "@types/d3": "^7.4.0", |
23 | 24 | "@types/jest": "^29.2.3", |
24 | 25 | "@types/node": "*", |
25 | 26 | "@typescript-eslint/eslint-plugin": "^5.41.0", |
|
29 | 30 | "eslint": "^8.34.0", |
30 | 31 | "eslint-plugin-svelte3": "^4.0.0", |
31 | 32 | "husky": "^8.0.3", |
| 33 | + "image-minimizer-webpack-plugin": "^3.8.3", |
32 | 34 | "jest": "^29.2.2", |
33 | 35 | "jest-environment-jsdom": "^29.4.2", |
34 | 36 | "lint-staged": "^13.1.1", |
|
41 | 43 | "svelte-loader": "^3.1.4", |
42 | 44 | "svelte-material-icons": "^2.0.4", |
43 | 45 | "svelte-preprocess": "^4.10.7", |
| 46 | + "svgo": "^3.0.2", |
44 | 47 | "ts-jest": "^29.0.3", |
45 | 48 | "ts-loader": "^9.3.1", |
46 | 49 | "ts-node": "^10.9.1", |
47 | | - "typescript": "^4.7.4", |
| 50 | + "typescript": "^4.9.5", |
48 | 51 | "webpack": "^5.74.0", |
49 | 52 | "webpack-cli": "^5.0.0", |
50 | 53 | "yaml": "^2.1.3" |
51 | 54 | }, |
52 | 55 | "dependencies": { |
53 | | - "@smui/icon-button": "7.0.0-beta.14", |
| 56 | + "d3": "^7.8.5", |
54 | 57 | "function-plot": "^1.23.1", |
55 | 58 | "html-to-image": "^1.11.3", |
56 | 59 | "obsidian": "0.16.3" |
57 | 60 | }, |
58 | 61 | "lint-staged": { |
59 | | - "*.js": "eslint --cache --fix", |
60 | | - "*.{js,css,md,svelte}": "prettier --write" |
| 62 | + "*.{js,ts,css,md,svelte}": "pnpm run format" |
61 | 63 | } |
62 | 64 | } |
0 commit comments