-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
69 lines (69 loc) · 2.43 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
{
"name": "@thatconference/voting-on-update",
"version": "1.0.1",
"description": "Firestore event to aggregate votes",
"repository": {
"type": "git",
"url": "git+https://github.com/ThatConference/that-api-functions.git"
},
"license": "GPL-3.0",
"main": "index.js",
"engines": {
"node": "12.x"
},
"scripts": {
"build": "rimraf __build__ && babel ./src -d ./__build__ --copy-files --ignore ./**/__tests__",
"postbuild": "cp -v .env package.json package-lock.json __build__",
"preprod:deploy": "npm run build",
"prod:deploy": "gcloud functions deploy voting-on-update --runtime nodejs10 --trigger-event providers/cloud.firestore/eventTypes/document.update --trigger-resource 'projects/qa-that/databases/(default)/documents/votes/{vote}' --entry-point handler --source ./__build__",
"deploy:api:handler": "functions-framework --target=handler --port=9000 --signature-type=event --source=./__build__",
"prestart:watch:this": "npm run build",
"start:watch:this": "concurrently npm:deploy:api:* --raw",
"start:watch": "nodemon -e env,js,json --watch src --ignore '*.test.js' --exec npm run start:watch:this",
"test": "jest --coverage --passWithNoTests",
"test:watch": "cross-env jest --watchAll",
"lint": "eslint 'src/**/*.js'",
"validate": "concurrently npm:test npm:lint npm:build"
},
"dependencies": {
"@google-cloud/firestore": "^4.15.1",
"@sentry/node": "^6.13.2",
"connect": "^3.7.0",
"debug": "^4.3.2",
"dotenv": "^10.0.0"
},
"devDependencies": {
"@babel/cli": "^7.15.7",
"@babel/core": "^7.15.5",
"@babel/node": "^7.15.4",
"@babel/preset-env": "^7.15.6",
"@babel/register": "^7.15.3",
"@google-cloud/functions-framework": "^1.9.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^27.2.1",
"concurrently": "^6.2.1",
"eslint": "^7.32.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jest": "^24.4.2",
"eslint-plugin-prettier": "^3.4.1",
"husky": "^4.3.8",
"jest-cli": "^27.2.1",
"nodemon": "^2.0.12",
"prettier-eslint": "^13.0.0",
"prettier-eslint-cli": "^5.0.1"
},
"husky": {
"hooks": {
"pre-push": "npm run validate"
}
},
"jest": {
"testEnvironment": "node",
"verbose": true,
"rootDir": "./src",
"coverageDirectory": "../__testCoverage__"
}
}