forked from openwhyd/openwhyd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
168 lines (168 loc) Β· 6.84 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
{
"name": "openwhyd",
"version": "1.52.8",
"description": "A web app for collecting, playing and sharing music from various streaming platforms: Youtube, Soundcloud, Bandcamp, Vimeo, Deezer...",
"homepage": "https://openwhyd.org",
"license": "MIT",
"main": "app.js",
"repository": {
"type": "git",
"url": "https://github.com/openwhyd/openwhyd.git"
},
"scripts": {
"build": "scripts/transpile-bookmarklet.sh",
"semantic-release": "semantic-release",
"postinstall": "npm run -s donate; cp node_modules/playemjs/dist/playem-*.js public/js/",
"donate": "echo \"\n *** Thanks for downloading Openwhyd! ***\nPlease consider donating to our open collective\n\n => https://opencollective.com/openwhyd/donate\n\"",
"start": "node app.js --fakeEmail --digestInterval -1 $@",
"start:coverage": "npx --yes nyc --silent $(node -p 'require(`./package.json`).scripts.start') $@",
"start:coverage:no-clean": "npx --yes nyc --silent --no-clean $(node -p 'require(`./package.json`).scripts.start') $@",
"start:localdb": ". ./env-vars-testing.sh && npm start -- $@",
"stop": "npx --yes kill-port --port 8080 >/dev/null",
"test-reset": "node test/reset-test-db.js",
"test:functional": "npx --yes mocha test/functional/*.js --exit",
"test:functional:coverage": "npm run coverage:clear && npx --yes nyc --silent $(node -p 'require(`./package.json`).scripts[`test:functional`]') $@",
"test:integration": "npx --yes mocha test/integration/*.js --serial --exit",
"test:integration:localdb": "MONGODB_HOST=localhost MONGODB_PORT=27117 npm run test:integration -- $@",
"test:integration:coverage": "npx --yes nyc --silent --no-clean npm run test:integration:localdb -- $@",
"test:api": "START_WITH_ENV_FILE='./env-vars-testing.conf' npm run test:api:raw -- $@",
"test:api:raw": "npx --yes mocha test/api/*.tests.js",
"test:api:coverage": "npm run coverage:clear && COVERAGE=true npm run test:api -- --timeout 10000 && npm run coverage:report | grep api",
"test:unit": "npx --yes mocha test/unit/*.js --exit",
"test:unit:coverage": "npm run coverage:clear && npx --yes nyc --silent $(node -p 'require(`./package.json`).scripts[`test:unit`]') $@",
"test:approval:routes": "ava test/approval/routes/routes.approval.tests.js $@",
"test:approval:routes:update": "npm run test:approval:routes -- --update-snapshots",
"test:approval:routes:start": "START_WITH_ENV_FILE='./env-vars-testing.conf' npm run test:approval:routes -- $@",
"test:approval:hot-tracks:raw": "npx --yes jest --runInBand test/approval/hot-tracks/hot-tracks.approval.test.js $@",
"test:approval:hot-tracks": "PORT=8080 npm run test:approval:hot-tracks:raw -- $@",
"test:approval:hot-tracks:start": "START_WITH_ENV_FILE='./env-vars-testing.conf' npm run test:approval:hot-tracks:raw -- $@",
"test:approval:posting": "mocha test/approval/posting/posting.approval.tests.js $@",
"test:approval:posting:start": "START_WITH_ENV_FILE='./env-vars-testing.conf' npm run test:approval:posting -- $@",
"test:approval:posting:coverage": "npm run coverage:clear && COVERAGE=true npm run test:approval:posting:start -- --serial --timeout 10000 $@ && npm run coverage:report | grep post",
"test:cypress:dev": "node_modules/.bin/cypress open --e2e --browser electron",
"test:cypress": "node_modules/.bin/cypress run --browser electron",
"test:3rd-party": "jest test/3rd-party/*.test.js",
"test": "make test",
"coverage:clear": "rm -rf .nyc_output coverage",
"coverage:report": "npx --yes nyc report --reporter=text --reporter=lcov # stores the coverage report in coverage/lcov.info",
"coverage:summary": "npx --yes nyc report --reporter=text-summary --reporter=lcov # stores the coverage report in coverage/lcov.info",
"lint:jsdoc-typing": "npx --yes tsc --target es2015 --moduleResolution node --noEmit --allowJs --skipLibCheck `find app/ -name '*.js' -name '*.d.ts'` `find test/ -name '*.js' -name '*.d.ts'`",
"lint:typescript": "npx --yes tsc --noEmit --moduleResolution node --skipLibCheck",
"lint:format": "prettier . --write",
"lint:fix": "eslint . --fix",
"lint:errors": "eslint . --quiet",
"lint": "eslint .",
"lint:full": "make lint"
},
"directories": {
"src": "./app",
"config": "./config",
"doc": "./docs",
"test": "./test"
},
"dependencies": {
"algoliasearch": "4.17.0",
"argon2": "^0.30.3",
"async": "*",
"colors": "*",
"connect-mongo": "^3.2.0",
"dd-trace": "^4.11.1",
"express": "^4.18.2",
"express-session": "^1.17.3",
"formidable": "^2.1.1",
"hogan.js": "3.0.2",
"htmlparser": "*",
"iconv": ">=3.0.1",
"mongodb": "4.16.0",
"playemjs": "1.2.2",
"q-set": "^2.0.8",
"request": "2.88.2",
"wait-on": "^7.0.1"
},
"devDependencies": {
"@applitools/eyes-cypress": "^3.34.1",
"@cypress/code-coverage": "^3.11.0",
"@types/node": "^20.4.4",
"@typescript-eslint/eslint-plugin": "^6.1.0",
"@typescript-eslint/parser": "^6.1.0",
"approvals": "^6.2.1",
"ava": "^5.3.1",
"cypress": "^12.17.2",
"cypress-file-upload": "^5.0.8",
"cypress-log-to-output": "^1.1.2",
"eslint": "^8.45.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-deprecation": "^1.4.1",
"eslint-plugin-prettier": "^5.0.0",
"mocha": "10.2.0",
"nyc": "^15.1.0",
"prettier": "^3.0.0",
"ts-morph": "^19.0.0",
"typescript": "^5.1.6"
},
"resolutions": {
"istanbul-lib-coverage": "^3.2.0"
},
"release": {
"branch": "main",
"branches": [
"main"
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "angular",
"releaseRules": [
{
"type": "docs",
"scope": "README",
"release": "patch"
},
{
"type": "refactor",
"release": "patch"
},
{
"type": "style",
"release": "patch"
}
],
"parserOpts": {
"noteKeywords": [
"BREAKING CHANGE",
"BREAKING CHANGES"
]
}
}
],
"@semantic-release/changelog",
"@semantic-release/git",
"@semantic-release/npm",
"@semantic-release/github"
],
"verifyConditions": [
"@semantic-release/github"
],
"prepare": [
{
"path": "@semantic-release/changelog",
"changelogFile": "CHANGELOG.md"
},
"@semantic-release/npm",
{
"path": "@semantic-release/git",
"assets": [
"package.json",
"package-lock.json",
"CHANGELOG.md"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"publish": "@semantic-release/github",
"success": [],
"fail": [],
"npmPublish": false
}
}