-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
153 lines (153 loc) · 7.02 KB
/
package.json
File metadata and controls
153 lines (153 loc) · 7.02 KB
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
{
"name": "codex-api",
"version": "1.3.5",
"description": "API for www.usecodex.com",
"author": "Codex Build Inc.",
"license": "UNLICENSED",
"main": "server.ts",
"private": true,
"scripts": {
"copy-files": "copyfiles -u 1 src/**/*.yml src/**/*.json ./build",
"build": "rm -rf ./build && mkdir -p ./build && npm run tsc && npm run decrypt:post && npm run copy-files",
"build:docker": "docker build --build-arg NODE_PLATFORM=arm64v8/node --build-arg GIT_SHA=$(git log -n1 --format=%H) -t $(whoami)/codex-api:latest .",
"tsc": "./node_modules/typescript/bin/tsc",
"keygen": "node generateKeypair.js",
"nginx:install": "brew install nginx && mkdir -p /opt/homebrew/etc/nginx/ssl/ && mkdir -p /opt/homebrew/etc/nginx/logs",
"nginx:configure": "npm run decrypt:dev && node installDevCerts.js && cp ./scripts/development/nginx.conf /opt/homebrew/etc/nginx/nginx.conf && brew services restart nginx && echo '\\nDone! Check https://dev.usecodex.com'",
"secrets:init": "node storeKeyFile.js",
"encrypt:development": "ejson encrypt src/shared/config/config.development.json && mv src/shared/config/config.development.json src/shared/config/config.development.ejson",
"encrypt:staging": "ejson encrypt src/shared/config/config.staging.json && mv src/shared/config/config.staging.json src/shared/config/config.staging.ejson",
"encrypt:production": "ejson encrypt src/shared/config/config.production.json && mv src/shared/config/config.production.json src/shared/config/config.production.ejson",
"decrypt": "npm run decrypt:development && npm run decrypt:staging && npm run decrypt:production",
"decrypt:dev": "npm run decrypt:development",
"decrypt:development": "ejson decrypt -o src/shared/config/config.development.json src/shared/config/config.development.ejson && npm run decrypt:post",
"decrypt:staging": "ejson decrypt -o src/shared/config/config.staging.json src/shared/config/config.staging.ejson && npm run decrypt:post",
"decrypt:production": "ejson decrypt -o src/shared/config/config.production.json src/shared/config/config.production.ejson && npm run decrypt:post",
"decrypt:post": "mkdir -p ./build/shared/config/ && cp src/shared/config/config.*.json build/shared/config/",
"dev": "npm run decrypt:dev && npm run build && ./node_modules/nodemon/bin/nodemon.js",
"debug": "nodemon --inspect ./node_modules/nodemon/bin/nodemon.js",
"play": "ts-node play.ts",
"start": "npm run start:node",
"start:docker": "docker run -e ENVIRONMENT=DEVELOPMENT -e EJSON_PUBLIC_KEY=$(echo $EJSON_PUBLIC_KEY) -e EJSON_PRIVATE_KEY=$(echo $EJSON_PRIVATE_KEY) --network codex-api -it --rm --env-file .env.docker -p 3000:3000 $(whoami)/codex-api:latest",
"start:node": "node ./build/main.js",
"typeorm": "typeorm-ts-node-commonjs",
"typeorm-seeding": "ts-node ./node_modules/@jorgebodega/typeorm-seeding/dist/cli.js seed -d src/shared/datasource.ts",
"db:migration:run": "npm run typeorm -- migration:run -d src/shared/datasource.ts",
"db:migration:revert": "npm run typeorm -- migration:revert -d src/shared/datasource.ts",
"db:migration:generate": "npm run typeorm -- migration:generate src/shared/database/migrations/${npm_config_migration_name:-Placeholder} -d src/shared/datasource.ts",
"db:migration:create": "npm run typeorm -- migration:create src/shared/database/migrations/${npm_config_migration_name:-Placeholder}",
"db:schema:drop": "npm run typeorm -- schema:drop -d src/shared/datasource.ts",
"db:setup": "npm run build && npm run db:migration:run",
"db:reset": "npm run db:schema:drop && npm run db:setup",
"test": "DEFAULT_FROM_EMAIL=test-user@usecodex.com nyc ts-mocha ${npm_config_test_path:-'src/**/*.test.ts'} --grep 'INTEGRATION' --invert --run-in-band",
"test:integration": "DEFAULT_FROM_EMAIL=test-user@usecodex.com nyc ts-mocha ${npm_config_test_path:-'src/**/*.test.ts'} --grep 'INTEGRATION' --run-in-band",
"test:quiet": "SILENT_LOGS=yes DEFAULT_FROM_EMAIL=test-user@usecodex.com ts-mocha 'src/**/*.test.ts' --run-in-band",
"lint": "eslint --ignore-path .eslintignore --ext .ts . --fix",
"lint-quiet": "eslint --ignore-path .eslintignore --ext .ts . --fix --quiet",
"staged-lint": "eslint --ignore-path .eslintignore --fix",
"prepare": "husky install"
},
"devDependencies": {
"@jorgebodega/typeorm-factory": "^1.3.0",
"@jorgebodega/typeorm-seeding": "^6.0.0",
"@types/chai": "^4.3.0",
"@types/chai-as-promised": "^7.1.5",
"@types/cookie-parser": "^1.4.3",
"@types/faker": "5.5.3",
"@types/lodash": "^4.14.191",
"@types/minimatch": "^3.0.5",
"@types/mocha": "^9.1.0",
"@types/moxios": "^0.4.15",
"@types/passport-http-bearer": "^1.0.37",
"@types/pg": "^8.6.4",
"@types/remove-markdown": "^0.3.1",
"@types/sinon": "^10.0.11",
"@types/sinon-chai": "^3.2.8",
"@typescript-eslint/eslint-plugin": "^5.46.1",
"@typescript-eslint/parser": "^5.10.0",
"chai": "^4.3.5",
"chai-as-promised": "^7.1.1",
"chai-http": "^4.3.0",
"copyfiles": "^2.4.1",
"deep-equal-in-any-order": "^2.0.0",
"eslint": "^8.7.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-simple-import-sort": "^8.0.0",
"eslint-plugin-unused-imports": "^2.0.0",
"faker": "5.5.3",
"husky": "^7.0.4",
"lint-staged": "^13.1.0",
"mocha": "^10.0.0",
"moxios": "^0.4.0",
"nyc": "^15.1.0",
"sinon": "^13.0.1",
"sinon-chai": "^3.7.0",
"ts-loader": "^9.2.3",
"ts-mocha": "^10.0.0",
"ts-mockito": "^2.6.1",
"webpack-cli": "^4.7.2"
},
"dependencies": {
"@airbnb/node-memwatch": "^2.0.0",
"@sendgrid/mail": "^7.4.4",
"@sentry/integrations": "^6.17.9",
"@sentry/node": "^6.17.9",
"@slack/bolt": "^3.9.0",
"@taskforcesh/bullmq-pro": "~5.0.3",
"@types/airbnb__node-memwatch": "^2.0.0",
"@types/analytics-node": "^3.1.9",
"@types/command-line-args": "^5.2.0",
"@types/cors": "^2.8.10",
"@types/express": "^4.17.12",
"@types/js-yaml": "^4.0.5",
"@types/morgan": "^1.9.2",
"@types/node": "^15.12.2",
"@types/passport": "^1.0.6",
"@types/passport-github2": "^1.2.5",
"@types/passport-jwt": "^3.0.5",
"@types/set-cookie-parser": "^2.4.2",
"analytics-node": "^6.2.0",
"ansi-colors": "^4.1.1",
"axios": "^0.26.1",
"command-line-args": "^5.2.1",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"date-fns": "^2.28.0",
"dotenv": "^10.0.0",
"env-var": "^7.1.1",
"express": "^4.17.1",
"googleapis": "^98.0.0",
"graphql": "^16.6.0",
"graphql-tag": "^2.12.6",
"hot-shots": "^9.0.0",
"ioredis": "^5.2.4",
"joi": "^17.4.0",
"js-yaml": "^4.1.0",
"langchain": "^0.0.67",
"lodash": "^4.17.21",
"minimatch": "^5.1.0",
"morgan": "^1.10.0",
"nanoid": "^3.2.0",
"nodemon": "^2.0.7",
"octokit": "^2.0.10",
"openai": "^3.2.1",
"passport": "^0.4.1",
"passport-github2": "^0.1.12",
"passport-http-bearer": "^1.0.1",
"passport-jwt": "^4.0.1",
"pg": "^8.6.0",
"pusher": "^5.0.0",
"qs": "^6.7.0",
"remove-markdown": "^0.3.0",
"set-cookie-parser": "^2.5.1",
"ts-node": "^10.2.1",
"tslib": "^2.3.1",
"typeorm": "^0.3.10",
"typescript": "^4.3.2",
"webpack": "^5.38.1",
"webpack-node-externals": "^3.0.0",
"winston": "^3.3.3",
"winston-transport-sentry-node": "^2.1.0",
"zod": "^3.20.2"
}
}