diff --git a/.cargo/config.toml b/.cargo/config.toml deleted file mode 100644 index dd033b86..00000000 --- a/.cargo/config.toml +++ /dev/null @@ -1,2 +0,0 @@ -[build] -target-dir = 'dist/target' diff --git a/.github/workflows/cli.yaml b/.github/workflows/cli.yaml deleted file mode 100644 index a074572b..00000000 --- a/.github/workflows/cli.yaml +++ /dev/null @@ -1,52 +0,0 @@ -on: - push: - paths: ['apps/cli/**', '.github/workflows/cli.yaml'] - pull_request: - paths: ['apps/cli/**'] - -jobs: - validate: - runs-on: ubuntu-latest - name: Validate - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Install Node.js - uses: actions/setup-node@v3 - with: - node-version: 20 - - - name: Install pnpm - uses: pnpm/action-setup@v2 - with: - version: 8 - run_install: false - - - name: Get pnpm store directory - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - - - uses: actions/cache@v3 - name: Setup pnpm cache - with: - path: ${{ env.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- - - - name: Install packages - run: | - pnpm i - - - name: Lint - run: | - pnpm run lint:cli - - - name: Test - run: | - pnpm run test:cli - - diff --git a/apps/api/project.json b/apps/api/project.json index dc984dde..4c9030d0 100644 --- a/apps/api/project.json +++ b/apps/api/project.json @@ -62,7 +62,6 @@ }, "test:e2e": { "executor": "@nx/jest:jest", - "outputs": ["{workspaceRoot}/coverage-e2e/{projectRoot}"], "options": { "runInBand": true, "devServerTarget": "api:serve", diff --git a/apps/cli/.eslintrc.json b/apps/cli/.eslintrc.json deleted file mode 100644 index adbe7ae2..00000000 --- a/apps/cli/.eslintrc.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "extends": ["../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.ts", "*.tsx"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.json"], - "parser": "jsonc-eslint-parser", - "rules": { - "@nx/dependency-checks": "error" - } - } - ] -} diff --git a/apps/cli/README.md b/apps/cli/README.md deleted file mode 100644 index f7abc84a..00000000 --- a/apps/cli/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# cli - -This library was generated with [Nx](https://nx.dev). - -## Building - -Run `nx build cli` to build the library. - -## Running unit tests - -Run `nx test cli` to execute the unit tests via [Jest](https://jestjs.io). diff --git a/apps/cli/jest.config.ts b/apps/cli/jest.config.ts deleted file mode 100644 index 334b2644..00000000 --- a/apps/cli/jest.config.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* eslint-disable */ -export default { - displayName: 'cli', - preset: '../../jest.preset.js', - testEnvironment: 'node', - transform: { - '^.+\\.[tj]s$': ['ts-jest', { tsconfig: '/tsconfig.spec.json' }], - }, - moduleFileExtensions: ['ts', 'js', 'html'], - coverageDirectory: '../../coverage/apps/cli', -}; diff --git a/apps/cli/project.json b/apps/cli/project.json deleted file mode 100644 index 6b4369f0..00000000 --- a/apps/cli/project.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "cli", - "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "apps/cli/src", - "projectType": "library", - "targets": { - "build": { - "executor": "@nx/js:tsc", - "outputs": ["{options.outputPath}"], - "options": { - "outputPath": "dist/apps/cli", - "main": "apps/cli/src/index.ts", - "tsConfig": "apps/cli/tsconfig.lib.json", - "assets": ["apps/cli/*.md"] - } - }, - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": [ - "apps/cli/**/*.ts", - "apps/cli/package.json", - "apps/cli/project.json" - ] - } - }, - "test": { - "executor": "@nx/jest:jest", - "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], - "options": { - "jestConfig": "apps/cli/jest.config.ts" - } - } - }, - "tags": [] -} diff --git a/apps/cli/src/index.ts b/apps/cli/src/index.ts deleted file mode 100644 index 9f97d994..00000000 --- a/apps/cli/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './lib/cli'; diff --git a/apps/cli/src/lib/cli.spec.ts b/apps/cli/src/lib/cli.spec.ts deleted file mode 100644 index f4148697..00000000 --- a/apps/cli/src/lib/cli.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { cli } from './cli'; - -describe('cli', () => { - it('should work', () => { - expect(cli()).toEqual('cli'); - }); -}); diff --git a/apps/cli/src/lib/cli.ts b/apps/cli/src/lib/cli.ts deleted file mode 100644 index 3f916753..00000000 --- a/apps/cli/src/lib/cli.ts +++ /dev/null @@ -1,3 +0,0 @@ -export function cli(): string { - return 'cli'; -} diff --git a/apps/cli/tsconfig.json b/apps/cli/tsconfig.json deleted file mode 100644 index f5b85657..00000000 --- a/apps/cli/tsconfig.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "extends": "../../tsconfig.base.json", - "compilerOptions": { - "module": "commonjs", - "forceConsistentCasingInFileNames": true, - "strict": true, - "noImplicitOverride": true, - "noPropertyAccessFromIndexSignature": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true - }, - "files": [], - "include": [], - "references": [ - { - "path": "./tsconfig.lib.json" - }, - { - "path": "./tsconfig.spec.json" - } - ] -} diff --git a/apps/cli/tsconfig.lib.json b/apps/cli/tsconfig.lib.json deleted file mode 100644 index 33eca2c2..00000000 --- a/apps/cli/tsconfig.lib.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc", - "declaration": true, - "types": ["node"] - }, - "include": ["src/**/*.ts"], - "exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"] -} diff --git a/apps/cli/tsconfig.spec.json b/apps/cli/tsconfig.spec.json deleted file mode 100644 index 9b2a121d..00000000 --- a/apps/cli/tsconfig.spec.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc", - "module": "commonjs", - "types": ["jest", "node"] - }, - "include": [ - "jest.config.ts", - "src/**/*.test.ts", - "src/**/*.spec.ts", - "src/**/*.d.ts" - ] -} diff --git a/package.json b/package.json index f37f7454..56e4bcaf 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,6 @@ "lint:api": "nx run api:lint", "lint:web": "nx run web:lint", "lint:workspace": "nx run workspace:lint", - "lint:cli": "nx run cli:lint", "lint:fix": "nx run-many -p api web workspace -t lint --fix --parallel", "prettier:fix": "nx run-many -t prettier:lint --parallel", "prettier:fix:api": "nx run api:prettier:fix", @@ -103,14 +102,12 @@ "build:api": "nx run api:build --configuration=production", "build:web": "nx run web:build --configuration=production", "build:workspace": "nx run workspace:build", - "build:cli": "nx run cli:build", "test": "nx run-many -t test --parallel", "test:api": "nx run api:test -- --collectCoverage --coverageReporters=json", "e2e:api:prepare": "NODE_ENV='e2e' DATABASE_URL='postgresql://prisma:prisma@localhost:5433/tests' pnpm run db:deploy-migrations", - "e2e:api": "pnpm run e2e:api:prepare && NODE_ENV='e2e' DATABASE_URL='postgresql://prisma:prisma@localhost:5433/tests' nx run api:test:e2e -- --collectCoverage --coverageReporters=json", + "e2e:api": "pnpm run e2e:api:prepare && NODE_ENV='e2e' DATABASE_URL='postgresql://prisma:prisma@localhost:5433/tests' nx run api:test:e2e", "test:web": "nx run web:test", "test:workspace": "nx run workspace:test", - "test:cli": "nx run cli:test", "start:web": "nx run web:serve --configuration=production", "start:api": "nx run api:serve --configuration=production", "db:seed": "cd apps/api/src/prisma && pnpx ts-node seed.ts",