Skip to content

Commit

Permalink
fix: clean up unused monorepo dependencies (#338)
Browse files Browse the repository at this point in the history
* fixes

* clean up dependencies

* fixes

* fix: npm doctor

* fix: nx config

* fix

* remove wasm packagejson
  • Loading branch information
paulclindo authored Jun 15, 2024
1 parent f2efac9 commit 4529ff5
Show file tree
Hide file tree
Showing 12 changed files with 2,595 additions and 8,550 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.17.0
v20.14.0
5 changes: 4 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Add files here to ignore them from prettier formatting
/dist
/coverage
/coverage
/.nx/cache

/.nx/workspace-data
9 changes: 0 additions & 9 deletions apps/shinkai-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@
"zustand": "^4.4.2"
},
"devDependencies": {
"@babel/cli": "^7.22.10",
"@babel/core": "^7.14.5",
"@babel/plugin-syntax-bigint": "^7.8.3",
"@babel/preset-env": "^7.22.10",
"@babel/preset-react": "^7.14.5",
"@capacitor/cli": "^5.5.0",
"@crxjs/vite-plugin": "^2.0.0-beta.18",
"@estruyf/github-actions-reporter": "^1.4.0",
Expand Down Expand Up @@ -116,9 +111,5 @@
"vite-tsconfig-paths": "^4.2.3",
"vitest": "^0.34.3",
"zip-lib": "^1.0.4"
},
"engines": {
"node": "18",
"npm": "9"
}
}
12 changes: 4 additions & 8 deletions apps/shinkai-app/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/shinkai-app/src",
"projectType": "application",
"tags": [],
"targets": {
"build": {
"command": "cd apps/shinkai-app && npx tsc && npx vite build"
Expand Down Expand Up @@ -49,15 +50,10 @@
},
"lint": {
"executor": "@nx/linter:eslint",
"outputs": [
"{options.outputFile}"
],
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
"apps/shinkai-app/**/*.{ts,tsx,js,jsx}"
]
"lintFilePatterns": ["apps/shinkai-app/**/*.{ts,tsx,js,jsx}"]
}
}
},
"tags": []
}
}
1 change: 0 additions & 1 deletion apps/shinkai-visor-e2e/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { workspaceRoot } from '@nx/devkit';
import { nxE2EPreset } from '@nx/playwright/preset';
import { defineConfig, devices } from '@playwright/test';
// For CI, you may want to set BASE_URL to the deployed application.
Expand Down
1 change: 0 additions & 1 deletion apps/shinkai-visor/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"extends": [
"plugin:playwright/recommended",
"plugin:playwright/recommended",
"plugin:@nx/react",
"../../.eslintrc.json"
Expand Down
10 changes: 0 additions & 10 deletions apps/shinkai-visor/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,6 @@
"options": {
"cwd": "apps/shinkai-visor",
"command": "npx vite"
},
"configurations": {
"development": {
"buildTarget": "shinkai-visor:build:development",
"hmr": true
},
"production": {
"buildTarget": "shinkai-visor:build:production",
"hmr": false
}
}
},
"preview": {
Expand Down
20 changes: 6 additions & 14 deletions libs/shinkai-message-ts/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/shinkai-message-ts/src",
"projectType": "library",
"tags": [],
"targets": {
"build": {
"executor": "@nx/vite:build",
"outputs": [
"{options.outputPath}"
],
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/libs/shinkai-message-ts",
"main": "libs/shinkai-message-ts/src/index.ts",
Expand All @@ -19,9 +18,7 @@
},
"serve": {
"executor": "@nx/vite:build",
"outputs": [
"{options.outputPath}"
],
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/libs/shinkai-message-ts",
"main": "libs/shinkai-message-ts/src/index.ts",
Expand All @@ -32,9 +29,7 @@
},
"lint": {
"executor": "@nx/linter:eslint",
"outputs": [
"{options.outputFile}"
],
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
"libs/shinkai-message-ts/**/*.ts",
Expand All @@ -44,13 +39,10 @@
},
"test": {
"executor": "@nx/vite:test",
"outputs": [
"{workspaceRoot}/coverage/{projectRoot}"
],
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"config": "libs/shinkai-message-ts/vite.config.ts"
}
}
},
"tags": []
}
}
14 changes: 0 additions & 14 deletions libs/shinkai-message-ts/src/pkg/package.json

This file was deleted.

34 changes: 10 additions & 24 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": ["build", "lint", "test", "e2e"]
}
}
},
"targetDefaults": {
"build": {
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
"inputs": ["production", "^production"],
"cache": true
},
"lint": {
"inputs": [
"default",
"{workspaceRoot}/.eslintrc.json",
"{workspaceRoot}/.eslintignore"
]
],
"cache": true
},
"test": {
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"]
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
"cache": true
},
"e2e": {
"inputs": ["default", "^production"],
Expand Down Expand Up @@ -53,7 +48,7 @@
"babel": true,
"linter": "eslint",
"style": "css",
"bundler": "webpack"
"bundler": "vite"
},
"component": {
"style": "css"
Expand All @@ -69,19 +64,10 @@
{
"plugin": "@nx/eslint/plugin",
"options": {
"targetName": "eslint:lint",
"targetName": "lint",
"extensions": ["ts", "tsx", "js", "jsx", "html", "vue"]
}
},
{
"plugin": "@nx/vite/plugin",
"options": {
"buildTargetName": "vite:build",
"testTargetName": "vite:test",
"serveTargetName": "vite:serve",
"previewTargetName": "vite:preview",
"serveStaticTargetName": "vite:serve-static"
}
}
]
],
"useInferencePlugins": false
}
Loading

0 comments on commit 4529ff5

Please sign in to comment.