Skip to content

Commit

Permalink
Merge pull request #2801 from evidence-dev/feat/remove-plugin-connector
Browse files Browse the repository at this point in the history
Delete plugin connector
  • Loading branch information
ItsMeBrianD authored Nov 18, 2024
2 parents de20f0d + 762efad commit 9cef118
Show file tree
Hide file tree
Showing 91 changed files with 2,306 additions and 5,447 deletions.
7 changes: 7 additions & 0 deletions .changeset/neat-badgers-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@evidence-dev/evidence': minor
'@evidence-dev/sdk': minor
'@evidence-dev/core-components': minor
---

Remove plugin connector
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"@evidence-dev/motherduck": "link:packages/datasources/motherduck",
"@evidence-dev/mssql": "link:packages/datasources/mssql",
"@evidence-dev/mysql": "link:packages/datasources/mysql",
"@evidence-dev/plugin-connector": "link:packages/lib/plugin-connector",
"@evidence-dev/postgres": "link:packages/datasources/postgres",
"@evidence-dev/preprocess": "link:packages/lib/preprocess",
"@evidence-dev/redshift": "link:packages/datasources/redshift",
Expand Down Expand Up @@ -70,10 +69,10 @@
"vite": "5.4.11"
},
"scripts": {
"release": "run-s package:core-components build:tailwind build:evidence build:plugin-connector && pnpm changeset publish",
"release": "run-s package:core-components build:tailwind build:evidence && pnpm changeset publish",
"test": "pnpm -r test && pnpm -r test:unit",
"test:component-utilities:watch": "pnpm --filter ./packages/lib/component-utilities test:watch",
"postinstall": "run-s build:plugin-connector build:preprocess build:tailwind package:core-components build:evidence",
"postinstall": "run-s build:preprocess build:tailwind package:core-components build:evidence",
"lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write .",
"sources:docs": "pnpm --filter ./sites/docs sources",
Expand All @@ -96,7 +95,6 @@
"package:evidence": "pnpm --filter ./packages/evidence package",
"build:evidence": "pnpm --filter ./packages/evidence build",
"build:preprocess": "pnpm --filter ./packages/lib/preprocess build",
"build:plugin-connector": "pnpm --filter ./packages/lib/plugin-connector build",
"build:tailwind": "pnpm --filter ./packages/ui/tailwind build",
"sources:core-components": "pnpm --filter ./packages/ui/core-components sources"
},
Expand Down
1 change: 0 additions & 1 deletion packages/evidence/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"vite": "5.4.11"
},
"dependencies": {
"@evidence-dev/plugin-connector": "workspace:*",
"@evidence-dev/preprocess": "workspace:*",
"@evidence-dev/sdk": "workspace:*",
"@evidence-dev/telemetry": "workspace:*",
Expand Down
7 changes: 3 additions & 4 deletions packages/evidence/scripts/build-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ fs.writeFileSync('./template/svelte.config.js', fs.readFileSync(configFileLocati
fsExtra.outputFileSync(
'./template/vite.config.js',
`import { sveltekit } from "@sveltejs/kit/vite"
import { evidenceVitePlugin } from "@evidence-dev/plugin-connector"
import { createLogger } from 'vite';
import { sourceQueryHmr, configVirtual } from '@evidence-dev/sdk/build/vite';
import { sourceQueryHmr, configVirtual, queryDirectoryHmr } from '@evidence-dev/sdk/build/vite';
import { isDebug } from '@evidence-dev/sdk/utils';
import { log } from "@evidence-dev/sdk/logger";
Expand All @@ -61,7 +60,7 @@ fsExtra.outputFileSync(
/** @type {import('vite').UserConfig} */
const config =
{
plugins: [sveltekit(), configVirtual(), evidenceVitePlugin(), sourceQueryHmr()],
plugins: [sveltekit(), configVirtual(), queryDirectoryHmr, sourceQueryHmr()],
optimizeDeps: {
include: ['echarts-stat', 'echarts', 'blueimp-md5', 'nanoid', '@uwdata/mosaic-sql',
// We need these to prevent HMR from doing a full page reload
Expand All @@ -78,7 +77,7 @@ fsExtra.outputFileSync(
exclude: ['svelte-icons', '@evidence-dev/universal-sql', '$evidence/config']
},
ssr: {
external: ['@evidence-dev/telemetry', 'blueimp-md5', 'nanoid', '@uwdata/mosaic-sql', '@evidence-dev/plugin-connector']
external: ['@evidence-dev/telemetry', 'blueimp-md5', 'nanoid', '@uwdata/mosaic-sql', '@evidence-dev/sdk/plugins']
},
server: {
fs: {
Expand Down
5 changes: 2 additions & 3 deletions packages/evidence/scripts/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import evidencePreprocess from '@evidence-dev/preprocess';
import preprocess from 'svelte-preprocess';
import adapter from '@sveltejs/adapter-static';
import { evidencePlugins } from '@evidence-dev/plugin-connector';
import { addBasePathToHrefAndSrc } from '@evidence-dev/sdk/build/svelte';
import { addBasePathToHrefAndSrc, injectComponents } from '@evidence-dev/sdk/build/svelte';
import fs from 'fs';
import path from 'path';
import { getEvidenceConfig } from '@evidence-dev/sdk/config';
Expand Down Expand Up @@ -40,7 +39,7 @@ const config = {
extensions: ['.svelte', '.md'],
preprocess: [
...evidencePreprocess(true),
evidencePlugins(),
injectComponents(),
preprocess({
postcss: true
}),
Expand Down
Loading

0 comments on commit 9cef118

Please sign in to comment.