Skip to content

Commit 53c367c

Browse files
committed
WIP
1 parent 654ca58 commit 53c367c

25 files changed

+58
-183
lines changed

.env

Lines changed: 0 additions & 1 deletion
This file was deleted.

.npmignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# source
2+
e2e/
3+
lib/
4+
.idea/
5+
coverage/
6+
7+
# config
8+
tsconfig.json
9+
tslint.json
10+
.prettierignore
11+
.prettierrc
12+
.travis.yml
13+
docker-compose.yml
14+
jest.config.js
15+
jest-e2e.config.js
16+
renovate.json
17+
sample.tsconfig.json
18+
cc-test-reporter
19+
20+
# misc
21+
example/
22+
.circleci/
23+
.github/
24+
FUNDING.yml
25+
docker-compose.yml

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3.3'
22
services:
33
backend:
44
image: node:16-alpine
5-
working_dir: /usr/src/app
5+
working_dir: /usr/src/app/sample
66
command: sh -c "npm install && npm run start:dev"
77
volumes:
88
- ./.:/usr/src/app

libs/graphile-worker/tsconfig.lib.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

nest-cli.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

package.json

Lines changed: 31 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,34 @@
11
{
22
"name": "nestjs-graphile-worker",
33
"version": "0.0.1",
4-
"description": "",
5-
"author": "",
6-
"private": true,
7-
"license": "UNLICENSED",
4+
"description": "A Nest.js wrapper for Graphile Worker",
5+
"author": "Alexandre Rousseau <[email protected]>",
6+
"private": false,
7+
"license": "MIT",
8+
"homepage": "https://github.com/madeindjs/nestjs-graphile-worker",
9+
"bugs": {
10+
"url": "https://github.com/madeindjs/nestjs-graphile-worker/issues"
11+
},
12+
"repository": {
13+
"type": "git",
14+
"url": "git+https://github.com/madeindjs/nestjs-graphile-worker.git"
15+
},
816
"scripts": {
917
"prebuild": "rimraf dist",
1018
"build": "nest build",
11-
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\" \"libs/**/*.ts\"",
12-
"start": "nest start",
13-
"start:dev": "nest start --watch",
14-
"start:debug": "nest start --debug --watch",
15-
"start:prod": "node dist/main",
16-
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
19+
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
20+
"prepublish:next": "npm run build",
21+
"publish:next": "npm publish --access public --tag next",
22+
"prepublish:npm": "npm run build",
23+
"publish:npm": "npm publish --access public",
24+
"prerelease": "npm run build",
25+
"lint": "eslint \"{src,apps,test}/**/*.ts\" --fix",
1726
"test": "jest",
1827
"test:watch": "jest --watch",
1928
"test:cov": "jest --coverage",
20-
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
21-
"test:e2e": "jest --config ./test/jest-e2e.json"
29+
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand"
2230
},
2331
"dependencies": {
24-
"@nestjs/common": "^8.0.0",
2532
"@nestjs/config": "^1.0.1",
2633
"@nestjs/core": "^8.0.0",
2734
"@nestjs/platform-express": "^8.0.0",
@@ -52,12 +59,21 @@
5259
"tsconfig-paths": "^3.10.1",
5360
"typescript": "^4.3.5"
5461
},
62+
"peerDependencies": {
63+
"@nestjs/common": "^8.0.0",
64+
"@nestjs/core": "^8.0.0",
65+
"graphile-worker": "^0.11.4"
66+
},
5567
"jest": {
5668
"moduleFileExtensions": [
5769
"js",
5870
"json",
5971
"ts"
6072
],
73+
"testPathIgnorePatterns": [
74+
"node_modules",
75+
"sample"
76+
],
6177
"rootDir": ".",
6278
"testRegex": ".*\\.spec\\.ts$",
6379
"transform": {
@@ -69,11 +85,7 @@
6985
"coverageDirectory": "./coverage",
7086
"testEnvironment": "node",
7187
"roots": [
72-
"<rootDir>/src/",
73-
"<rootDir>/libs/"
74-
],
75-
"moduleNameMapper": {
76-
"^@app/graphile-worker(|/.*)$": "<rootDir>/libs/graphile-worker/src/$1"
77-
}
88+
"<rootDir>/src/"
89+
]
7890
}
7991
}

src/app.controller.ts

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/app.module.ts

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/app.service.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)