Skip to content

Commit 3e525f0

Browse files
Merge pull request #1893 from nestjs/feat/gql-adapters
feat(): introduce gql drivers, migrate to monorepo, make graphql pkg platform-agnostic
2 parents 004ae84 + 068944e commit 3e525f0

File tree

519 files changed

+16241
-14853
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

519 files changed

+16241
-14853
lines changed

.circleci/config.yml

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,57 +3,56 @@ version: 2
33
aliases:
44
- &restore-cache
55
restore_cache:
6-
key: dependency-cache-{{ checksum "package.json" }}
6+
name: Restore Yarn Package Cache
7+
keys:
8+
- yarn-packages-{{ checksum "yarn.lock" }}
79
- &install-deps
810
run:
9-
name: Install dependencies
10-
command: npm ci
11+
name: Install Dependencies
12+
command: yarn install --frozen-lockfile --cache-folder ~/.cache/yarn
1113
- &build-packages
1214
run:
1315
name: Build
14-
command: npm run build
16+
command: yarn build
17+
- &save-cache
18+
save_cache:
19+
name: Save Yarn Package Cache
20+
key: yarn-packages-{{ checksum "yarn.lock" }}
21+
paths:
22+
- ~/.cache/yarn
1523

1624
jobs:
1725
build:
1826
working_directory: ~/nest
1927
docker:
20-
- image: circleci/node:17
28+
- image: circleci/node:16
2129
steps:
2230
- checkout
23-
- run:
24-
name: Update NPM version
25-
command: 'sudo npm install -g npm@latest'
26-
- restore_cache:
27-
key: dependency-cache-{{ checksum "package.json" }}
28-
- run:
29-
name: Install dependencies
30-
command: npm ci
31-
- save_cache:
32-
key: dependency-cache-{{ checksum "package.json" }}
33-
paths:
34-
- ./node_modules
31+
- *restore-cache
32+
- *install-deps
33+
- *save-cache
3534
- run:
3635
name: Build
37-
command: npm run build
36+
command: yarn build
3837

39-
integration_tests:
38+
e2e_tests:
4039
working_directory: ~/nest
4140
docker:
42-
- image: circleci/node:17
41+
- image: circleci/node:16
4342
steps:
4443
- checkout
4544
- *restore-cache
4645
- *install-deps
4746
- run:
48-
name: Integration tests
49-
command: npm run test:integration
47+
name: E2E tests
48+
command: yarn test:e2e
5049

5150
workflows:
5251
version: 2
5352
build-and-test:
5453
jobs:
5554
- build
56-
- integration_tests:
55+
- e2e_tests:
5756
requires:
5857
- build
5958

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
tests/**
1+
packages/tests/**

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# dependencies
2-
/node_modules
2+
node_modules
33

44
# IDE
55
/.idea
@@ -18,5 +18,5 @@ test-schema.graphql
1818
*.test-definitions.ts
1919

2020
# dist
21-
/lib/src
22-
/dist
21+
packages/**/dist
22+
**/*.tsbuildinfo

.release-it.json

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

index.d.ts

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

index.js

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

index.ts

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

lerna.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"packages": [
3+
"packages/*"
4+
],
5+
"version": "0.0.0",
6+
"npmClient": "yarn",
7+
"useWorkspaces": true,
8+
"command": {
9+
"publish": {
10+
"conventionalCommits": true
11+
}
12+
},
13+
"changelog": {
14+
"ignoreCommitters": ["allcontributors"],
15+
"labels": {
16+
"enhancement": ":rocket: New Feature",
17+
"core": ":earth_asia: Core",
18+
"bug": ":bug: Bug Fix"
19+
}
20+
}
21+
}

lib/federation/federation.constants.ts

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

0 commit comments

Comments
 (0)