95 lines
3.4 KiB
JSON
95 lines
3.4 KiB
JSON
{
|
|
"name": "compiler",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"dependencies": {
|
|
"@codemirror/lang-javascript": "^6.1.1",
|
|
"@headlessui/react": "^1.7.13",
|
|
"@react-three/drei": "^9.42.0",
|
|
"@react-three/fiber": "^8.9.1",
|
|
"@testing-library/jest-dom": "^5.14.1",
|
|
"@testing-library/react": "^13.0.0",
|
|
"@testing-library/user-event": "^13.2.1",
|
|
"@types/jest": "^27.0.1",
|
|
"@types/node": "^16.7.13",
|
|
"@types/react": "^18.0.0",
|
|
"@types/react-dom": "^18.0.0",
|
|
"@uiw/react-codemirror": "^4.15.1",
|
|
"allotment": "^1.17.0",
|
|
"http-server": "^14.1.1",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"react-json-view": "^1.21.3",
|
|
"react-modal-promise": "^1.0.2",
|
|
"react-scripts": "5.0.1",
|
|
"sketch-helpers": "^0.0.1",
|
|
"swr": "^2.0.4",
|
|
"three": "^0.146.0",
|
|
"typescript": "^4.4.2",
|
|
"util": "^0.12.5",
|
|
"wasm-pack": "^0.10.3",
|
|
"web-vitals": "^2.1.0",
|
|
"zustand": "^4.1.4"
|
|
},
|
|
"scripts": {
|
|
"start": "react-scripts start",
|
|
"build": "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && source \"$HOME/.cargo/env\" && curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -y && yarn build:wasm:ci && react-scripts build",
|
|
"build:local": "react-scripts build",
|
|
"test": "react-scripts test",
|
|
"test:nowatch": "react-scripts test --watchAll=false",
|
|
"test:rust": "(cd src/wasm-lib && cargo test && cargo clippy)",
|
|
"test:cov": "react-scripts test --watchAll=false --coverage=true",
|
|
"simpleserver:ci": "http-server ./public --cors -p 3000 &",
|
|
"simpleserver": "http-server ./public --cors -p 3000",
|
|
"eject": "react-scripts eject",
|
|
"fmt": "prettier --write './src/**/*.{ts,tsx,js}'",
|
|
"remove-importmeta": "sed -i '' 's/import.meta.url//g' \"./src/wasm-lib/pkg/wasm_lib.js\"",
|
|
"remove-importmeta:ci": "sed -i 's/import.meta.url//g' \"./src/wasm-lib/pkg/wasm_lib.js\"",
|
|
"add-missing-import": "echo \"import util from 'util'; if (typeof window !== 'undefined' && !window.TextEncoder) { window.TextEncoder = util.TextEncoder; window.TextDecoder = util.TextDecoder}\" | cat - ./src/wasm-lib/pkg/wasm_lib.js > temp && mv temp ./src/wasm-lib/pkg/wasm_lib.js",
|
|
"build:wasm:ci": "mkdir src/wasm-lib/pkg; cd src/wasm-lib && wasm-pack build --target web --out-dir pkg && cd ../../ && cp src/wasm-lib/pkg/wasm_lib_bg.wasm public && yarn remove-importmeta:ci && yarn add-missing-import && yarn fmt",
|
|
"build:wasm": "mkdir src/wasm-lib/pkg; cd src/wasm-lib && wasm-pack build --target web --out-dir pkg && cd ../../ && cp src/wasm-lib/pkg/wasm_lib_bg.wasm public && yarn remove-importmeta && yarn add-missing-import && yarn fmt"
|
|
},
|
|
"jest": {
|
|
"transformIgnorePatterns": [
|
|
"node_modules/(?!(three|allotment)/)"
|
|
]
|
|
},
|
|
"prettier": {
|
|
"trailingComma": "es5",
|
|
"tabWidth": 2,
|
|
"semi": false,
|
|
"singleQuote": true
|
|
},
|
|
"eslintConfig": {
|
|
"extends": [
|
|
"react-app",
|
|
"react-app/jest"
|
|
],
|
|
"rules": {
|
|
"semi": [
|
|
"error",
|
|
"never"
|
|
]
|
|
}
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@types/three": "^0.146.0",
|
|
"autoprefixer": "^10.4.13",
|
|
"postcss": "^8.4.19",
|
|
"prettier": "^2.8.0",
|
|
"tailwindcss": "^3.2.4"
|
|
}
|
|
}
|