From 614c304746388de8c5930ae16421ca6abcc04cba Mon Sep 17 00:00:00 2001 From: Srinjay Das Gupta <70833470+SRINJAYDASGUPTA-Git@users.noreply.github.com> Date: Sun, 28 Jan 2024 18:02:13 +0530 Subject: [PATCH] chore: remove SDK folders --- Cargo.lock | 7 ---- Cargo.toml | 7 ---- package.json | 5 --- packages/.gitkeep | 0 packages/sdk-node/.eslintrc.json | 25 --------------- packages/sdk-node/README.md | 11 ------- packages/sdk-node/jest.config.ts | 11 ------- packages/sdk-node/package.json | 8 ----- packages/sdk-node/project.json | 37 --------------------- packages/sdk-node/src/index.ts | 1 - packages/sdk-node/src/lib/sdk-js.spec.ts | 7 ---- packages/sdk-node/src/lib/sdk-js.ts | 3 -- packages/sdk-node/tsconfig.json | 22 ------------- packages/sdk-node/tsconfig.lib.json | 10 ------ packages/sdk-node/tsconfig.spec.json | 14 -------- packages/sdk-rust/Cargo.toml | 8 ----- packages/sdk-rust/project.json | 41 ------------------------ packages/sdk-rust/src/lib.rs | 8 ----- 18 files changed, 225 deletions(-) delete mode 100644 Cargo.lock delete mode 100644 Cargo.toml create mode 100644 packages/.gitkeep delete mode 100644 packages/sdk-node/.eslintrc.json delete mode 100644 packages/sdk-node/README.md delete mode 100644 packages/sdk-node/jest.config.ts delete mode 100644 packages/sdk-node/package.json delete mode 100644 packages/sdk-node/project.json delete mode 100644 packages/sdk-node/src/index.ts delete mode 100644 packages/sdk-node/src/lib/sdk-js.spec.ts delete mode 100644 packages/sdk-node/src/lib/sdk-js.ts delete mode 100644 packages/sdk-node/tsconfig.json delete mode 100644 packages/sdk-node/tsconfig.lib.json delete mode 100644 packages/sdk-node/tsconfig.spec.json delete mode 100644 packages/sdk-rust/Cargo.toml delete mode 100644 packages/sdk-rust/project.json delete mode 100644 packages/sdk-rust/src/lib.rs diff --git a/Cargo.lock b/Cargo.lock deleted file mode 100644 index 1448efd5..00000000 --- a/Cargo.lock +++ /dev/null @@ -1,7 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 3 - -[[package]] -name = "sdk-rust" -version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml deleted file mode 100644 index 0948e3ee..00000000 --- a/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - -[workspace] -resolver = '2' -members = ['packages/sdk-rust'] - -[profile.release] -lto = true diff --git a/package.json b/package.json index 36f9fedf..129fefb9 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,6 @@ "lint:web": "nx run web:lint", "lint:workspace": "nx run workspace:lint", "lint:cli": "nx run cli:lint", - "lint:sdk-node": "nx run sdk-js:lint", - "lint:fix": "nx run-many -p api web workspace sdk-node -t lint --fix --parallel", "prettier:fix": "nx run-many -t prettier:lint --parallel", "prettier:fix:api": "nx run api:prettier:fix", "build": "nx run-many -t build -p api web workspace --parallel --maxParallel 3", @@ -21,13 +19,11 @@ "build:web": "nx run web:build --configuration=production", "build:workspace": "nx run workspace:build", "build:cli": "nx run cli:build", - "build:sdk-node": "nx run sdk-js:build", "test": "nx run-many -t test --parallel", "test:api": "nx run api:test", "test:web": "nx run web:test", "test:workspace": "nx run workspace:test", "test:cli": "nx run cli:test", - "test:sdk-node": "nx run sdk-js: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", @@ -42,7 +38,6 @@ }, "private": false, "devDependencies": { - "@monodon/rust": "^1.3.2", "@nestjs/schematics": "^10.0.3", "@nestjs/testing": "^10.3.0", "@nx/eslint": "^17.2.8", diff --git a/packages/.gitkeep b/packages/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/packages/sdk-node/.eslintrc.json b/packages/sdk-node/.eslintrc.json deleted file mode 100644 index adbe7ae2..00000000 --- a/packages/sdk-node/.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/packages/sdk-node/README.md b/packages/sdk-node/README.md deleted file mode 100644 index 9f5297e8..00000000 --- a/packages/sdk-node/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# sdk-js - -This library was generated with [Nx](https://nx.dev). - -## Building - -Run `nx build sdk-js` to build the library. - -## Running unit tests - -Run `nx test sdk-js` to execute the unit tests via [Jest](https://jestjs.io). diff --git a/packages/sdk-node/jest.config.ts b/packages/sdk-node/jest.config.ts deleted file mode 100644 index 7e6cc6a4..00000000 --- a/packages/sdk-node/jest.config.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* eslint-disable */ -export default { - displayName: 'sdk-js', - preset: '../../jest.preset.js', - testEnvironment: 'node', - transform: { - '^.+\\.[tj]s$': ['ts-jest', { tsconfig: '/tsconfig.spec.json' }], - }, - moduleFileExtensions: ['ts', 'js', 'html'], - coverageDirectory: '../../coverage/packages/sdk-js', -}; diff --git a/packages/sdk-node/package.json b/packages/sdk-node/package.json deleted file mode 100644 index 2ed3e57d..00000000 --- a/packages/sdk-node/package.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "name": "sdk-node", - "version": "0.0.1", - "dependencies": {}, - "type": "commonjs", - "main": "./src/index.js", - "typings": "./src/index.d.ts" -} diff --git a/packages/sdk-node/project.json b/packages/sdk-node/project.json deleted file mode 100644 index 1a787f4c..00000000 --- a/packages/sdk-node/project.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "sdk-js", - "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "packages/sdk-js/src", - "projectType": "library", - "targets": { - "build": { - "executor": "@nx/js:tsc", - "outputs": ["{options.outputPath}"], - "options": { - "outputPath": "dist/packages/sdk-js", - "main": "packages/sdk-js/src/index.ts", - "tsConfig": "packages/sdk-js/tsconfig.lib.json", - "assets": ["packages/sdk-js/*.md"] - } - }, - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": [ - "packages/sdk-node/**/*.ts", - "packages/sdk-node/package.json", - "packages/sdk-node/project.json" - ] - } - }, - "test": { - "executor": "@nx/jest:jest", - "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], - "options": { - "jestConfig": "packages/sdk-js/jest.config.ts" - } - } - }, - "tags": [] -} diff --git a/packages/sdk-node/src/index.ts b/packages/sdk-node/src/index.ts deleted file mode 100644 index 0f74a664..00000000 --- a/packages/sdk-node/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './lib/sdk-js'; diff --git a/packages/sdk-node/src/lib/sdk-js.spec.ts b/packages/sdk-node/src/lib/sdk-js.spec.ts deleted file mode 100644 index e7fcbf92..00000000 --- a/packages/sdk-node/src/lib/sdk-js.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { sdkJs } from './sdk-js'; - -describe('sdkJs', () => { - it('should work', () => { - expect(sdkJs()).toEqual('sdk-js'); - }); -}); diff --git a/packages/sdk-node/src/lib/sdk-js.ts b/packages/sdk-node/src/lib/sdk-js.ts deleted file mode 100644 index a03da5e4..00000000 --- a/packages/sdk-node/src/lib/sdk-js.ts +++ /dev/null @@ -1,3 +0,0 @@ -export function sdkJs(): string { - return 'sdk-js'; -} diff --git a/packages/sdk-node/tsconfig.json b/packages/sdk-node/tsconfig.json deleted file mode 100644 index f5b85657..00000000 --- a/packages/sdk-node/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/packages/sdk-node/tsconfig.lib.json b/packages/sdk-node/tsconfig.lib.json deleted file mode 100644 index 33eca2c2..00000000 --- a/packages/sdk-node/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/packages/sdk-node/tsconfig.spec.json b/packages/sdk-node/tsconfig.spec.json deleted file mode 100644 index 9b2a121d..00000000 --- a/packages/sdk-node/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/packages/sdk-rust/Cargo.toml b/packages/sdk-rust/Cargo.toml deleted file mode 100644 index 27c15a72..00000000 --- a/packages/sdk-rust/Cargo.toml +++ /dev/null @@ -1,8 +0,0 @@ -[package] -name = "sdk-rust" -version = "0.1.0" -edition = "2021" - -[dependencies] - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/packages/sdk-rust/project.json b/packages/sdk-rust/project.json deleted file mode 100644 index 3d1a83b6..00000000 --- a/packages/sdk-rust/project.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "sdk-rust", - "$schema": "../../node_modules/nx/schemas/project-schema.json", - "projectType": "library", - "sourceRoot": "packages/sdk-rust/src", - "targets": { - "build": { - "executor": "@monodon/rust:build", - "outputs": ["{options.target-dir}"], - "options": { - "target-dir": "dist/target/sdk-rust" - }, - "configurations": { - "production": { - "release": true - } - } - }, - "test": { - "executor": "@monodon/rust:test", - "outputs": ["{options.target-dir}"], - "options": { - "target-dir": "dist/target/sdk-rust" - }, - "configurations": { - "production": { - "release": true - } - } - }, - "lint": { - "executor": "@monodon/rust:lint", - "outputs": ["{options.target-dir}"], - "options": { - "target-dir": "dist/target/sdk-rust", - "allow-dirty": true - } - } - }, - "tags": [] -} diff --git a/packages/sdk-rust/src/lib.rs b/packages/sdk-rust/src/lib.rs deleted file mode 100644 index 1b4a90c9..00000000 --- a/packages/sdk-rust/src/lib.rs +++ /dev/null @@ -1,8 +0,0 @@ -#[cfg(test)] -mod tests { - #[test] - fn it_works() { - let result = 2 + 2; - assert_eq!(result, 4); - } -}