deadbolt-cli 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +209 -0
- package/dist/deadbolt-cli.js +3 -0
- package/package.json +247 -0
- package/scripts/postinstall.js +20 -0
package/package.json
ADDED
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "deadbolt-cli",
|
|
3
|
+
"productName": "Deadbolt",
|
|
4
|
+
"version": "2.1.1",
|
|
5
|
+
"description": "Dead-simple file encryption for any OS.",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"encryption",
|
|
8
|
+
"deadbolt",
|
|
9
|
+
"file-encryption"
|
|
10
|
+
],
|
|
11
|
+
"homepage": "https://github.com/alichtman/deadbolt",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/alichtman/deadbolt/issues"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/alichtman/deadbolt.git"
|
|
18
|
+
},
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"author": {
|
|
21
|
+
"name": "Aaron Lichtman",
|
|
22
|
+
"email": "aaronlichtman@gmail.com",
|
|
23
|
+
"url": "https://github.com/alichtman"
|
|
24
|
+
},
|
|
25
|
+
"contributors": [
|
|
26
|
+
{
|
|
27
|
+
"name": "Jonathan Shobrook",
|
|
28
|
+
"email": "shobrookj@gmail.com",
|
|
29
|
+
"url": "https://github.com/shobrook"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"main": "./.erb/dll/main.bundle.dev.js",
|
|
33
|
+
"bin": {
|
|
34
|
+
"deadbolt": "./dist/deadbolt-cli.js",
|
|
35
|
+
"deadbolt-cli": "./dist/deadbolt-cli.js"
|
|
36
|
+
},
|
|
37
|
+
"files": [
|
|
38
|
+
"dist/deadbolt-cli.js",
|
|
39
|
+
"dist/deadbolt-cli.js.map",
|
|
40
|
+
"scripts/postinstall.js"
|
|
41
|
+
],
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build:cli": "cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.cli.ts && chmod +x dist/deadbolt-cli.js",
|
|
44
|
+
"cli": "npm run build:cli && node dist/deadbolt-cli.js",
|
|
45
|
+
"install:cli": "npm install --ignore-scripts && npm run build:cli && npm link",
|
|
46
|
+
"install:global": "npm run build:cli && npm install -g .",
|
|
47
|
+
"clean": "rimraf dist",
|
|
48
|
+
"build": "npm run update-versions && concurrently \"npm run build:main\" \"npm run build:renderer\"",
|
|
49
|
+
"build:dll": "cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.renderer.dev.dll.ts",
|
|
50
|
+
"build:main": "cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.main.prod.ts",
|
|
51
|
+
"build:renderer": "cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.renderer.prod.ts",
|
|
52
|
+
"postinstall": "node scripts/postinstall.js",
|
|
53
|
+
"prepublishOnly": "npm run build:cli",
|
|
54
|
+
"lint": "cross-env NODE_ENV=development eslint . --ext .js,.jsx,.ts,.tsx",
|
|
55
|
+
"lint:fix": "cross-env NODE_ENV=development eslint . --ext .js,.jsx,.ts,.tsx --fix",
|
|
56
|
+
"package": "npm run update-versions && ts-node ./.erb/scripts/clean.js dist && npm run build && electron-builder build -mlw --publish onTagOrDraft && npm run build:dll",
|
|
57
|
+
"package:mac": "npm run update-versions && ts-node ./.erb/scripts/clean.js dist && npm run build && electron-builder build -m --publish never && npm run build:dll",
|
|
58
|
+
"package:windows": "npm run update-versions && ts-node ./.erb/scripts/clean.js dist && npm run build && electron-builder build -w --publish never && npm run build:dll",
|
|
59
|
+
"package:linux": "npm run update-versions && ts-node ./.erb/scripts/clean.js dist && npm run build && electron-builder build -l --publish never && npm run build:dll",
|
|
60
|
+
"package:linux-flatpak": "npm run update-versions && ts-node ./.erb/scripts/clean.js dist && npm run build && electron-builder build -l flatpak --publish never && npm run build:dll",
|
|
61
|
+
"package:linux-appimage": "npm run update-versions && ts-node ./.erb/scripts/clean.js dist && npm run build && electron-builder build -l AppImage --publish never && npm run build:dll",
|
|
62
|
+
"rebuild": "electron-rebuild --parallel --types prod,dev,optional --module-dir release/app",
|
|
63
|
+
"prestart": "cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.main.dev.ts",
|
|
64
|
+
"start": "npm run update-versions && ts-node ./.erb/scripts/check-port-in-use.js && npm run prestart && npm run start:renderer",
|
|
65
|
+
"start:main": "npm run update-versions && concurrently -k \"cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack --watch --config ./.erb/configs/webpack.config.main.dev.ts\" \"electronmon .\"",
|
|
66
|
+
"start:preload": "npm run update-versions && cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.preload.dev.ts",
|
|
67
|
+
"start:renderer": "npm run update-versions && cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack serve --config ./.erb/configs/webpack.config.renderer.dev.ts",
|
|
68
|
+
"test": "jest",
|
|
69
|
+
"update-versions": "ts-node scripts/copy-version-from-main-to-app.ts",
|
|
70
|
+
"release": "ts-node scripts/release.ts",
|
|
71
|
+
"prepare": "husky install"
|
|
72
|
+
},
|
|
73
|
+
"browserslist": [
|
|
74
|
+
"extends browserslist-config-erb"
|
|
75
|
+
],
|
|
76
|
+
"prettier": {
|
|
77
|
+
"singleQuote": true,
|
|
78
|
+
"overrides": [
|
|
79
|
+
{
|
|
80
|
+
"files": [
|
|
81
|
+
".prettierrc",
|
|
82
|
+
".eslintrc"
|
|
83
|
+
],
|
|
84
|
+
"options": {
|
|
85
|
+
"parser": "json"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
"jest": {
|
|
91
|
+
"globalSetup": "./.erb/scripts/jest-global-setup.ts",
|
|
92
|
+
"moduleDirectories": [
|
|
93
|
+
"node_modules",
|
|
94
|
+
"release/app/node_modules",
|
|
95
|
+
"src"
|
|
96
|
+
],
|
|
97
|
+
"moduleFileExtensions": [
|
|
98
|
+
"js",
|
|
99
|
+
"jsx",
|
|
100
|
+
"ts",
|
|
101
|
+
"tsx",
|
|
102
|
+
"json"
|
|
103
|
+
],
|
|
104
|
+
"moduleNameMapper": {
|
|
105
|
+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/.erb/mocks/fileMock.js",
|
|
106
|
+
"\\.(css|less|sass|scss)$": "identity-obj-proxy"
|
|
107
|
+
},
|
|
108
|
+
"setupFiles": [
|
|
109
|
+
"./.erb/scripts/check-build-exists.ts",
|
|
110
|
+
"./.erb/scripts/jest-setup-argon2.ts"
|
|
111
|
+
],
|
|
112
|
+
"testEnvironment": "jsdom",
|
|
113
|
+
"testEnvironmentOptions": {
|
|
114
|
+
"url": "http://localhost/"
|
|
115
|
+
},
|
|
116
|
+
"testPathIgnorePatterns": [
|
|
117
|
+
"release/app/dist",
|
|
118
|
+
".erb/dll"
|
|
119
|
+
],
|
|
120
|
+
"modulePathIgnorePatterns": [
|
|
121
|
+
"<rootDir>/release/app/dist",
|
|
122
|
+
"<rootDir>/release/app/package.json"
|
|
123
|
+
],
|
|
124
|
+
"transform": {
|
|
125
|
+
"\\.(ts|tsx|js|jsx)$": "ts-jest"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"dependencies": {
|
|
129
|
+
"@node-rs/argon2": "^2.0.2",
|
|
130
|
+
"@electron/notarize": "^2.5.0",
|
|
131
|
+
"@emotion/react": "^11.14.0",
|
|
132
|
+
"@emotion/styled": "^11.14.0",
|
|
133
|
+
"@mui/icons-material": "^6.4.0",
|
|
134
|
+
"@mui/material": "^6.4.0",
|
|
135
|
+
"archiver": "^7.0.1",
|
|
136
|
+
"chalk": "^4.1.2",
|
|
137
|
+
"commander": "^14.0.2",
|
|
138
|
+
"electron-debug": "^3.2.0",
|
|
139
|
+
"electron-log": "^5.2.4",
|
|
140
|
+
"electron-updater": "^6.3.9",
|
|
141
|
+
"material-file-icons": "^2.4.0",
|
|
142
|
+
"prompts": "^2.4.2",
|
|
143
|
+
"react": "^18.2.0",
|
|
144
|
+
"react-dom": "^18.2.0",
|
|
145
|
+
"react-dropzone": "^14.3.5",
|
|
146
|
+
"react-file-icon": "^1.5.0",
|
|
147
|
+
"react-icons": "^5.4.0",
|
|
148
|
+
"react-lottie": "^1.2.10",
|
|
149
|
+
"react-router-dom": "^6.16.0"
|
|
150
|
+
},
|
|
151
|
+
"devDependencies": {
|
|
152
|
+
"@electron/rebuild": "^3.7.1",
|
|
153
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
|
|
154
|
+
"@svgr/webpack": "^8.1.0",
|
|
155
|
+
"@teamsupercell/typings-for-css-modules-loader": "^2.5.2",
|
|
156
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
157
|
+
"@testing-library/react": "^16.1.0",
|
|
158
|
+
"@types/archiver": "^6.0.3",
|
|
159
|
+
"@types/glob": "^8.1.0",
|
|
160
|
+
"@types/jest": "^29.5.14",
|
|
161
|
+
"@types/node": "22.10.5",
|
|
162
|
+
"@types/prompts": "^2.4.9",
|
|
163
|
+
"@types/react": "^19.0.2",
|
|
164
|
+
"@types/react-dom": "^18.2.7",
|
|
165
|
+
"@types/react-file-icon": "^1.0.4",
|
|
166
|
+
"@types/react-lottie": "^1.2.10",
|
|
167
|
+
"@types/react-test-renderer": "^19.0.0",
|
|
168
|
+
"@types/webpack-bundle-analyzer": "^4.7.0",
|
|
169
|
+
"@types/which": "^3.0.4",
|
|
170
|
+
"@typescript-eslint/eslint-plugin": "^6.7.0",
|
|
171
|
+
"@typescript-eslint/parser": "^6.7.0",
|
|
172
|
+
"browserslist-config-erb": "^0.0.3",
|
|
173
|
+
"cli-select": "^1.1.2",
|
|
174
|
+
"concurrently": "^9.1.2",
|
|
175
|
+
"core-js": "^3.39.0",
|
|
176
|
+
"cross-env": "^7.0.3",
|
|
177
|
+
"css-loader": "^7.1.2",
|
|
178
|
+
"css-minimizer-webpack-plugin": "^7.0.0",
|
|
179
|
+
"detect-port": "^2.1.0",
|
|
180
|
+
"electron": "^31.3.0",
|
|
181
|
+
"electron-builder": "^25.1.8",
|
|
182
|
+
"electron-devtools-installer": "^3.2.0",
|
|
183
|
+
"electronmon": "^2.0.2",
|
|
184
|
+
"eslint": "^8.49.0",
|
|
185
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
186
|
+
"eslint-config-erb": "^4.1.0-0",
|
|
187
|
+
"eslint-import-resolver-typescript": "^3.6.0",
|
|
188
|
+
"eslint-import-resolver-webpack": "^0.13.7",
|
|
189
|
+
"eslint-plugin-compat": "^4.2.0",
|
|
190
|
+
"eslint-plugin-import": "^2.28.1",
|
|
191
|
+
"eslint-plugin-jest": "^27.4.0",
|
|
192
|
+
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
193
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
194
|
+
"eslint-plugin-react": "^7.33.2",
|
|
195
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
196
|
+
"file-loader": "^6.2.0",
|
|
197
|
+
"html-webpack-plugin": "^5.6.3",
|
|
198
|
+
"husky": "^8.0.3",
|
|
199
|
+
"identity-obj-proxy": "^3.0.0",
|
|
200
|
+
"jest": "^29.7.0",
|
|
201
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
202
|
+
"mini-css-extract-plugin": "^2.9.2",
|
|
203
|
+
"prettier": "^3.4.2",
|
|
204
|
+
"react-refresh": "^0.16.0",
|
|
205
|
+
"react-test-renderer": "^18.2.0",
|
|
206
|
+
"rimraf": "^6.0.1",
|
|
207
|
+
"sass": "^1.67.0",
|
|
208
|
+
"sass-loader": "^16.0.1",
|
|
209
|
+
"shlex": "github:rgov/node-shlex",
|
|
210
|
+
"style-loader": "^3.3.3",
|
|
211
|
+
"terser-webpack-plugin": "^5.3.11",
|
|
212
|
+
"ts-jest": "^29.2.5",
|
|
213
|
+
"ts-loader": "^9.5.1",
|
|
214
|
+
"ts-node": "^10.9.2",
|
|
215
|
+
"tsconfig-paths-webpack-plugin": "^4.2.0",
|
|
216
|
+
"typescript": "^5.7.2",
|
|
217
|
+
"url-loader": "^4.1.1",
|
|
218
|
+
"webpack": "^5.88.2",
|
|
219
|
+
"webpack-bundle-analyzer": "^4.9.1",
|
|
220
|
+
"webpack-cli": "^5.1.4",
|
|
221
|
+
"webpack-dev-server": "^4.15.1",
|
|
222
|
+
"webpack-merge": "^5.9.0"
|
|
223
|
+
},
|
|
224
|
+
"optionalDependencies": {
|
|
225
|
+
"dmg-license": "^1.0.11"
|
|
226
|
+
},
|
|
227
|
+
"devEngines": {
|
|
228
|
+
"runtime": {
|
|
229
|
+
"name": "node",
|
|
230
|
+
"version": ">=22.x",
|
|
231
|
+
"onFail": "error"
|
|
232
|
+
},
|
|
233
|
+
"packageManager": {
|
|
234
|
+
"name": "npm",
|
|
235
|
+
"version": ">=7.x",
|
|
236
|
+
"onFail": "error"
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"electronmon": {
|
|
240
|
+
"patterns": [
|
|
241
|
+
"!**/**",
|
|
242
|
+
"src/main/**",
|
|
243
|
+
".erb/dll/**"
|
|
244
|
+
],
|
|
245
|
+
"logLevel": "quiet"
|
|
246
|
+
}
|
|
247
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
|
|
6
|
+
// Detect whether we're in the source checkout by the presence of the .erb
|
|
7
|
+
// directory, which is not included in the published npm package.
|
|
8
|
+
// - Source checkout (git clone && npm install): run full dev setup
|
|
9
|
+
// - Package install (npm install -g, npx, etc.): @node-rs/argon2 is handled
|
|
10
|
+
// by npm automatically via dependencies; skip dev-only setup entirely.
|
|
11
|
+
const isSourceCheckout = fs.existsSync(path.join(__dirname, '../.erb'));
|
|
12
|
+
if (!isSourceCheckout) {
|
|
13
|
+
process.exit(0);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const { execSync } = require('child_process');
|
|
17
|
+
execSync(
|
|
18
|
+
'ts-node .erb/scripts/check-native-dep.js && electron-builder install-app-deps && npm run build:dll',
|
|
19
|
+
{ stdio: 'inherit', shell: true },
|
|
20
|
+
);
|