mirror of
https://github.com/alibaba/GCanvas.git
synced 2025-12-08 17:36:42 +00:00
32 lines
990 B
JSON
32 lines
990 B
JSON
{
|
|
"name": "@gcanvas/node",
|
|
"version": "1.0.3",
|
|
"description": "gcanvas for node developer",
|
|
"dependencies": {
|
|
"bindings": "~1.2.1",
|
|
"node-addon-api": "^1.0.0"
|
|
},
|
|
"scripts": {
|
|
"install": "./script/install.sh $local",
|
|
"dev": "cmake-js build",
|
|
"clean":"cmake-js clean",
|
|
"debug": "cmake-js -D build",
|
|
"compile": "cmake-js compile --CDCORE_DIR=./core/",
|
|
"prestart": "export DISPLAY=:99.0 && Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &",
|
|
"movefont": "mkdir -p ~/.gAssets/fonts/ && cp ./third_party/font/wqy-microhei.ttc ~/.gAssets/fonts/wqy-microhei.ttc && cp ./third_party/font/.fontcache ~/.gAssets/fonts/.fontcache",
|
|
"test": "npm run movefont && node --expose-gc ./examples/$case",
|
|
"test-headless": "npm run prestart && npm run movefont && node --expose-gc ./examples/$case"
|
|
},
|
|
"main": "export.js",
|
|
"engines": {
|
|
"node": ">=10"
|
|
},
|
|
"keywords": [
|
|
"node",
|
|
"GCanvas",
|
|
"2D",
|
|
"Graphic",
|
|
"Light"
|
|
]
|
|
}
|