Skip to content

Commit

Permalink
chore: running workspace fixup script
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcdo29 committed Jun 21, 2021
1 parent 9f91d7e commit fd6d89e
Show file tree
Hide file tree
Showing 12 changed files with 3,137 additions and 183 deletions.
35 changes: 35 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nrwl/nx"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nrwl/nx/typescript"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nrwl/nx/javascript"],
"rules": {}
}
]
}
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ on:
schedule:
- cron: '0 0 * * *'

env:
NX_BRANCH: ${{ github.event.pull_request.head.ref }}
NX_RUN_GROUP: ${{ github.run_id }}
NX_CLOUD_DISTRIBUTED_EXECUTION: true

jobs:
test:

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
branches:
- main

env:
NX_BRANCH: ${{ github.event.pull_request.head.ref }}
NX_RUN_GROUP: ${{ github.run_id }}
NX_CLOUD_DISTRIBUTED_EXECUTION: true

jobs:
release:
name: Release
Expand Down
91 changes: 91 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
"npmScope": "ogma",
"implicitDependencies": {
"workspace.json": "*",
"package.json": {
"dependencies": "*",
"devDependencies": "*"
},
"nx.json": "*"
},
"tasksRunnerOptions": {
"default": {
"runner": "@nrwl/nx-cloud",
"options": {
"cacheableOperations": ["build", "test", "lint", "package", "prepare"],
"strictlyOrderedTargets": ["build", "package", "prepare"],
"accessToken":""
"canTrackAnalytics": false,
"showUsageWarnings": true
}
}
},
"projects": {
"benchmark-interceptor": {
"implicitDependencies": []
},
"benchmark-logger": {
"implicitDependencies": []
},
"cli": {
"implicitDependencies": []
},
"common": {
"implicitDependencies": []
},
"integration": {
"implicitDependencies": []
},
"logger": {
"implicitDependencies": []
},
"nestjs-module": {
"implicitDependencies": []
},
"platform-express": {
"implicitDependencies": []
},
"platform-fastify": {
"implicitDependencies": []
},
"platform-graphql": {
"implicitDependencies": []
},
"platform-graphql-fastify": {
"implicitDependencies": []
},
"platform-grpc": {
"implicitDependencies": []
},
"platform-kafka": {
"implicitDependencies": []
},
"platform-mqtt": {
"implicitDependencies": []
},
"platform-nats": {
"implicitDependencies": []
},
"platform-rabbitmq": {
"implicitDependencies": []
},
"platform-redis": {
"implicitDependencies": []
},
"platform-socket.io": {
"implicitDependencies": []
},
"platform-tcp": {
"implicitDependencies": []
},
"platform-ws": {
"implicitDependencies": []
},
"styler": {
"implicitDependencies": []
}
},
"affected": {
"defaultBase": "main"
}
}
18 changes: 15 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
],
"scripts": {
"preversion": "pnpm format && pnpm lint && pnpm build",
"build": "pnpm run -r build",
"build": "nx affected:build",
"benchmark": "pnpm run start --filter '@ogma/bench*'",
"commit": "git-cz",
"precoverage": "tsc -p ./tools/tsconfig.json",
Expand All @@ -46,12 +46,23 @@
"updatePeerDeps": "node tools/peer-update.js",
"sendCoverage": "codeclimate-test-reporter < coverage/lcov.info",
"prepare": "husky install",
"release": "pnpm build && changeset publish"
"release": "pnpm build && changeset publish",
"nx": "nx"
},
"devDependencies": {
"@changesets/cli": "^2.16.0",
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@nrwl/cli": "latest",
"@nrwl/eslint-plugin-nx": "12.4.0",
"@nrwl/jest": "12.4.0",
"@nrwl/linter": "12.4.0",
"@nrwl/nest": "^12.4.0",
"@nrwl/node": "^12.4.0",
"@nrwl/nx-cloud": "latest",
"@nrwl/tao": "latest",
"@nrwl/workspace": "latest",
"@types/jest": "26.0.8",
"@typescript-eslint/eslint-plugin": "^4.23.0",
"@typescript-eslint/parser": "^4.23.0",
"codeclimate-test-reporter": "^0.5.1",
Expand All @@ -74,5 +85,6 @@
},
"resolutions": {
"apollo-cache-control": "0.12.0"
}
},
"dependencies": {}
}
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"scripts": {
"prebuild": "rimraf lib",
"build": "nest build",
"abuild": "nest build",
"lint": "eslint --ext .ts ./src/",
"test": "jest",
"test:cov": "jest --coverage"
Expand Down
1 change: 0 additions & 1 deletion packages/cli/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env node
import { CommandFactory } from 'nest-commander';
import { AppModule } from './app.module';

Expand Down
1 change: 0 additions & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"build": "tsc -p tsconfig.build.json"
},
"devDependencies": {
"@ogma/styler": "workspace:*",
"rimraf": "^3.0.2",
"typescript": "^4.2.4"
}
Expand Down
Loading

0 comments on commit fd6d89e

Please sign in to comment.