-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
84 lines (84 loc) · 2.53 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": "sense-hat-web-emu",
"version": "0.0.0-development",
"description": "Web emulator for Sense HAT applications",
"browserslist": "> 0.5%, last 2 versions, not dead",
"main": "client.js",
"scripts": {
"build": "yarn build:client && yarn build:server",
"build:client": "esbuild ./src/client --bundle --minify --loader:.js=jsx --loader:.png=dataurl --outfile=dist/client.js --jsx-factory=h --jsx-fragment=Fragment",
"build:server": "esbuild ./src/index.js --bundle --minify --platform=node --external:uws --outfile=dist/index.js && yarn copy-assets",
"copy-assets": "cp -rf ./src/index.html ./dist/index.html && cp -rf ./src/assets ./dist",
"start": "concurrently \"yarn start:client\" \"yarn start:server\"",
"start:client": "esbuild ./src/client --bundle --loader:.js=jsx --outfile=dist/client.js --jsx-factory=h --jsx-fragment=Fragment --watch",
"start:server": "nodemon ./src/index.js",
"serve": "node ./dist/index.js",
"semantic-release": "semantic-release",
"lint": "eslint src/**/*.js",
"test": "jest"
},
"repository": {
"type": "git",
"url": "[email protected]:pchiwan/sense-hat-web-emu.git"
},
"bin": {
"webemu": "./bin/index.js"
},
"license": "MIT",
"author": "Sílvia Mur <[email protected]>",
"homepage": "https://github.com/pchiwan/sense-hat-web-emu#readme",
"devDependencies": {
"colors": "^1.3.2",
"concurrently": "^4.0.1",
"enzyme": "^3.11.0",
"enzyme-adapter-preact-pure": "^3.3.0",
"esbuild": "^0.14.9",
"eslint": "4.19.1",
"eslint-plugin-react": "^7.11.1",
"jest": "^27.4.5",
"jest-preset-preact": "^4.0.5",
"nodemon": "^1.18.5",
"regenerator-runtime": "^0.13.9",
"semantic-release": "^18.0.1",
"socket.io-mock": "^1.3.2"
},
"dependencies": {
"@preact/compat": "^17.0.3",
"better-opn": "^0.1.0",
"express": "^4.16.4",
"minimist": "^1.2.0",
"pngjs": "^3.3.3",
"preact": "^10.6.4",
"preact-compat": "^3.19.0",
"react": "npm:@preact/compat@^17.0.3",
"react-dom": "npm:@preact/compat@^17.0.3",
"shelljs-nodecli": "^0.1.1",
"socket.io": "^2.1.1",
"yargs": "^13.3.0"
},
"jest": {
"preset": "jest-preset-preact",
"setupFiles": [
"<rootDir>/test/setupTests.js"
],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|svg)$": "<rootDir>/test/fileMock.js"
},
"moduleFileExtensions": [
"js",
"jsx"
],
"roots": [
"src"
]
},
"release": {
"branches": [
"main"
]
},
"files": [
"bin",
"dist"
]
}