keep some files outside the 'dist' folder
Massimo Melina committed
Jan 8, 2022 at 23:55 UTC
73a724aa5148a272b4ae1643593415426322c15a
3 files changed
+3
-69
package-lock.json
-66
@@ -22,7 +22,6 @@
22
"limiter": "^2.1.0",
23
"lodash": "^4.17.21",
24
"minimist": "^1.2.5",
25
- "stream-throttle": "^0.1.3",
25
"tssrp6a": "^3.0.0",
26
"yaml": "^2.0.0-10"
27
},
@@ -44,7 +43,6 @@
43
"@types/minimist": "^1.2.2",
44
"@types/mocha": "^9.0.0",
45
"@types/node": "^16.11.12",
47
- "@types/stream-throttle": "^0.1.1",
46
"axios": "^0.24.0",
47
"mocha": "^9.1.3",
48
"nm-prune": "^5.0.0",
@@ -736,15 +734,6 @@
734
"@types/node": "*"
735
}
736
},
739
- "node_modules/@types/stream-throttle": {
740
- "version": "0.1.1",
741
- "resolved": "https://registry.npmjs.org/@types/stream-throttle/-/stream-throttle-0.1.1.tgz",
742
- "integrity": "sha512-blC1VrTJBPET4IDEpRO05L0ks7cqyyc4XBRnQVroOLkcE8iaG6MYEQ/RSU7CQ3uIGk4r7wEH0W3ifbQqCVJVAA==",
743
- "dev": true,
744
- "dependencies": {
745
- "@types/node": "*"
746
- }
747
- },
737
"node_modules/@ungap/promise-all-settled": {
738
"version": "1.1.2",
739
"resolved": "https://registry.npmjs.org/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz",
@@ -1242,11 +1231,6 @@
1231
"node": ">=0.1.90"
1232
}
1233
},
1245
- "node_modules/commander": {
1246
- "version": "2.20.3",
1247
- "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
1248
- "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="
1249
- },
1234
"node_modules/compressible": {
1235
"version": "2.0.18",
1236
"resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz",
@@ -3714,26 +3698,6 @@
3698
"node": ">= 0.6"
3699
}
3700
},
3717
- "node_modules/stream-throttle": {
3718
- "version": "0.1.3",
3719
- "resolved": "https://registry.npmjs.org/stream-throttle/-/stream-throttle-0.1.3.tgz",
3720
- "integrity": "sha1-rdV8jXzHOoFjDTHNVdOWHPr7qcM=",
3721
- "dependencies": {
3722
- "commander": "^2.2.0",
3723
- "limiter": "^1.0.5"
3724
- },
3725
- "bin": {
3726
- "throttleproxy": "bin/throttleproxy.js"
3727
- },
3728
- "engines": {
3729
- "node": ">= 0.10.0"
3730
- }
3731
- },
3732
- "node_modules/stream-throttle/node_modules/limiter": {
3733
- "version": "1.1.5",
3734
- "resolved": "https://registry.npmjs.org/limiter/-/limiter-1.1.5.tgz",
3735
- "integrity": "sha512-FWWMIEOxz3GwUI4Ts/IvgVy6LPvoMPgjMdQ185nN6psJyBJ4yOpzqm695/h5umdLJg2vW3GR5iG11MAkR2AzJA=="
3736
- },
3701
"node_modules/string-width": {
3702
"version": "4.2.3",
3703
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
@@ -4796,15 +4760,6 @@
4760
"@types/node": "*"
4761
}
4762
},
4799
- "@types/stream-throttle": {
4800
- "version": "0.1.1",
4801
- "resolved": "https://registry.npmjs.org/@types/stream-throttle/-/stream-throttle-0.1.1.tgz",
4802
- "integrity": "sha512-blC1VrTJBPET4IDEpRO05L0ks7cqyyc4XBRnQVroOLkcE8iaG6MYEQ/RSU7CQ3uIGk4r7wEH0W3ifbQqCVJVAA==",
4803
- "dev": true,
4804
- "requires": {
4805
- "@types/node": "*"
4806
- }
4807
- },
4763
"@ungap/promise-all-settled": {
4764
"version": "1.1.2",
4765
"resolved": "https://registry.npmjs.org/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz",
@@ -5165,11 +5120,6 @@
5120
"resolved": "https://registry.npmjs.org/colors/-/colors-1.0.3.tgz",
5121
"integrity": "sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs="
5122
},
5168
- "commander": {
5169
- "version": "2.20.3",
5170
- "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
5171
- "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="
5172
- },
5123
"compressible": {
5124
"version": "2.0.18",
5125
"resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz",
@@ -7012,22 +6962,6 @@
6962
"resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz",
6963
"integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow="
6964
},
7015
- "stream-throttle": {
7016
- "version": "0.1.3",
7017
- "resolved": "https://registry.npmjs.org/stream-throttle/-/stream-throttle-0.1.3.tgz",
7018
- "integrity": "sha1-rdV8jXzHOoFjDTHNVdOWHPr7qcM=",
7019
- "requires": {
7020
- "commander": "^2.2.0",
7021
- "limiter": "^1.0.5"
7022
- },
7023
- "dependencies": {
7024
- "limiter": {
7025
- "version": "1.1.5",
7026
- "resolved": "https://registry.npmjs.org/limiter/-/limiter-1.1.5.tgz",
7027
- "integrity": "sha512-FWWMIEOxz3GwUI4Ts/IvgVy6LPvoMPgjMdQ185nN6psJyBJ4yOpzqm695/h5umdLJg2vW3GR5iG11MAkR2AzJA=="
7028
- }
7029
- }
7030
- },
6965
"string-width": {
6966
"version": "4.2.3",
6967
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
package.json
+2
-2
@@ -13,11 +13,11 @@
13
"watch-server": "nodemon --ignore tests/ --watch src -e ts,tsx --exec ts-node src/index.ts",
14
"start-frontend": "cd frontend && npm run start",
15
"start": "node dist",
16
- "build": "npm install && node timestamp && tsc --target es2018 && cp -r plugins READ* package*.json *.yaml dist && cd dist && npm ci --production && cd .. && npm run build-prune",
16
+ "build": "npm install && node timestamp && tsc --target es2018 && cp package*.json dist && cd dist && npm ci --production && cd .. && npm run build-prune",
17
"build-prune": "cd dist/node_modules/yaml/dist && mv doc do_c && cd ../.. && mkdir lodash2 && cp lodash/lodash.min.js lodash2/lodash.js && cp lodash/package.json lodash2 && rm -rf lodash && mv lodash2 lodash && cd .. && nm-prune --force && cd node_modules/yaml/dist && mv do_c doc",
18
"build-all": "rm -rf dist && npm run build && cd frontend && npm install && npm run build && echo COMPLETED",
19
"test": "mocha -r ts-node/register 'tests/**/*.ts'",
20
- "zip-dist": "zip hfs.zip -r *.yaml READ* dist/*",
20
+ "zip-dist": "zip hfs.zip -r *.yaml READ* dist/* plugins/*",
21
"make-exe-after-build": "pkg . -C brotli"
22
},
23
"bin": "dist/index.js",
todo.md
+1
-1
@@ -1,5 +1,5 @@
1
# To do
2
-- fix: plugins folder is not found
2
+- update tests to SRP login
3
- anti-csrf
4
- upload
5
- search and login dialogs should push to history so that mobile can use back button to close them