-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
65 lines (65 loc) · 2.74 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
{
"name": "attendance_scanner",
"description": "QR code based attendance with SQLite, Express, Firebase Auth, and Braintree",
"version": "0.1.0",
"dependencies": {
"body-parser": "^1.20.1",
"braintree": "^3.13.0",
"compression": "^1.7.4",
"cors": "^2.8.5",
"express": "^4.18.2",
"express-admin": "^2.0.0",
"firebase-admin": "^12.0.0",
"node-fetch": "^2.7.0",
"node-persist": "^3.1.3",
"sql-strings": "^1.0.0",
"sqlite-auto-migrator": "^1.1.3",
"uuid": "^9.0.0"
},
"devDependencies": {
"dotenv": "^16.0.3",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"firebase-tools": "^13.7.2",
"fixpack": "^4.0.0",
"nodemon": "^3.0.1",
"prettier": "^3.1.1",
"selenium-webdriver": "^4.15.0",
"supertest": "^6.3.3",
"svgtofont": "^4.0.1"
},
"engines": {
"node": "^18.17"
},
"keywords": [
"QR",
"attendance",
"braintree",
"express",
"firebase",
"selenium",
"sqlite3"
],
"license": "MIT",
"main": "./server/server.js",
"private": true,
"repository": {
"url": "https://github.com/clr-li/AttendanceScanner"
},
"scripts": {
"build": "npm run build:format && npm run build:icons",
"build:format": "(fixpack || true) && (eslint . --fix || true) && npx prettier --write .",
"build:icons": "node ./scripts/icons.js",
"deploy": "fly deploy && npm run deploy:fire",
"deploy:fire": "node -r dotenv/config ./scripts/deploy.js",
"dev": "ATT_CODE_DIR=.data/att_codes DB_FILE=./.data/ATT.db DEVELOPMENT=true PORT=3000 nodemon --inspect -r dotenv/config ./server/server.js",
"docker:build": "docker build --tag 'attendqr' .",
"docker:run": "docker run -t -i -p 3000:3000 --env-file .env 'attendqr'",
"predeploy": "git checkout main && git diff-index --quiet HEAD -- || (echo 'Please commit your changes before deploying' && exit 1)",
"predev": "open http://localhost:3000 || start chrome \"http://localhost:3000\" || google-chrome 'http://localhost:3000' || echo 'Could not open browser automatically. Please open http://localhost:3000 manually'",
"start": "node ./server/server.js",
"test": "npm run test:lint && ATT_CODE_DIR=.data/att_codes DB_FILE=:memory: node -r dotenv/config --test --experimental-test-coverage --test-reporter=spec --test-reporter=tap --test-reporter-destination=stdout --test-reporter-destination=tap.info && npm run test:badges",
"test:badges": "node ./scripts/badges.js",
"test:lint": "npx eslint-config-prettier ./index.js && eslint . && npx prettier --check ."
}
}