forked from SirSeim/SPFY
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
170 lines (170 loc) · 4.61 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
{
"name": "spfy",
"version": "0.0.0",
"description": "Safe Place for Youth Database Solution",
"main": "server.js",
"directories": {
"doc": "docs"
},
"scripts": {
"start": "if [ -f $(npm bin)/../../config/set_env.sh ]; then DATABASE_URL=$($(npm bin)/../../config/set_env.sh) SPFY_KEY=$($(npm bin)/../../config/set_key.sh) node server.js; else node server.js; fi;",
"nodemon": "DATABASE_URL=$($(npm bin)/../../config/set_env.sh) SPFY_KEY=$($(npm bin)/../../config/set_key.sh) nodemon -e js,json,html,css server.js",
"test": "mocha --recursive --require mocha-istanbul 'test' && istanbul report text-summary lcov",
"lint": "eslint server.js **/*.js",
"report": "istanbul report",
"report-summary": "istanbul report text-summary lcov",
"codecov": "mocha --recursive --require mocha-istanbul 'test' && istanbul report && codecov",
"db-init": "cd $(npm bin)/../..; echo 'Deleting db & logs'; rm -rf db; rm -rf log; mkdir db; mkdir log; echo 'Initializing db'; initdb $(npm bin)/../../db; pg_ctl -D $(npm bin)/../../db -l $(npm bin)/../../log/postgres.log start; sleep 4; psql -f config/create_spfy.sql -d postgres; psql -f db_setup/db.sql -d spfy; pg_ctl -D $(npm bin)/../../db stop -s -m fast; chmod 700 $(npm bin)/../../config/set_env.sh; chmod 700 $(npm bin)/../../config/set_key.sh",
"db-start": "pg_ctl -D $(npm bin)/../../db -l $(npm bin)/../../log/postgres.log start",
"db-stop": "pg_ctl -D $(npm bin)/../../db stop -s -m fast",
"db-reset": "npm run db-stop; npm run db-init; npm run db-start;"
},
"repository": {
"type": "git",
"url": "git+https://github.com/SirSeim/SPFY.git"
},
"keywords": [
"Safe",
"Place",
"Youth",
"Database",
"Webapp"
],
"author": {
"name": "Edward Seim",
"email": "[email protected]",
"url": "https://github.com/SirSeim"
},
"contributors": [
{
"name": "Chris Franco",
"url": "https://github.com/cf7"
},
{
"name": "Nicole Anguiano",
"url": "https://github.com/NAnguiano"
},
{
"name": "Josh Kuroda",
"email": "[email protected]",
"url": "https://github.com/jkkealii"
},
{
"name": "Mary Kate Reid",
"url": "https://github.com/mreid10"
},
{
"name": "Lauren Konchan",
"url": "https://github.com/lkonchan"
},
{
"name": "Irakli Khizanishvili",
"email": "[email protected]",
"url": "https://github.com/IrakliK"
},
{
"name": "Christopher Dellomes",
"email": "[email protected]",
"url": "https://github.com/cjdellomes"
},
{
"name": "Mondo Yamaguchi",
"url": "https://github.com/myamagu1"
}
],
"license": "GPL-3.0",
"bugs": {
"url": "https://github.com/SirSeim/SPFY/issues"
},
"homepage": "https://github.com/SirSeim/SPFY#readme",
"dependencies": {
"bcrypt": "^0.8.7",
"good": "^7.0.2",
"good-console": "^6.1.2",
"good-squeeze": "^5.0.0",
"hapi": "^15.0.3",
"hapi-auth-jwt2": "^7.1.3",
"inert": "^4.0.2",
"joi": "^9.0.4",
"jsonwebtoken": "^7.1.9",
"nunjucks-hapi": "^2.1.0",
"pg": "^6.1.0",
"vision": "^4.1.0",
"node-xlsx": "0.7.2"
},
"devDependencies": {
"chai": "^3.5.0",
"codecov": "^1.0.1",
"eslint": "^3.7.1",
"istanbul": "^0.4.5",
"mocha": "^3.0.2",
"mocha-istanbul": "^0.3.0",
"nodemon": "^1.11.0",
"supertest": "^2.0.1"
},
"eslintConfig": {
"env": {
"browser": true,
"jasmine": true,
"jquery": true,
"node": true,
"es6": true
},
"extends": "eslint:recommended",
"globals": {},
"rules": {
"no-extra-parens": 2,
"curly": 2,
"eqeqeq": 2,
"no-eval": 2,
"no-global-assign": 2,
"no-lone-blocks": 2,
"no-multi-spaces": 2,
"no-return-assign": 2,
"brace-style": [
2,
"1tbs",
{
"allowSingleLine": true
}
],
"camelcase": [
2,
{
"properties": "never"
}
],
"func-style": [
2,
"expression"
],
"comma-spacing": 2,
"computed-property-spacing": 2,
"func-call-spacing": 2,
"indent": 2,
"key-spacing": 2,
"keyword-spacing": 2,
"semi-spacing": 2,
"space-in-parens": 2,
"space-infix-ops": 2,
"space-unary-ops": 2,
"spaced-comment": 2,
"lines-around-comment": 2,
"max-len": [
2,
128
],
"new-parens": 2,
"no-tabs": 2,
"operator-linebreak": [
2,
"after"
],
"no-console": 1,
"semi": [
2,
"always"
]
}
}
}