-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
120 lines (120 loc) · 3.93 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"name": "mo-dev",
"version": "0.13.0",
"description": "A live reload development server for Motoko smart contracts.",
"author": "DFINITY Foundation (https://dfinity.org)",
"license": "Apache-2.0",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"bin": {
"mo-dev": "bin/mo-dev.js",
"mo-test": "bin/mo-test.js"
},
"scripts": {
"start": "ts-node src/commands/mo-dev",
"mo-test": "ts-node src/commands/mo-test",
"build:ts": "rimraf ./lib && tsc -p .",
"build:wasm": "",
"build:wasm_": "wasm-pack build wasm --target nodejs --out-dir pkg/nodejs",
"build": "run-s build:wasm build:ts",
"prepare": "husky install",
"prepare_": "husky install && cd wasm && cargo update",
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest",
"package": "rimraf ./pkg && run-s build test package:pkg package:zip",
"package:pkg": "pkg -t node18-linux,node18-win,node18-macos lib/commands/mo-dev.js -o pkg/mo-dev",
"package:zip": "run-s package:zip:linux package:zip:macos package:zip:win",
"package:zip:linux": "cd pkg && mkdir linux && cp mo-dev-linux linux/mo-dev && cd linux && tar -czvf ../mo-dev-linux.tar.gz mo-dev",
"package:zip:macos": "cd pkg && mkdir macos && cp mo-dev-macos macos/mo-dev && cd macos && tar -czvf ../mo-dev-macos.tar.gz mo-dev",
"package:zip:win": "cd pkg && mkdir win && cp mo-dev-win.exe win/mo-dev.exe && cd win && zip ../mo-dev-windows.zip mo-dev.exe",
"precommit": "lint-staged",
"prepublishOnly": "run-s build test"
},
"dependencies": {
"@dfinity/candid": "^1.2.0",
"@dfinity/principal": "^1.2.0",
"body-parser": "^1.20.2",
"chokidar": "^3.5.3",
"commander": "^10.0.0",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"debug": "^4.3.4",
"execa": "^5.1.1",
"express": "^4.19.2",
"fast-glob": "^3.2.12",
"morgan": "^1.10.0",
"motoko": "^3.6.16",
"node-cleanup": "^2.1.2",
"picocolors": "^1.0.0",
"shell-escape": "^0.2.0"
},
"devDependencies": {
"@types/body-parser": "^1.19.2",
"@types/bytes": "^3.1.1",
"@types/compression": "^1.7.2",
"@types/cookie-parser": "^1.4.3",
"@types/cors": "^2.8.13",
"@types/express": "^4.17.17",
"@types/jest": "^29.4.4",
"@types/morgan": "^1.9.4",
"@types/node-cleanup": "^2.1.2",
"@types/shell-escape": "^0.2.1",
"@types/swagger-jsdoc": "^6.0.1",
"@types/swagger-ui-express": "^4.1.3",
"@types/type-is": "^1.6.3",
"@types/which": "^2.0.2",
"@wasmer/wasi": "^1.2.2",
"axios": "^1.3.4",
"cross-env": "^7.0.3",
"eslint-config-prettier": "^8.7.0",
"husky": "^8.0.1",
"jest": "^29.4.4",
"lint-staged": "^13.2.0",
"npm-run-all": "^4.1.5",
"pkg": "^5.8.1",
"prettier": "^2.8.4",
"ts-jest": "^29.0.5",
"ts-node": "^10.9.1",
"typescript": "^4.9.5",
"wasm-pack": "^0.10.3"
},
"repository": {
"type": "git",
"url": "https://github.com/dfinity/motoko-dev-server.git"
},
"lint-staged": {
"{lib,contrib,utils}/**/*.{js,ts,jsx,tsx}": [
"prettier --write"
]
},
"directories": {
"lib": "lib",
"example": "examples"
},
"files": [
"index.js",
"bin/**/*",
"lib/**/*",
"wasm/pkg/**/*"
],
"keywords": [
"cli",
"motoko",
"language",
"programming-language",
"dfinity",
"smart-contract",
"canister",
"browser",
"ic",
"icp",
"internet-computer",
"blockchain",
"cryptocurrency",
"nft",
"token",
"webpack",
"live-reload",
"server",
"hot-module-reload"
]
}