-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
62 lines (54 loc) · 2.88 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
{
"name": "secure-enclave",
"version": "0.4.1",
"description": "Secure Enclave module for node.js and Electron",
"main": "build/Release/secure-enclave.node",
"types": "node-secure-enclave.d.ts",
"scripts": {
"start": "npm run clean && npm run build-electron && npm run package-test-app && npm run copy-addon-to-test-app && npm run sign-test-app && npm run test-app",
"test": "npm run build-for-testing-node && npm run unit-tests",
"clean": "rm -rf build/Release bin",
"clean-all": "rm -rf build bin tmp xcode $(node -p \"require('electron/package').version\")",
"build-electron": "electron-rebuild",
"build-node": "node-gyp configure build",
"build-for-testing-node": "node-gyp configure --NODE_SECURE_ENCLAVE_BUILD_FOR_TESTING_WITH_REGULAR_KEYCHAIN=1 && node-gyp build",
"copy-addon-to-test-app": "mkdir -p tmp/test-app-darwin-x64/test-app.app/Contents/Resources/bin/darwin-x64-85 && cp bin/darwin-x64-85/node-secure-enclave.node tmp/test-app-darwin-x64/test-app.app/Contents/Resources/bin/darwin-x64-85/node-secure-enclave.node",
"package-test-app": "electron-packager test-app test-app --overwrite=true --out=tmp --app-bundle-id=net.antelle.node-secure-enclave",
"sign-test-app": "electron-osx-sign tmp/test-app-darwin-x64/test-app.app --entitlements=conf/test-app.entitlements.plist --gatekeeper-assess=false --provisioning-profile=conf/test-app.provisionprofile",
"validate-typings": "tsc node-secure-enclave.d.ts",
"unit-tests": "mocha",
"test-app": "tmp/test-app-darwin-x64/test-app.app/Contents/MacOS/test-app",
"test-app-unpackaged": "electron test-app",
"generate-xcode-project": "node-gyp configure -- -f xcode && mkdir -p xcode/node-secure-enclave.xcodeproj && mv build/binding.xcodeproj/project.pbxproj xcode/node-secure-enclave.xcodeproj/project.pbxproj",
"lint": "eslint test/*.js test-app/*.js",
"format": "npm run prettier && npm run clang-format",
"clang-format": "clang-format -i --verbose src/*",
"prettier": "prettier --write test/*.js test-app/*.{js,css,html} *.ts",
"bump": "node -e 'const v = fs.readFileSync(`release-notes.md`, `utf8`).match(/[\\d\\.]+/)[0]; for (const f of [`package.json`, `package-lock.json`, `test-app/package.json`]) { fs.writeFileSync(f, fs.readFileSync(f, `utf8`).replace(/\"version\":.*?,/, `\"version\": \"${v}\",`)); }'"
},
"author": "Antelle",
"license": "MIT",
"gypfile": true,
"repository": {
"type": "git",
"url": "git://github.com/antelle/node-secure-enclave.git"
},
"dependencies": {
"node-addon-api": "^3.1.0"
},
"devDependencies": {
"@types/node": "^14.14.16",
"electron": "^11.1.1",
"electron-osx-sign": "^0.5.0",
"electron-packager": "^15.2.0",
"electron-rebuild": "^2.3.4",
"eslint": "^7.16.0",
"mocha": "^8.2.1",
"node-gyp": "^7.1.2",
"prettier": "^2.2.1",
"typescript": "^4.1.3"
},
"os": [
"darwin"
]
}