Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
105 lines (105 loc) · 3.56 KB
/
Copy pathpackage.json
File metadata and controls
105 lines (105 loc) · 3.56 KB
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
{
"name": "@capgo/camera-preview",
"version": "8.15.5",
"description": "Camera preview",
"license": "MPL-2.0",
"repository": {
"type": "git",
"url": "git+https://github.com/Cap-go/capacitor-camera-preview.git"
},
"bugs": {
"url": "https://github.com/Cap-go/capacitor-camera-preview/issues"
},
"homepage": "https://capgo.app/docs/plugins/camera-preview/",
"author": "Martin Donadieu <martin@capgo.app>",
"keywords": [
"capacitor",
"plugin",
"camera",
"preview",
"native",
"zoom",
"focus",
"flash",
"lense",
"video",
"photo",
"image",
"capture",
"barcode",
"qr",
"scanner"
],
"main": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"files": [
"CapgoCameraPreview.podspec",
"Package.swift",
"android/",
"dist/",
"ios/",
"scripts/configure-dependencies.cjs"
],
"scripts": {
"verify": "bun run verify:ios && bun run verify:android && bun run verify:web",
"verify:ios": "xcodebuild -scheme CapgoCameraPreview -destination generic/platform=iOS && bun run test:ios",
"test:ios": "bash ./scripts/test-ios.sh",
"verify:android": "cd android && ./gradlew clean build test && cd ..",
"verify:web": "bun run build && bun run test:web && bun run test:config",
"test:web": "bun test src/web.stop.test.ts src/web-capture-scaling.test.ts src/web.videoBitrate.test.ts",
"lint": "bun run eslint && bun run prettier -- --check && bun run swiftlint -- lint",
"fmt": "bun run eslint -- --fix && bun run prettier -- --write && bun run swiftlint -- --fix --format",
"eslint": "eslint .",
"prettier": "prettier-pretty-check \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
"swiftlint": "node-swiftlint",
"docgen": "docgen --api CameraPreviewPlugin --output-readme README.md --output-json dist/docs.json",
"build": "bun run clean && bun run docgen && tsc && rollup -c rollup.config.mjs",
"clean": "rimraf ./dist",
"maestro:smoke": "bunx maestro test .maestro/camera-preview-smoke.yaml",
"watch": "tsc --watch",
"prepublishOnly": "bun run build",
"check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs",
"check:cap9-deprecated": "bun scripts/check-cap9-deprecated.mjs",
"example:install": "cd example-app && bun install --frozen-lockfile",
"example:build": "bun run build && cd example-app && bun install --frozen-lockfile && bun run build",
"changelog:ai": "node scripts/generate-ai-changelog.mjs",
"capacitor:sync:before": "node scripts/configure-dependencies.cjs",
"test:config": "bun test scripts/configure-dependencies.test.ts"
},
"devDependencies": {
"@capacitor/android": "^8.0.0",
"@capacitor/cli": "^8.0.0",
"@capacitor/core": "^8.0.0",
"@capacitor/docgen": "^0.3.1",
"@capacitor/ios": "^8.0.0",
"@ionic/eslint-config": "^0.5.0",
"@ionic/prettier-config": "^4.0.0",
"@ionic/swiftlint-config": "^2.0.0",
"@types/node": "^26.0.0",
"@typescript-eslint/eslint-plugin": "^8.70.0",
"@typescript-eslint/parser": "^8.70.0",
"eslint": "^10.0.0",
"husky": "^9.1.7",
"prettier": "^3.6.2",
"prettier-plugin-java": "^2.7.7",
"rimraf": "^6.1.0",
"rollup": "^4.53.2",
"swiftlint": "^2.0.0",
"typescript": "^6.0.3",
"prettier-pretty-check": "^0.2.0",
"happy-dom": "^21.0.0"
},
"peerDependencies": {
"@capacitor/core": ">=8.0.0"
},
"prettier": "@ionic/prettier-config",
"swiftlint": "@ionic/swiftlint-config",
"capacitor": {
"ios": {
"src": "ios"
},
"android": {
"src": "android"
}
}
}