-
Notifications
You must be signed in to change notification settings - Fork 16
/
package.json
95 lines (95 loc) · 3.21 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
{
"name": "capacitor-nodejs",
"version": "1.0.0-beta.7",
"description": "A full-fledged Node.js runtime for Capacitor apps",
"main": "dist/plugin.cjs.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"unpkg": "dist/plugin.js",
"files": [
"android/src/main/",
"android/libnode/",
"android/build.gradle",
"android/CMakeLists.txt",
"assets/",
"dist/",
"ios/Plugin/",
"electron/",
"CapacitorNodejs.podspec"
],
"author": "Rene Hampölz",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/hampoelz/Capacitor-NodeJS.git"
},
"bugs": {
"url": "https://github.com/hampoelz/Capacitor-NodeJS/issues"
},
"keywords": [
"capacitor",
"plugin",
"native"
],
"scripts": {
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
"verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin && cd ..",
"verify:android": "cd android && ./gradlew clean build test && cd ..",
"verify:web": "npm run build",
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- autocorrect --format",
"eslint": "eslint . --ext ts",
"prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
"swiftlint": "node-swiftlint",
"docgen": "docgen --api NodeJSInterface --output-readme README.md --output-json dist/docs.json",
"build-bridge": "tsc --project bridge/tsconfig.json && rollup -c bridge/rollup.config.js && rimraf ./bridge/build",
"build-electron": "tsc --project electron/tsconfig.json && rollup -c electron/rollup.config.js && rimraf ./electron/build",
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.js && npm run build-electron && npm run build-bridge",
"clean": "rimraf ./dist",
"watch": "tsc --watch",
"pack:bridge": "cd assets/types/bridge && npm pack --pack-destination ../ && mv ../types-bridge-*.tgz ../bridge.tgz",
"pack": "npm run pack:bridge && npm pack",
"prepublishOnly": "npm run build"
},
"devDependencies": {
"@capacitor/android": "^5.0.0",
"@capacitor/cli": "^5.0.0",
"@capacitor/core": "^5.0.0",
"@capacitor/docgen": "^0.2.0",
"@capacitor/ios": "^5.0.0",
"@ionic/eslint-config": "^0.3.0",
"@ionic/prettier-config": "^4.0.0",
"@ionic/swiftlint-config": "^1.1.2",
"@rollup/plugin-commonjs": "^25.0.4",
"@rollup/plugin-node-resolve": "^15.2.1",
"electron": "^26.2.2",
"eslint": "^7.11.0",
"prettier": "~3.0.3",
"prettier-plugin-java": "~2.3.1",
"rimraf": "^3.0.2",
"rollup": "^2.32.0",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-dts": "^4.2.3",
"swiftlint": "^1.0.2",
"typescript": "~4.3.4"
},
"peerDependencies": {
"@capacitor/core": "^5.0.0"
},
"prettier": "@ionic/prettier-config",
"swiftlint": "@ionic/swiftlint-config",
"eslintConfig": {
"extends": "@ionic/eslint-config/recommended"
},
"capacitor": {
"ios": {
"src": "ios"
},
"android": {
"src": "android"
},
"electron": {
"src": "electron"
}
}
}