-
Notifications
You must be signed in to change notification settings - Fork 142
/
Copy pathpackage.json
207 lines (207 loc) · 9.54 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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
{
"name": "igbo-api",
"version": "1.64.1",
"description": "Igbo Dictionary API contains Igbo words, definitions, and examples",
"author": "Ijemma Onwuzulike",
"main": "server.js",
"scripts": {
"build": "rm -rf dist/ && rm -rf build/ && npm run build:site && npm run build:src",
"build:src": "tsc -p ./tsconfig.json && cross-env NODE_ENV=build npm run build:dictionaries && npm run build:functions",
"build:functions": "rm -rf functions/src && shx cp -r ./build ./functions && shx cp -r ./dist ./functions && shx cp -r ./build/src/dictionaries/ig-en ./functions/dictionaries",
"build:dictionaries:nsibidi": "[ ! -d \"./build/src/dictionaries\" ] && shx mkdir ./build/src/dictionaries || echo '' && [ ! -d \"./build/src/dictionaries/nsibidi\" ] && shx mkdir ./build/src/dictionaries/nsibidi || echo 'Nsibidi dictionary dir already exists'",
"build:dictionaries:ig:en": "[ ! -d \"./build/src/dictionaries\" ] && shx mkdir ./build/src/dictionaries || echo '' && [ ! -d \"./build/src/dictionaries/ig-en\" ] && shx mkdir ./build/src/dictionaries/ig-en || echo 'Igbo to English dictionaries dir already exists'",
"build:dictionaries:en:ig": "[ ! -d \"./build/src/dictionaries\" ] && shx mkdir ./build/src/dictionaries || echo '' && [ ! -d \"./build/src/dictionaries/en-ig\" ] && shx mkdir ./build/src/dictionaries/en-ig || echo 'English to Igbo dictionaries dir already exists'",
"prebuild:dictionaries": "npm run build:dictionaries:nsibidi && npm run build:dictionaries:ig:en && npm run build:dictionaries:en:ig && shx cp -r ./src/dictionaries/ig-en ./build/dictionaries && shx cp -r ./src/dictionaries/en-ig ./build/dictionaries",
"build:dictionaries": "node ./build/src/dictionaries/buildDictionaries.js",
"build:site": "cross-env NEXT_PUBLIC_GA_ID=$GA_TRACKING_ID next build && npm run build:fonts && npm run build:assets",
"build:fonts": "shx cp -r ./src/public/fonts/ ./dist/fonts",
"build:assets": "shx cp -r ./src/pages/assets/ ./dist/assets",
"start:emulators": "export FIREBASE_AUTH_EMULATOR_HOST=127.0.0.1:9709; node_modules/.bin/firebase emulators:start --only functions,hosting,auth",
"start:watch": "nodemon --watch './src' --ext ts,js,tsx,jsx --ignore './functions' --verbose --exec \"export FIREBASE_AUTH_EMULATOR_HOST=127.0.0.1:9709; npm run build:src && npm run start\"",
"clean": "shx rm -rf node_modules/ build/ dist/ out/ yarn. lock package-lock.json *.log",
"kill:project": "fkill :5005 :8085 :8080 :8081 :8088 -fs",
"predev:backend": "firebase functions:config:set runtime.env=development && firebase use staging",
"dev:backend": "npm-run-all -p start:watch start:emulators start:database",
"predev": "npm run kill:project",
"dev": "npm-run-all -p start:watch start:database dev:site",
"predev:full:database": "firebase functions:config:set env.redis_url=redis://localhost:6379 env.replica_set=true env.redis_status=true",
"dev:full:database": "npm-run-all -p start:watch start:emulators start:database:replica",
"dev:light": "npm-run-all -p start:watch start:database",
"dev:site": "npm-run-all -p start:emulators dev:site:next",
"dev:site:next": "firebase functions:config:set runtime.env=development && next -p 3035",
"migrate-up": "migrate-mongo up",
"migrate-down": "migrate-mongo down",
"mongodump": "shx rm -rf dump/ && mongodump -d igbo_api -o dump",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"precommit": "lint-staged",
"test": "npm-run-all -p -r start:database jest",
"cypress": "cross-env NODE_ENV=test npm-run-all -p start start:database cypress:open",
"cypress:ci": "cross-env NODE_ENV=test npm-run-all -p -r start cypress:run",
"cypress:open": "cypress open",
"cypress:run": "cypress run",
"jest:backend:database": "cross-env NODE_ENV=test jest --forceExit --runInBand --config=jest.backend.database.config.ts",
"jest:backend:no-database": "cross-env NODE_ENV=test jest --forceExit --runInBand --config=jest.backend.config.ts",
"jest:backend": "npm run jest:backend:database && npm run jest:backend:no-database",
"jest:frontend": "cross-env NODE_ENV=test jest --forceExit --runInBand --config=jest.frontend.config.ts",
"jest": "npm run jest:backend && npm run jest:frontend",
"prestart:database": "[ ! -d \"./db\" ] && shx mkdir ./db || echo 'Database directory exists'",
"prestart:database:replica": "[ ! -d \"./mongos\" ] && shx mkdir ./mongos || echo 'Parent database directory exists'",
"prestart:database:primary": "[ ! -d \"./mongos/db1\" ] && shx mkdir ./mongos/db1 || echo 'Primary database directory exists'",
"prestart:database:secondary:first": "[ ! -d \"./mongos/db2\" ] && shx mkdir ./mongos/db2 || echo 'First secondary database directory exists'",
"prestart:database:secondary:second": "[ ! -d \"./mongos/db3\" ] && shx mkdir ./mongos/db3 || echo 'Second secondary database directory exists'",
"start": "node ./build/src/server.js",
"start:docker": "docker-compose up",
"test:build": "cross-env NODE_ENV=build npm run start",
"start:database": "mongod --port 27017 --dbpath ./db --quiet &>/dev/null",
"start:database:replica": "npm-run-all -p start:database:primary start:database:secondary:first start:database:secondary:second",
"start:database:primary": "mongod --port 2717 --dbpath ./mongos/db1 --replSet rs0 --quiet",
"start:database:secondary:first": "mongod --port 2727 --dbpath ./mongos/db2 --replSet rs0 --quiet",
"start:database:secondary:second": "mongod --port 2737 --dbpath ./mongos/db3 --replSet rs0 --quiet"
},
"engines": {
"node": ">=20",
"npm": ">=8"
},
"husky": {
"hooks": {
"pre-commit": "npm run precommit",
"commit-msg": "npm run commit-msg"
}
},
"lint-staged": {
"*.{js,ts,tsx}": [
"./node_modules/.bin/prettier --write",
"./node_modules/.bin/eslint"
],
"**/*.ts": [
"bash -c tsc --noEmit"
]
},
"license": "ISC",
"dependencies": {
"@chakra-ui/icons": "^2.1.1",
"@chakra-ui/react": "^2.8.1",
"@emotion/react": "^11",
"@emotion/styled": "^11",
"@fortawesome/fontawesome": "^1.1.8",
"@fortawesome/fontawesome-free-regular": "^5.0.13",
"@fortawesome/fontawesome-free-solid": "^5.0.13",
"@fortawesome/fontawesome-svg-core": "^1.2.36",
"@fortawesome/free-solid-svg-icons": "^5.15.4",
"@fortawesome/react-fontawesome": "^0.1.16",
"@sendgrid/mail": "^7.4.0",
"@testing-library/cypress": "^10.0.1",
"@types/express": "^4.17.11",
"antd": "^4.14.0",
"autoprefixer": "^9.8.6",
"axios": "^0.21.1",
"bcrypt": "^5.0.0",
"body-parser": "^1.19.0",
"chalk": "^4.1.0",
"compression": "^1.7.4",
"cors": "^2.8.5",
"cross-env": "^7.0.2",
"diacriticless": "^1.0.1",
"dotenv": "^16.0.3",
"express": "4.17.1",
"express-rate-limit": "^5.2.3",
"firebase": "^10.12.2",
"firebase-admin": "^12.1.1",
"firebase-functions": "^5.0.1",
"firebase-tools": "^13.8.0",
"framer-motion": "^5",
"i18next": "^21.6.5",
"is-word": "^1.0.4",
"jest": "29.2.2",
"joi": "^17.4.0",
"jotai": "^2.7.1",
"lodash": "^4.17.20",
"mic-recorder-to-mp3": "^2.2.2",
"migrate-mongo": "^8.1.4",
"mongoose": "^6.7.0",
"morgan": "^1.10.0",
"next": "13.4.5",
"next-i18next": "10.1.0",
"next-react-svg": "1.1.3",
"node-cron": "^2.0.3",
"nodemon": "^2.0.4",
"npm-run-all": "^4.1.5",
"prop-types": "^15.7.2",
"query-string": "^7.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-firebase-hooks": "^5.1.1",
"react-hook-form": "^7.50.1",
"react-i18next": "^11.15.3",
"react-icons": "^5.0.1",
"react-json-pretty": "^2.2.0",
"react-scroll": "^1.8.1",
"redis": "^4.3.1",
"rimraf": "^3.0.2",
"sharp": "^0.32.5",
"shelljs": "^0.8.4",
"shx": "^0.3.3",
"string-similarity": "^4.0.2",
"stripe": "^15.1.0",
"tailwindcss": "3",
"typescript": "^5.6.2",
"unicharadata": "^9.0.0-alpha.6",
"uuid": "^8.3.2",
"zod-validation-error": "^3.4.0"
},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@eslint/js": "^9.11.1",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/commit-analyzer": "^8.0.1",
"@semantic-release/git": "^9.0.0",
"@semantic-release/npm": "^7.0.10",
"@semantic-release/release-notes-generator": "^9.0.1",
"@testing-library/dom": "^9.3.3",
"@testing-library/jest-dom": "^6.1.4",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.5.1",
"@types/bcrypt": "^5.0.0",
"@types/compression": "^1.7.2",
"@types/express-rate-limit": "^6.0.0",
"@types/jest": "^29.5.8",
"@types/mocha": "^10.0.6",
"@types/morgan": "^1.9.4",
"@types/node": "^20.3.0",
"@types/react": "^18.2.11",
"@types/react-scroll": "^1.8.9",
"@types/shelljs": "^0.8.15",
"@types/string-similarity": "^4.0.0",
"@types/supertest": "^6.0.2",
"@types/uuid": "^9.0.2",
"@typescript-eslint/parser": "^8.12.2",
"cypress": "^12.14.0",
"eslint": "^9.11.1",
"eslint-plugin-react": "^7.36.1",
"globals": "^15.9.0",
"husky": "^4.3.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^10.4.0",
"postcss": "^8.1.3",
"postcss-loader": "~3.0.0",
"postcss-preset-env": "^6.7.0",
"prettier": "3.2.5",
"supertest": "^6.3.1",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.2",
"typescript-eslint": "^8.7.0"
},
"standard-version": {
"skip": {
"changelog": true,
"tag": true
}
},
"resolutions": {
"esquery": "1.4.0"
},
"nodemonConfig": {
"delay": "1500ms"
}
}