forked from 0xProject/0x-mesh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
28 lines (28 loc) · 1.19 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
{
"name": "mesh-webpack-example-lite",
"description": "An example of how to run Mesh directly in the browser using Webpack and the @0x/mesh-browser-lite package.",
"version": "1.0.0",
"main": "index.js",
"license": "Apache-2.0",
"private": true,
"scripts": {
"build": "tsc -b && yarn build:webpack && yarn build:wasm",
"build:wasm": "GOOS=js GOARCH=wasm go build -o ./dist/main.wasm ../mesh-browser/go/mesh-browser/main.go",
"build:webpack": "node --max_old_space_size=3072 ./node_modules/.bin/webpack --mode=development",
"clean": "shx rm ./dist/bundle.js || exit 0",
"postinstall:comment": "Remove the go and scripts directories of the mesh browser package to reduce the webpack bundle size",
"postinstall": "yarn rimraf ./node_modules/@0x/mesh-browser/go ./node_modules/@0x/mesh-browser/scripts",
"lint": "tslint --format stylish --project ."
},
"devDependencies": {
"rimraf": "^3.0.0",
"shx": "^0.3.2",
"ts-loader": "^8.0.5",
"typescript": "^4.0.3",
"webpack": "^4.39.2",
"webpack-cli": "^3.3.7"
},
"dependencies": {
"@0x/mesh-browser-lite": "^11.0.3"
}
}