-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
75 lines (75 loc) · 2.41 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
{
"name": "your-app-name",
"version": "1.0.0",
"description": "A NodeJS backend starter using Express (Server), Apollo Express (for GraphQL), Knex (DB Access), Jest (Tests), ESLint (Linter) and TypeScript",
"main": "app.js",
"scripts": {
"build": "npx tsc -p tsconfig.json",
"watch": "npx tsc -p tsconfig.json --watch",
"prestart": "npm run gen-types",
"prebuild": "npm run gen-types",
"start": "nodemon --exec ts-node src/app.ts",
"setup": "npm i && npm run setup-db",
"setup:seed-all": "npm i && npm run setup-db && npm run seed",
"setup-db": "./create_db.sh && npm run migrate",
"migrate": "npx knex migrate:latest",
"seed-all": "npx knex seed:run",
"//": " These flags allow for using node module imports (without file extension)",
"//-": "Order of the arguments matter",
"serve": "npx nodemon --experimental-modules --es-module-specifier-resolution=node dist/app.js ",
"lint": "npx eslint src/**/*.ts --fix",
"lint:ci": "npx eslint src/**/*.ts",
"test": "npx jest --watch",
"test:ci": "npx jest",
"gen-types:gql": "npx graphql-codegen --config codegen.yml",
"gen-types:db": "npx ts-node knex-types.ts",
"gen-types": "npm run gen-types:db && npm run gen-types:gql"
},
"repository": {
"type": "git",
"url": "git+https://github.com/your-username/your-app-name.git"
},
"keywords": [
"typescript",
"nodejs",
"javascript",
"graphql",
"app"
],
"author": "You",
"license": "ISC",
"bugs": {
"url": "https://github.com/your-username/your-app-name/issues"
},
"homepage": "https://github.com/your-username/your-app-name#readme",
"nodemonConfig": {
"env": {
"NODE_ENV": "development"
}
},
"devDependencies": {
"@graphql-codegen/cli": "^2.2.1",
"@graphql-codegen/typescript-resolvers": "^2.3.2",
"@types/express": "^4.17.13",
"@types/jest": "^27.0.2",
"@typescript-eslint/eslint-plugin": "^5.1.0",
"@typescript-eslint/parser": "^5.1.0",
"eslint": "^7.32.0",
"eslint-config-google": "^0.14.0",
"graphql-codegen": "^0.4.0",
"jest": "^27.2.2",
"knex-types": "^0.3.1",
"nodemon": "^2.0.13",
"ts-jest": "^27.0.5",
"ts-node": "^10.2.1",
"typescript": "^4.4.3"
},
"dependencies": {
"apollo-server-core": "^3.4.0",
"apollo-server-fastify": "^3.4.0",
"fastify": "^3.22.1",
"graphql": "^15.6.0",
"knex": "^0.95.11",
"pg": "^8.7.1"
}
}