Skip to content

Commit

Permalink
feat(repo): move the repo under a real monorepo structure (#13)
Browse files Browse the repository at this point in the history
* feat(repo): move the repo under a real monorepo structure

* fix: remove yarn cache

* fix(repo): fix ci

* fix: remove profiler & update deps

* feat(repo): move the repo under a real monorepo structure

* fix: remove yarn cache

* fix: remove profiler & update deps

* fix(repo): fix ci

* fix(repo): fix ci

* fix(repo): fix pre-commit hook

Co-authored-by: Maxence Lecanu <[email protected]>
Co-authored-by: c3b5aw <[email protected]>
  • Loading branch information
3 people authored Aug 1, 2022
1 parent 30be078 commit 7abaca0
Show file tree
Hide file tree
Showing 42 changed files with 1,690 additions and 454 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install .
- run: npm run build
- run: npm publish
- run: yarn workspaces focus @escape.tech/graphql-armor
- run: yarn workspace @escape.tech/graphql-armor build
- run: yarn workspace @escape.tech/graphql-armor publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm install --save-dev
run: yarn workspaces focus @escape.tech/graphql-armor
- name: Run lint
run: npm run lint
run: yarn workspace @escape.tech/graphql-armor lint
- name: Run tests
if: always()
run: npm test
run: yarn workspace @escape.tech/graphql-armor test
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ yarn.lock
.env
perf-store.json
*.tgz
*.log
*.gz
*.log
.yarn/cache
2 changes: 1 addition & 1 deletion .hooks/commit-msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"steps": [
{
"name": "commit lint",
"command": "cat {args} | ./node_modules/@commitlint/cli/cli.js"
"command": "npx commitlint --edit"
}
]
}
8 changes: 0 additions & 8 deletions .hooks/pre-commit.json

This file was deleted.

2 changes: 0 additions & 2 deletions .mookme.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"packagesPath": ".",
"packages": [],
"addedBehavior": "addAndCommit"
}
Binary file not shown.
Binary file added .yarn/install-state.gz
Binary file not shown.
546 changes: 546 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-typescript.cjs

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Large diffs are not rendered by default.

783 changes: 783 additions & 0 deletions .yarn/releases/yarn-3.2.2.cjs

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
spec: "@yarnpkg/plugin-typescript"
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"

yarnPath: .yarn/releases/yarn-3.2.2.cjs
6 changes: 6 additions & 0 deletions examples/nestjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,27 @@
"homepage": "https://github.com/Escape-Technologies/graphql-armor",
"dependencies": {
"@apollo/gateway": "^2.0.5",
"@escape.tech/graphql-armor": "workspace:^",
"@nestjs/apollo": "^10.0.19",
"@nestjs/common": "^9.0.7",
"@nestjs/core": "^9.0.7",
"@nestjs/graphql": "^10.0.21",
"@nestjs/platform-express": "^9.0.7",
"@types/node": "^18.6.3",
"apollo-server-express": "^3.10.0",
"express": "^4.18.1",
"graphql": "^16.5.0",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.5.6",
"source-map-support": "^0.5.21",
"ts-morph": "^15.1.0"
},
"devDependencies": {
"@commitlint/cli": "^17.0.0",
"@commitlint/config-angular": "^17.0.0",
"@escape.tech/mookme": "^2.1.1",
"@nestjs/cli": "^9.0.0",
"@types/express": "^4",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",
"eslint": ">=8.15.0",
Expand Down
4 changes: 2 additions & 2 deletions install-dev.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
echo "\n\n\n\n\n---- Git hooks init (using mookme) ----"
npm install
npx mookme init --only-hook --skip-types-selection
yarn install
yarn dlx mookme init --only-hook --skip-types-selection

echo "\n\n\n\n\n---- Your working directory is all set :) ----"
10 changes: 0 additions & 10 deletions lib/gql-profiler/index.ts

This file was deleted.

23 changes: 0 additions & 23 deletions lib/gql-profiler/monitor.ts

This file was deleted.

41 changes: 0 additions & 41 deletions lib/gql-profiler/profileResolvers.ts

This file was deleted.

176 changes: 0 additions & 176 deletions lib/gql-profiler/reporters/html/base.html

This file was deleted.

21 changes: 0 additions & 21 deletions lib/gql-profiler/reporters/html/index.ts

This file was deleted.

3 changes: 0 additions & 3 deletions lib/gql-profiler/reporters/index.ts

This file was deleted.

Loading

0 comments on commit 7abaca0

Please sign in to comment.