forked from Shopify/screenshot-glb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
38 lines (38 loc) · 2.15 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
{
"name": "@shopify/screenshot-glb",
"version": "1.9.1",
"publishConfig": {
"access": "public"
},
"description": "A command line utility for taking screenshots of a glTF 2.0 binary file using Google's <model-viewer> component.",
"bin": {
"screenshot-glb": "./dist/cli.js"
},
"scripts": {
"prepare": "yarn build",
"build": "tsc",
"lint": "prettier --check ./src",
"lint:fix": "prettier --write ./src",
"test": "jest",
"dev": "yarn build && node dist/cli.js -i ./test/fixtures/WaterBottle.glb -o output.jpg -w 1024 -h 2048 -q 1.00 -v -t 30000 -m \"exposure=0.92&camera-orbit=88.59deg 59.01deg 0.24m&camera-target=0.06m 0.04m 0m&environment-image=neutral\"",
"dev:version": "yarn build && node dist/cli.js -i ./test/fixtures/WaterBottle.glb -o output.jpg -@ 1.9 -w 1024 -h 2048 -q 1.00 -v -t 30000 -m \"exposure=0.92&camera-orbit=88.59deg 59.01deg 0.24m&camera-target=0.06m 0.04m 0m&environment-image=neutral\"",
"dev:no-version": "yarn build && node dist/cli.js -i ./test/fixtures/WaterBottle.glb -o output.jpg -@ 100000.0 -w 1024 -h 2048 -q 1.00 -v -t 30000 -m \"exposure=0.92&camera-orbit=88.59deg 59.01deg 0.24m&camera-target=0.06m 0.04m 0m&environment-image=neutral\"",
"dev:png": "yarn build && node dist/cli.js -i ./test/fixtures/WaterBottle.glb -o output.png -c \"rgba(0.0, 0.0, 0.0, 0.0)\" -w 1024 -h 2048 -q 1.00 -v -t 30000 -m \"exposure=0.92&camera-orbit=88.59deg 59.01deg 0.24m&camera-target=0.06m 0.04m 0m&environment-image=neutral\"",
"dev:local-js": "yarn build && node dist/cli.js -i ./test/fixtures/WaterBottle.glb -o output.jpg --model_viewer_path ./test/fixtures/model-viewer.js -w 1024 -h 2048 -q 1.00 -v -t 30000 -m \"exposure=0.92&camera-orbit=88.59deg 59.01deg 0.24m&camera-target=0.06m 0.04m 0m&environment-image=neutral\""
},
"author": "Stephan Leroux <stephan.leroux@shopify.com>",
"license": "MIT",
"dependencies": {
"@shopify/prettier-config": "^1.1.2",
"mime-types": "^2.1.34",
"puppeteer": "^13.7.0",
"yargs": "^17.2.1"
},
"devDependencies": {
"@types/jest": "^27.4.0",
"jest": "^27.4.7",
"prettier": "^2.7.1",
"ts-jest": "^27.1.3",
"typescript": "^4.5.5"
}
}