@volcanicminds/backend 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@volcanicminds/backend",
3
+ "version": "0.1.0",
4
+ "codename": "turin",
5
+ "license": "MIT",
6
+ "description": "The volcanic (minds) backend",
7
+ "keywords": [],
8
+ "main": "./dist/index.js",
9
+ "engines": {
10
+ "node": ">=16"
11
+ },
12
+ "scripts": {
13
+ "compile": "tsc",
14
+ "preprod": "npm run compile",
15
+ "prod": "node ./dist/index.js",
16
+ "start": "ts-node ./lib/index.ts",
17
+ "dev": "nodemon --exec \"ts-node\" ./lib/index.ts",
18
+ "test": "jest test --config ./jest.config.js",
19
+ "upgrade-deps": "npm-upgrade"
20
+ },
21
+ "dependencies": {
22
+ "@apollo/server": "^4.0.2",
23
+ "@as-integrations/fastify": "^1.1.0",
24
+ "@fastify/compress": "^6.1.1",
25
+ "@fastify/cors": "^8.1.0",
26
+ "@fastify/helmet": "^10.0.2",
27
+ "@fastify/rate-limit": "^7.5.0",
28
+ "@fastify/swagger": "^8.0.0",
29
+ "@fastify/swagger-ui": "^1.1.0",
30
+ "@types/node": "^18.11.3",
31
+ "dotenv": "^16.0.3",
32
+ "fastify": "^4.9.2",
33
+ "graphql": "^16.6.0",
34
+ "pino": "^8.7.0",
35
+ "pino-pretty": "^9.1.1"
36
+ },
37
+ "devDependencies": {
38
+ "jest": "^29.2.1",
39
+ "nodemon": "^2.0.20",
40
+ "npm-upgrade": "^3.1.0",
41
+ "ts-node": "^10.9.1",
42
+ "typescript": "^4.8.4"
43
+ },
44
+ "repository": {
45
+ "type": "git",
46
+ "url": "git+https://github.com/volcanicminds/volcanic-backend.git"
47
+ },
48
+ "homepage": "https://github.com/volcanicminds/volcanic-backend#readme",
49
+ "bugs": {
50
+ "url": "https://github.com/volcanicminds/volcanic-backend/issues"
51
+ },
52
+ "author": "Volcanic Minds <developers@volcanicminds.com> (https://volcanicminds.com)",
53
+ "maintainers": [
54
+ "Developers <developers@volcanicminds.com> (https://volcanicminds.com)"
55
+ ],
56
+ "directories": {
57
+ "lib": "lib",
58
+ "test": "test"
59
+ }
60
+ }
@@ -0,0 +1,5 @@
1
+ describe('sum module', () => {
2
+ test('adds 1 + 2 to equal 3', () => {
3
+ expect(1 + 2).toBe(3)
4
+ })
5
+ })
package/tsconfig.json ADDED
@@ -0,0 +1,28 @@
1
+ // https://typestrong.org/ts-node/docs/configuration/
2
+ {
3
+ "extends": "ts-node/node16/tsconfig.json",
4
+ "ts-node": {
5
+ "files": true
6
+ },
7
+ "compilerOptions": {
8
+ "target": "es2022",
9
+ "allowJs": true,
10
+ "module": "CommonJS",
11
+ "esModuleInterop": true,
12
+ "lib": ["es2020"],
13
+ "resolveJsonModule": true,
14
+ "preserveConstEnums": true,
15
+ "skipLibCheck": true /* Skip type checking of declaration files. */,
16
+ "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */,
17
+ "moduleResolution": "node",
18
+ "allowSyntheticDefaultImports": true,
19
+ "strict": true,
20
+ // "sourceMap": true,
21
+ // "types": ["node"],
22
+ "typeRoots": ["./node_modules/@types", "./types", "./lib/types"],
23
+ "outDir": "dist",
24
+ "rootDirs": ["lib", "config", "types"]
25
+ },
26
+ "include": ["./lib/*", "./lib/**/*", "./config/*", "./config/**/*", "./types/*", "./types/**/*"],
27
+ "exclude": ["node_modules"]
28
+ }