-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
84 lines (84 loc) · 3.82 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"name": "rust-wasm-react-base",
"private": true,
"version": "0.0.0",
"type": "module",
"engines": {
"node": "19.7.0"
},
"dependencies": {
"@dnd-kit/core": "^6.0.8",
"@dnd-kit/modifiers": "^6.0.1",
"@dnd-kit/sortable": "^7.0.2",
"@emotion/react": "^11.11.0",
"@mantine/core": "^6.0.13",
"@mantine/dropzone": "^6.0.13",
"@mantine/hooks": "^6.0.13",
"@mantine/modals": "^6.0.13",
"@mantine/spotlight": "^6.0.13",
"@tabler/icons-react": "^2.21.0",
"comlink": "^4.4.1",
"next": "^13.4.4",
"react": "^18.2.0",
"react-bootstrap-icons": "^1.10.3",
"react-dom": "^18.2.0",
"react-icons": "^4.9.0",
"react-rnd": "^10.4.1",
"stats.js": "^0.17.0",
"unstated-next": "^1.1.0",
"vite": "^4.3.9",
"wasm-feature-detect": "^1.5.1"
},
"devDependencies": {
"@storybook/addon-essentials": "^7.0.18",
"@storybook/addon-interactions": "^7.0.18",
"@storybook/addon-links": "^7.0.18",
"@storybook/blocks": "^7.0.18",
"@storybook/react": "^7.0.18",
"@storybook/react-vite": "^7.0.18",
"@storybook/testing-library": "^0.1.0",
"@types/react": "^18.2.8",
"@types/react-dom": "^18.2.4",
"@types/stats.js": "^0.17.0",
"@vitejs/plugin-react": "^4.0.0",
"cypress": "^12.13.0",
"eslint": "^8.42.0",
"eslint-config-next": "^13.4.4",
"husky": "^8.0.3",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.8",
"sass": "^1.62.1",
"storybook": "^7.0.18",
"typescript": "^5.1.3"
},
"scripts": {
"ci": "rm -rf node_modules && yarn install --frozen-lockfile",
"prepare": "yarn run install-wasm-pack && husky install && cargo install cargo-watch && rustup toolchain install nightly && rustup component add rust-src --toolchain nightly-2022-12-12",
"install-wasm-pack": "curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh",
"dev:js": "next",
"dev:wasm-single-threaded": "cd wasm && cargo watch -s 'rustup run nightly wasm-pack build . --target web'",
"dev:wasm-multi-threaded": "cd wasm && RUSTFLAGS=\"-C target-feature=+atomics,+bulk-memory,+mutable-globals\" rustup run nightly cargo watch -s'wasm-pack build --target web --out-dir pkg-parallel -- --features parallel -Z build-std=panic_abort,std'",
"dev:wasm": "run-p dev:wasm-single-threaded dev:wasm-multi-threaded",
"dev": "run-p dev:wasm dev:js",
"build:js": "next build",
"build:wasm-single-threaded": "cd wasm && rustup run nightly wasm-pack build --target web --release",
"build:wasm-multi-threaded": "cd wasm && RUSTFLAGS=\"-C target-feature=+atomics,+bulk-memory,+mutable-globals\" rustup run nightly wasm-pack build --target web --release --out-dir pkg-parallel -- --features parallel -Z build-std=panic_abort,std",
"build:wasm": "run-p build:wasm-single-threaded build:wasm-multi-threaded",
"build": "yarn run build:wasm && yarn run build:js",
"serve": "next start",
"test": "yarn run test:cypress && yarn run test:wasm",
"test:wasm": "cd wasm && cargo test",
"test:cypress": "yarn cypress run",
"bench:wasm": "cd ./wasm && cargo bench",
"type:check": "tsc",
"lint:js:check": "eslint . --config ./.eslintrc.json",
"lint:js": "eslint --fix . --config ./.eslintrc.json",
"lint:wasm:check": "cd wasm && RUSTFLAGS=\"-C target-feature=+atomics,+bulk-memory,+mutable-globals\" rustup run nightly cargo clippy -- -D warnings",
"lint:wasm": "cd wasm && RUSTFLAGS=\"-C target-feature=+atomics,+bulk-memory,+mutable-globals\" rustup run nightly cargo clippy --fix",
"format:check": "prettier --check . --config ./.prettierrc.json",
"format": "prettier --write . --config ./.prettierrc.json",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"check": "yarn run type:check && yarn run lint:js:check && yarn run format:check && yarn run lint:wasm:check"
}
}