-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpackage.json
38 lines (38 loc) · 1.58 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
{
"license": "MIT",
"scripts": {
"archive": "yarn test && yarn clean_build && yarn build && yarn move_static && yarn zip_build",
"zip_build": "cd build;zip -r extension.zip *",
"build": "tsc",
"clean_build": "rm -rf build",
"move_static": "cp -R static/ build/",
"test": "mocha -r ts-node/register test/**/*.spec.ts"
},
"scriptsComments": {
"archive": "Runs [test], [clean_build], [build], [move_static] and finally [zip_build]",
"zip_build": "Packages all files in the build/ folder to a single zip file. Used to publish the extension on the Chrome Web Store https://chrome.google.com/webstore/detail/otto-tabs/pjgajilkdijnbfmglfbpnenocpajmdlb",
"build": "Compiles all typescript files according to the tsconfig.json configuration file",
"clean_build": "Removes all files in the build/ folder",
"move_static": "Copies all static files from static/ to build/ folder",
"test": "Runs all tests located in the test/ folder"
},
"devDependencies": {
"@types/chai": "^4.1.6",
"@types/chai-spies": "^1.0.0",
"@types/filesystem": "^0.0.32",
"@types/mocha": "^10.0.1",
"@types/node": "^20.4.5",
"chai": "^4.2.0",
"chai-spies": "^1.0.0",
"mocha": "^10.2.0",
"ts-node": "^10.9.1",
"typescript": "^5.1.6"
},
"dependenciesComments": {
"@types/filesystem": "Needs to be declared otherwise typescript and chrome types conflict https://stackoverflow.com/questions/74206705/typescript-upgrade-and-chrome-types-conflict",
"@types/node": "Peer dependency of ts-node"
},
"dependencies": {
"@types/chrome": "^0.0.267"
}
}