|
4 | 4 | "description": "Jupyter React - React.js components 100% compatible with Jupyter.", |
5 | 5 | "license": "MIT", |
6 | 6 | "main": "lib/index.js", |
| 7 | + "types": "lib/index.d.ts", |
7 | 8 | "files": [ |
8 | 9 | "lib/**/*.{css,d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}", |
9 | 10 | "style/**/*.{css,js,eot,gif,html,jpg,json,png,svg,woff2,ttf}", |
|
29 | 30 | "access": "public" |
30 | 31 | }, |
31 | 32 | "scripts": { |
32 | | - "build": "gulp resources-to-lib && tsc && webpack", |
33 | | - "build:lib": "tsc", |
34 | | - "build:prod": "gulp resources-to-lib && tsc && npm run clean && npm run build:lib", |
| 33 | + "build": "gulp resources-to-lib && tsc --emitDeclarationOnly && cross-env BUILD_LIB=true vite build", |
| 34 | + "build:lib": "cross-env BUILD_LIB=true vite build", |
| 35 | + "build:types": "tsc --emitDeclarationOnly", |
| 36 | + "build:prod": "gulp resources-to-lib && tsc --emitDeclarationOnly && npm run clean && npm run build:lib", |
35 | 37 | "build:tsc:watch:res": "gulp resources-to-lib-watch", |
36 | 38 | "build:tsc:watch:tsc": "tsc --watch", |
37 | 39 | "build:webpack": "cross-env BUILD_APP=true webpack-cli build", |
| 40 | + "build:vite": "vite build", |
38 | 41 | "clean": "rimraf node_modules lib dist build tsconfig.tsbuildinfo", |
39 | 42 | "clean:all": "npm run clean:lib && npm run clean:labextension && npm run clean:lintcache", |
40 | 43 | "clean:labextension": "rimraf datalayer/labextension", |
41 | 44 | "clean:lib": "rimraf lib tsconfig.tsbuildinfo", |
42 | 45 | "clean:lintcache": "rimraf .eslintcache .stylelintcache", |
43 | | - "dev": "run-p -c 'start:*'", |
| 46 | + "dev": "vite", |
| 47 | + "dev:webpack": "run-p -c 'start:*'", |
44 | 48 | "eslint": "npm eslint:check --fix", |
45 | 49 | "eslint:check": "eslint . --cache --ext .ts,.tsx", |
46 | 50 | "example": "run-p -c 'start:*'", |
|
51 | 55 | "prettier": "npm prettier:base --write --list-different", |
52 | 56 | "prettier:base": "prettier \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"", |
53 | 57 | "prettier:check": "npm prettier:base --check", |
54 | | - "start": "run-p -c 'start:*'", |
| 58 | + "preview": "vite preview", |
| 59 | + "start": "vite", |
55 | 60 | "start:webpack": "webpack serve", |
56 | | - "start-noconfig": "cross-env NO_CONFIG=true webpack serve", |
57 | | - "start-local": "run-p -c 'start-local:*'", |
| 61 | + "start-noconfig": "cross-env NO_CONFIG=true vite", |
| 62 | + "start-noconfig:webpack": "cross-env NO_CONFIG=true webpack serve", |
| 63 | + "start-local": "cross-env LOCAL_JUPYTER_SERVER=true vite", |
58 | 64 | "start-local:webpack": "cross-env LOCAL_JUPYTER_SERVER=true webpack serve", |
59 | 65 | "start-local:jupyter-server": "cd ./../.. && npm run jupyter:server", |
60 | 66 | "stylelint": "npm stylelint:check --fix", |
|
237 | 243 | "webpack": "^5.74.0", |
238 | 244 | "webpack-cli": "^5.1.4", |
239 | 245 | "webpack-dev-server": "^4.9.3", |
240 | | - "whatwg-fetch": "^3.6.2" |
| 246 | + "whatwg-fetch": "^3.6.2", |
| 247 | + "vite": "^5.4.0", |
| 248 | + "@vitejs/plugin-react": "^4.6.0", |
| 249 | + "vite-plugin-treat-umd-as-commonjs": "^0.1.4", |
| 250 | + "buffer": "^6.0.3" |
241 | 251 | }, |
242 | 252 | "eslintIgnore": [ |
243 | 253 | "node_modules", |
|
0 commit comments