forked from MaibornWolff/react-wasm-dom
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
executable file
·57 lines (57 loc) · 2.26 KB
/
package.json
File metadata and controls
executable file
·57 lines (57 loc) · 2.26 KB
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
{
"name": "react-wasm-dom",
"collaborators": [
"Mario Reder <mario.reder@maibornwolff.de>"
],
"description": "ReactDOM implemented in Rust, compiled to WebAssembly.",
"version": "0.1.0",
"license": "(MIT OR Apache-2.0)",
"scripts": {
"clean": "rimraf pkg",
"start": "npm-run-all --parallel build:dev watch",
"build": "yarn clean && yarn build:wasm:no-opt",
"build:wasm": "yarn build:wasm:web && yarn build:wasm:node && yarn build:wasm:opt",
"build:wasm:no-opt": "yarn build:wasm:web && yarn build:wasm:node",
"build:wasm:web": "wasm-pack build . --release --out-dir pkg --out-name index --target bundler -- --features 'wee_alloc'",
"build:wasm:node": "wasm-pack build . --release --out-dir pkg --out-name server --target nodejs",
"build:wasm:watch": "cargo watch -w ./src/rust -s 'wasm-pack build . --out-dir pkg --out-name server --target nodejs'",
"build:wasm:opt": "yarn build:wasm:opt:web && yarn build:wasm:opt:node",
"build:wasm:opt:web": "wasm-opt ./pkg/index_bg.wasm -Os -o ./pkg/index_bg.wasm",
"build:wasm:opt:node": "wasm-opt ./pkg/server_bg.wasm -O3 -o ./pkg/server_bg.wasm",
"watch": "nodemon ./dist --watch dist -e js,ts,jsx,tsx,json,wasm,html",
"test": "node --experimental-modules ./node_modules/jest/bin/jest.js",
"test:watch": "npm-run-all --parallel test:watch:js build:wasm:watch",
"test:watch:js": "jest --watchAll"
},
"repository": {
"type": "git",
"url": "https://git.maibornwolff.de/MarioR/react-wasm"
},
"peerDependencies": {
"react": "^16",
"react-is": "^16"
},
"devDependencies": {
"@babel/helper-compilation-targets": "^7.14.5",
"@babel/plugin-proposal-class-properties": "^7.7.4",
"@babel/plugin-syntax-dynamic-import": "^7.7.4",
"@babel/plugin-transform-typescript": "^7.7.4",
"@babel/preset-env": "^7.7.4",
"@babel/preset-react": "^7.7.4",
"@types/jest": "^24.0.23",
"@types/node": "^12.7.11",
"@types/react": "^16",
"@types/react-is": "^16.7.1",
"babel-jest": "^24.9.0",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.15.1",
"jest": "^25.1.0",
"npm-run-all": "^4.1.5",
"react": "^16",
"react-dom": "^16",
"react-is": "^16",
"rimraf": "^3.0.0",
"typescript": "^3.6.3"
},
"private": true
}