-
Notifications
You must be signed in to change notification settings - Fork 46
/
package.json
117 lines (117 loc) · 6.44 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
{
"name": "flowcrypt-browser",
"version": "8.5.7",
"description": "Simple end-to-end encryption to secure email and attachments on Google.",
"resolutions": {
"graceful-fs": "4.1.13"
},
"devDependencies": {
"@openpgp/web-stream-tools": "^0.1.3",
"@types/chai": "4.3.19",
"@types/chai-as-promised": "7.1.8",
"@types/chrome": "0.0.284",
"@types/dompurify": "3.2.0",
"@types/jquery": "3.5.32",
"@types/mailparser": "3.4.5",
"ava": "5.3.1",
"chai": "4.5.0",
"chai-as-promised": "7.1.2",
"eslint": "9.15.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-header": "github:FlowCrypt/eslint-plugin-header",
"eslint-plugin-jsdoc": "^50.5.0",
"eslint-plugin-local-rules": "^3.0.2",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-no-only-tests": "3.3.0",
"eslint-plugin-prefer-arrow": "^1.2.3",
"googleapis": "144.0.0",
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"mailparser": "3.7.1",
"mkdirp": "3.0.1",
"openpgp": "6.0.0",
"pdfjs-dist": "4.8.69",
"prettier": "^3.3.3",
"puppeteer": "23.9.0",
"stylelint": "16.10.0",
"stylelint-config-standard": "36.0.1",
"typescript": "5.7.2",
"typescript-eslint": "^8.15.0",
"undici-types": "^6.21.0",
"web-ext": "8.3.0",
"webpack-cli": "^5.1.1"
},
"dependencies": {
"@flowcrypt/fine-uploader": "5.16.4",
"@types/thunderbird-webext-browser": "^127.0.0",
"bootstrap": "4.6.2",
"clipboard": "2.0.11",
"dompurify": "3.2.1",
"filesize": "10.1.2",
"iso-8859-2": "1.0.0",
"jquery": "3.7.1",
"linkify-html": "^4.1.4",
"linkifyjs": "^4.1.4",
"node-forge": "1.3.1",
"postcss-html": "^1.6.0",
"squire-rte": "2.3.2",
"sweetalert2": "11.14.5",
"tap-xunit": "^2.4.1",
"zxcvbn": "4.4.2"
},
"scripts": {
"build": "./scripts/build.sh",
"build-incremental": "./scripts/build.sh --incremental",
"build-assets-only": "./scripts/build.sh --assets-only",
"pretest": "npm run build --silent && cd conf && node ../build/tooling/tsc-compiler --project tsconfig.test.json && node ../build/tooling/resolve-modules --project tsconfig.test.json",
"pretest-incremental": "npm run build-incremental --silent && cd conf && node ../build/tooling/tsc-compiler --project tsconfig.test.json && node ../build/tooling/resolve-modules --project tsconfig.test.json",
"postinstall": "npm run pretest",
"test": "npm run test_buf && npm run test_eslint && npm run test_patterns && npm run test_async_stack && npm run test_ci_chrome_consumer -- -- --pool-size=1",
"test_local_chrome_consumer_mock": "npm run pretest && npm run test_ci_chrome_consumer -- -- --pool-size=1 --debug",
"test_local_chrome_enterprise_mock": "npm run pretest && npm run test_ci_chrome_enterprise -- -- --pool-size=1 --debug",
"test_local_chrome_consumer_live_gmail": "npm run pretest && npm run test_ci_chrome_consumer_live_gmail -- -- --pool-size=1 --debug",
"test_local_chrome_consumer_mock_flaky": "npm run pretest && npm run test_ci_chrome_consumer_flaky -- -- --pool-size=1 --retry=false --debug",
"test_local_unit_consumer": "npm run pretest && npx ava --timeout=20m --verbose --tap --concurrency=10 build/test/test/source/test.js -- UNIT-TESTS --retry=false --pool-size=1 --debug CONSUMER-MOCK | npx tap-xunit > report.xml",
"test_local_unit_enterprise": "npm run pretest && npx ava --timeout=20m --verbose --tap --concurrency=10 build/test/test/source/test.js -- UNIT-TESTS --retry=false --pool-size=1 --debug ENTERPRISE-MOCK | npx tap-xunit > report.xml",
"test_local_chrome_consumer_mock_headless": "xvfb-run npm run test_local_chrome_consumer_mock",
"test_stylelint": "stylelint extension/css/cryptup.css extension/css/settings.css extension/css/webmail.css && stylelint extension/**/*.htm --custom-syntax postcss-html",
"test_eslint": "export NODE_OPTIONS=\"--max-old-space-size=4096\"; eslint .",
"test_eslint_ci": "npm run test_eslint -- --format @microsoft/eslint-formatter-sarif --output-file eslint-results.sarif",
"test_patterns": "node build/test/test/source/patterns.js",
"test_async_stack": "node build/test/test/source/async-stack.js",
"test_buf": "npx ava --timeout=3m --verbose --concurrency=10 build/test/test/source/buf.js",
"test_ci_chrome_consumer_live_gmail": "npx ava --timeout=45m --verbose --tap --concurrency=1 build/test/test/source/test.js -- CONSUMER-LIVE-GMAIL STANDARD-GROUP | npx tap-xunit > report.xml",
"test_ci_chrome_consumer": "npx ava --timeout=30m --verbose --tap --concurrency=10 build/test/test/source/test.js -- CONSUMER-MOCK STANDARD-GROUP | npx tap-xunit > report.xml",
"test_ci_chrome_enterprise": "npx ava --timeout=30m --verbose --tap --concurrency=10 build/test/test/source/test.js -- ENTERPRISE-MOCK STANDARD-GROUP | npx tap-xunit > report.xml",
"test_ci_chrome_consumer_flaky": "npx ava --timeout=30m --verbose --tap --concurrency=10 build/test/test/source/test.js -- CONSUMER-MOCK FLAKY-GROUP | npx tap-xunit > report.xml",
"test_ci_chrome_content_scripts": "npx ava --timeout=3m --verbose --tap build/test/test/source/test.js -- CONTENT-SCRIPT-TESTS > report.xml",
"dev_start_gmail_mock_api": "./scripts/build.sh && cd ./conf && node ../build/tooling/tsc-compiler --project tsconfig.test.json && cd .. && node ./build/test/test/source/mock.js",
"run_firefox": "npm run build-incremental && npx web-ext run --source-dir ./build/firefox-consumer/ --firefox-profile ~/.mozilla/firefox/flowcrypt-dev --keep-profile-changes",
"run_firefox_windows": "npm run build-incremental && npx web-ext run --source-dir ./build/firefox-consumer/ --firefox-profile %userprofile%/AppData/Local/Mozilla/Firefox/Profiles/flowcrypt-dev --keep-profile-changes",
"find_unused": "ts-prune -p tsconfig.json | grep -v extension/types | grep -v extension/js/common/core",
"release-step-1": "npm run build && ./tooling/release-step-1-pack-and-sign",
"release-step-2": "./tooling/release-step-2-upload",
"prepare": "husky"
},
"repository": {
"type": "git",
"url": "git+https://github.com/FlowCrypt/flowcrypt-browser.git"
},
"author": "FlowCrypt a.s.",
"license": "SEE LICENSE IN <LICENSE>",
"bugs": {
"url": "https://github.com/FlowCrypt/flowcrypt-browser/issues"
},
"homepage": "https://flowcrypt.com",
"lint-staged": {
"*.ts": [
"npm run test_eslint",
"npm run test_patterns",
"prettier --write"
],
"*.{css,htm}": [
"npm run test_stylelint",
"prettier --write"
]
}
}