-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
132 lines (132 loc) · 8.71 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
{
"name": "KeyPaws",
"main": "./app/index.js",
"version": "1.0.0",
"manifestUrl": "https://downloads.keypa.ws/package.json",
"chromium-args": "--disable-accelerated-video",
"build": {
"appId": "com.aliblackwell.KeyPaws",
"nwVersion": "0.45.1",
"packed": false,
"files": [
"app/**/*",
"background/**/*",
"model/KeyPaws.mlproj/Models/*"
],
"strippedProperties": [
"build",
"devDependencies",
"scripts",
"directories",
"husky",
"lint-staged"
],
"outputPattern": "${NAME} ${VERSION} ${PLATFORM} ${ARCH}",
"mac": {
"displayName": "KeyPaws",
"copyright": "copyright",
"icon": "./app/assets/icons.icns",
"plistStrings": {
"CFBundleName": "KeyPaws",
"CFBundleIdentifier": "com.aliblackwell.KeyPaws",
"CFBundleDocumentTypes": []
}
}
},
"window": {},
"dependencies": {
"@sendgrid/mail": "^6.5.1",
"auto-launch": "^5.0.5",
"btoa": "^1.2.1",
"cors": "^2.8.5",
"dotenv-webpack": "^1.7.0",
"express": "^4.17.1",
"isomorphic-fetch": "^2.2.1",
"nano": "^8.2.2",
"netlify-cli": "^2.25.0",
"netlify-lambda": "^1.6.3",
"nw": "^0.45.6",
"nw-autoupdater": "^1.1.11",
"serverless-http": "^2.3.1",
"stripe": "^8.7.0"
},
"scripts": {
"test": "mocha",
"site:serve": "dotenv -- cross-var npx eleventy --serve",
"site:build": "npx eleventy && npm run functions:build",
"netlify-dev": "dotenv -- cross-var netlify dev",
"functions:watch": "netlify-lambda serve --config ./webpack.functions.js ./functions",
"functions:build": "netlify-lambda build --config ./webpack.functions.js ./functions",
"lint": "eslint --fix './test/*.test.js' './app/*.js' './downloads/*.js' './app/*.html'",
"start": "dotenv -- cross-var nw --enable-logging=stderr",
"record:cat": "python3 ./capture/record.py cat",
"record:human": "python3 ./capture/record.py human",
"ml:wrangle": "python3 ./capture/wrangle.py",
"clear-settings": "rm -rf /Users/aliblackwell/Library/ApplicationSupport/Keypaws/Default/*.json",
"clean": "rm -rf ./dist/ ./build/ ./ship-mac/KeyPaws.app ./ship-mac/*.zip ./ship-mac/*.dmg",
"clean:python": "rm -rf ./dist/ ./build/ ./background",
"update:package": "cp -r ./app/* ./ship-mac/KeyPaws.app/Contents/Resources/app.nw/app/",
"update:app": "cp ./app/*.html ./app/*.js /Applications/KeyPaws.app/Contents/Resources/app.nw/app/ && cp ./app/widgets/*.js /Applications/KeyPaws.app/Contents/Resources/app.nw/app/widgets/ && cp ./app/js-client/*.js /Applications/KeyPaws.app/Contents/Resources/app.nw/app/js-client/",
"build:keypaws": "dotenv -- cross-var pyinstaller --osx-codesign-identity=%APPLE_DEVELOPER_ID% ./capture/keypaws.spec",
"build:record": "pyinstaller ./capture/record.spec",
"bundle:python": "rm -rf ./background && mkdir background && mv ./dist/keypaws ./background/keypaws",
"build:auto-launch": "parcel build ./app/widgets/auto-launch-server.js --target node --bundle-node-modules",
"build:auto-update": "parcel build ./app/auto-update-server.js --target node --bundle-node-modules",
"build:license": "parcel build ./app/widgets/license-server.js --target node --bundle-node-modules",
"build:app": "build --tasks mac-x64 --mirror https://dl.nwjs.io/ . && dotenv -- cross-var mv ./dist/KeyPaws\\ %VERSION_NUMBER%\\ mac\\ x64/KeyPaws.app ./ship-mac/KeyPaws.app && dotenv -- cross-var rm -rf ./dist/KeyPaws\\ %VERSION_NUMBER%\\ mac\\ x64",
"build:win": "build --tasks win-x86,win-x64 --mirror https://dl.nwjs.io/ .",
"tidy:app": "rm -rf ./ship-mac/KeyPaws.app/Contents/Resources/app.nw/app/styles ./ship-mac/KeyPaws.app/Contents/Resources/app.nw/node_modules ./ship-mac/KeyPaws.app/Contents/Resources/app.nw/downloads ./ship-mac/KeyPaws.app/Contents/Resources/app.nw/capture ./ship-mac/KeyPaws.app/Contents/Resources/app.nw/capture ./ship-mac/KeyPaws.app/Contents/Resources/app.nw/ship-mac ./ship-mac/KeyPaws.app/Contents/Resources/app.nw/website ./ship-mac/KeyPaws.app/Contents/Resources/app.nw/build && chmod 775 ./ship-mac/KeyPaws.app/Contents/Resources/app.nw/background/keypaws/keypaws && mv ./dist/auto-update-server.js ./ship-mac/KeyPaws.app/Contents/Resources/app.nw/app/auto-update-server.js && mv ./dist/auto-launch-server.js ./ship-mac/KeyPaws.app/Contents/Resources/app.nw/app/widgets/auto-launch-server.js && mv ./dist/license-server.js ./ship-mac/KeyPaws.app/Contents/Resources/app.nw/app/widgets/license-server.js && cp -r ./website/styles ./ship-mac/KeyPaws.app/Contents/Resources/app.nw/app/styles",
"sign:deep": "dotenv -- cross-var codesign --options runtime --entitlements ship-mac/entitlements.plist --force --verbose=4 --sign %APPLE_DEVELOPER_ID% --deep ./ship-mac/KeyPaws.app/Contents/MacOS/KeyPaws ./ship-mac/KeyPaws.app/Contents/Frameworks/nwjs\\ Framework.framework/nwjs\\ Framework ./ship-mac/KeyPaws.app/Contents/Frameworks/nwjs\\ Framework.framework/Versions/%CHROMIUM_VERSION%/Libraries/libEGL.dylib ./ship-mac/KeyPaws.app/Contents/Frameworks/nwjs\\ Framework.framework/Versions/%CHROMIUM_VERSION%/Libraries/libGLESv2.dylib ./ship-mac/KeyPaws.app/Contents/Frameworks/nwjs\\ Framework.framework/Versions/%CHROMIUM_VERSION%/Libraries/libswiftshader_libEGL.dylib ./ship-mac/KeyPaws.app/Contents/Frameworks/nwjs\\ Framework.framework/Versions/%CHROMIUM_VERSION%/Libraries/libswiftshader_libGLESv2.dylib ./ship-mac/KeyPaws.app/Contents/Resources/app.nw/background/keypaws/keypaws",
"sign": "dotenv -- cross-var codesign --options runtime --entitlements ship-mac/entitlements.plist --force --verbose=4 --sign %APPLE_DEVELOPER_ID% --deep ./ship-mac/KeyPaws.app",
"verify": "codesign --verify --deep --strict --verbose=2 ./ship-mac/KeyPaws.app",
"is-entitled": "codesign -dvvv --entitlements :- ./ship-mac/KeyPaws.app/",
"bundle:mac": "dotenv cross-var appdmg ./ship-mac/appdmg.json ./ship-mac/KeyPaws%VERSION_NUMBER%.dmg",
"zip:app": "cd ./ship-mac && zip -y -r ./KeyPaws.zip ./KeyPaws.app && cd ../",
"build:all-orig": "npm run clean && npm run build:keypaws && npm run bundle:python && npm run build:auto-launch && npm run build:auto-update && npm run build:license && npm run build:app && npm run tidy:app && npm run sign:deep && npm run sign && npm run bundle:mac && npm run zip:app",
"build:bundle": "npm run clean && npm run build:auto-launch && npm run build:auto-update && npm run build:license && npm run build:app && npm run tidy:app && npm run sign:deep && npm run sign && npm run bundle:mac && npm run zip:app",
"build:bundle-no-dmg": "npm run clean && npm run build:auto-launch && npm run build:auto-update && npm run build:license && npm run build:app && npm run tidy:app && npm run sign:deep && npm run sign && npm run zip:app",
"notarize:app": "xcrun altool -t osx -f './ship-mac/KeyPaws.zip' --primary-bundle-id com.aliblackwell.KeyPaws --notarize-app --verbose -itc_provider 6B4HNA4Z97 --username [email protected]",
"notarize:dmg": "dotenv -- cross-var xcrun altool -t osx -f './ship-mac/KeyPaws%VERSION_NUMBER%.dmg' --primary-bundle-id com.aliblackwell.KeyPaws --notarize-app --verbose -itc_provider 6B4HNA4Z97 --username [email protected]",
"staple:dmg": "dotenv cross-var xcrun stapler staple ./ship-mac/KeyPaws%VERSION_NUMBER%.dmg",
"staple:app": "cd ./ship-mac && dotenv cross-var xcrun stapler staple ./KeyPaws.app",
"release": "mv ./downloads/KeyPaws*.dmg ./archive/ && mv ./downloads/KeyPaws*.zip ./archive/ && dotenv cross-var mv ./ship-mac/KeyPaws%VERSION_NUMBER%.dmg ./downloads/KeyPaws%VERSION_NUMBER%.dmg && mv ./ship-mac/KeyPaws.app ./KeyPaws.app && dotenv -- cross-var zip --symlinks -r ./downloads/KeyPaws%VERSION_NUMBER%.zip ./KeyPaws.app && rm -rf ./KeyPaws.app && dotenv -- cross-var node ./downloads/release.js",
"release-no-dmg": "mv ./downloads/KeyPaws*.zip ./archive/ && mv ./ship-mac/KeyPaws.app ./KeyPaws.app && dotenv -- cross-var zip --symlinks -r ./downloads/KeyPaws%VERSION_NUMBER%.zip ./KeyPaws.app && rm -rf ./KeyPaws.app && dotenv -- cross-var node ./downloads/release.js"
},
"directories": {
"test": "./test"
},
"devDependencies": {
"@11ty/eleventy": "^0.9.0",
"cross-var": "^1.1.0",
"cssnano": "^4.1.10",
"dotenv-cli": "^3.1.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.9.0",
"eslint-plugin-html": "^6.0.0",
"eslint-plugin-prettier": "^3.1.2",
"husky": "^3.1.0",
"lint-staged": "^9.5.0",
"mocha": "^7.2.0",
"nwjs-builder-phoenix": "^1.15.0",
"prettier": "^1.19.1"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"./app/**/*.{js,html}": [
"eslint --fix",
"git add"
],
"./downloads/**.js": [
"eslint --fix",
"git add"
],
"./test/*.test.js": [
"eslint --fix",
"git add"
]
}
}