roadman 0.1.11 → 0.1.15

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/README.md CHANGED
@@ -27,15 +27,10 @@ An efficient, and flexible NodeJS library for building backend services.
27
27
 
28
28
  | Feature | Progress |
29
29
  | ----------------- | -------- |
30
- | ExpressJS (REST API) | ✅ |
31
- | GraphQL API | ✅ |
32
- | Redis (queue, subscriptions) | ✅ |
33
- | [Couchbase](https://github.com/roadmanjs/couchset) | ✅ |
34
- <!-- | Twilio | ❌ |
35
- | Stripe | ❌ |
36
- | MongoDB | ❌ |
37
- | Firebase auth (phone, email...) | ❌ | -->
38
-
30
+ | CORE: expressjs, rest/graphql api, redis, queue, subscriptions | ✅ |
31
+ | [Couchbase](https://github.com/roadmanjs/couchset) - couchset orm | ✅ |
32
+ | [Auth & User](https://github.com/roadmanjs/auth) - phone login, create user resolvers | ✅ |
33
+ | [Firebase](https://github.com/roadmanjs/firebase-admin) - auth, storage, e.t.c | ✅ |
39
34
  ## 1. Install
40
35
  ```bash
41
36
  npm i roadman --save
@@ -95,3 +90,24 @@ const {resolver} = PersonModel.automate({
95
90
  await roadman({resolvers: [resolver]});
96
91
 
97
92
  ```
93
+
94
+
95
+ ## 3. With auth/user resolvers
96
+
97
+ ```ts
98
+ import { couchsetRoadman } from '@roadmanjs/couchset';
99
+ import { firebaseRoadman } from '@roadmanjs/firebase-admin';
100
+ import { getAuthResolvers } from '@roadmanjs/auth';
101
+ import { roadman } from "roadman";
102
+
103
+ const resolvers = [...getAuthResolvers()];
104
+
105
+ const run = async () => {
106
+ await roadman({
107
+ roadmen: [firebaseRoadman, couchsetRoadman],
108
+ resolvers,
109
+ })
110
+ }
111
+
112
+ run();
113
+ ```
@@ -7,8 +7,8 @@ exports.graphQLRoadman = void 0;
7
7
  /* eslint-disable @typescript-eslint/ban-ts-comment */
8
8
  const apollo_server_express_1 = require("apollo-server-express");
9
9
  const type_graphql_1 = require("type-graphql");
10
- const http_1 = __importDefault(require("http"));
11
10
  const config_1 = require("../config");
11
+ const http_1 = __importDefault(require("http"));
12
12
  /**
13
13
  * The last Builder Roadman
14
14
  * @param BeforeRoadmanBuild
@@ -20,10 +20,12 @@ const graphQLRoadman = async ({ app, pubsub, resolvers, }) => {
20
20
  // @ts-ignore
21
21
  resolvers,
22
22
  pubSub: pubsub,
23
+ skipCheck: true,
23
24
  })
24
25
  : (0, type_graphql_1.buildSchemaSync)({
25
26
  // @ts-ignore
26
27
  resolvers,
28
+ skipCheck: true,
27
29
  });
28
30
  // build apollo server
29
31
  const apolloServer = new apollo_server_express_1.ApolloServer({
@@ -1 +1 @@
1
- {"version":3,"file":"graphql.js","sourceRoot":"","sources":["../../src/befores/graphql.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAsD;AACtD,iEAAmD;AACnD,+CAA6C;AAC7C,gDAAwB;AACxB,sCAAsC;AAGtC;;;;GAIG;AACI,MAAM,cAAc,GAAG,KAAK,EAAE,EACjC,GAAG,EACH,MAAM,EACN,SAAS,GACE,EAAyB,EAAE;IACtC,MAAM,MAAM,GAAG,MAAM;QACjB,CAAC,CAAC,IAAA,8BAAe,EAAC;YACZ,aAAa;YACb,SAAS;YACT,MAAM,EAAE,MAAM;SACjB,CAAC;QACJ,CAAC,CAAC,IAAA,8BAAe,EAAC;YACZ,aAAa;YACb,SAAS;SACZ,CAAC,CAAC;IAET,sBAAsB;IACtB,MAAM,YAAY,GAAG,IAAI,oCAAY,CAAC;QAClC,MAAM;QACN,aAAa,EAAE;YACX,SAAS,KAAI,CAAC;YACd,YAAY,KAAI,CAAC;SACpB;QACD,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,CAAC,EAAC,GAAG,EAAE,GAAG,EAAC,EAAE,EAAE,CAAC,CAAC,EAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAC,CAAC;QAC7C,OAAO,EAAE,KAAK;KACjB,CAAC,CAAC;IAEH,YAAY,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AK;KACjB,CAAC,CAAC;IAEH,YAAY,CAAC,eAAe,CAAC;QACzB,GAAG;QACH,IAAI,EAAE,oBAAW;QACjB,IAAI,EAAE,EAAC,MAAM,EAAE,GAAG,EAAC;KACtB,CAAC,CAAC;IAEH,8BAA8B;IAC9B,MAAM,UAAU,GAAG,cAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IAE1C,IAAI,MAAM,EAAE;QACR,YAAY,CAAC,2BAA2B,CAAC,UAAU,CAAC,CAAC;KACxD;IAED,OAAO;QACH,GAAG;QACH,YAAY;QACZ,UAAU;QACV,MAAM;KACT,CAAC;AACN,CAAC,CAAC;AAlDW,QAAA,cAAc,kBAkDzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roadman",
3
- "version": "0.1.11",
3
+ "version": "0.1.15",
4
4
  "description": "An efficient, and flexible NodeJS library for building backend services.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,12 +10,31 @@
10
10
  "register/",
11
11
  "LICENSE"
12
12
  ],
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git://github.com/roadmanjs/roadmanjs.git"
16
+ },
17
+ "keywords": [
18
+ "roadman",
19
+ "roadmanjs",
20
+ "backend",
21
+ "couchbase",
22
+ "couchset",
23
+ "apollo-server-express",
24
+ "graphql",
25
+ "type-graphql",
26
+ "ioredis"
27
+ ],
13
28
  "author": {
14
29
  "name": "Ceddy Muhoza",
15
30
  "email": "ceddymuhoza@gmail.com",
16
31
  "url": "https://ceddy.org"
17
32
  },
18
33
  "license": "MIT",
34
+ "bugs": {
35
+ "url": "https://github.com/roadmanjs/roadmanjs/issues"
36
+ },
37
+ "homepage": "https://github.com/roadmanjs/roadmanjs",
19
38
  "private": false,
20
39
  "scripts": {
21
40
  "lint": "tslint \"src/**/*.ts\" --project tsconfig.json",
@@ -53,7 +72,7 @@
53
72
  "@typescript-eslint/eslint-plugin": "^3.4.0",
54
73
  "@typescript-eslint/parser": "^3.4.0",
55
74
  "chai": "^4.2.0",
56
- "eslint": "^6.8.0",
75
+ "eslint": "^8.7.0",
57
76
  "eslint-config-prettier": "^6.11.0",
58
77
  "eslint-loader": "^4.0.2",
59
78
  "eslint-plugin-import": "^2.20.2",
@@ -63,7 +82,7 @@
63
82
  "eslint-plugin-typescript": "^0.14.0",
64
83
  "husky": "^4.2.5",
65
84
  "lint-staged": "^10.1.7",
66
- "mocha": "^8.2.1",
85
+ "mocha": "^9.2.0",
67
86
  "prettier": "^2.0.5",
68
87
  "rimraf": "^2.5.4",
69
88
  "ts-node": "^9.1.1",
@@ -89,7 +108,7 @@
89
108
  "jsonwebtoken": "^8.5.1",
90
109
  "lodash": "^4.17.20",
91
110
  "reflect-metadata": "^0.1.13",
92
- "type-graphql": "^1.0.0-rc.2",
111
+ "type-graphql": "^1.1.1",
93
112
  "uuid": "^8.3.2"
94
113
  }
95
114
  }