Skip to content

Commit

Permalink
chore: 🤖 update
Browse files Browse the repository at this point in the history
  • Loading branch information
IWANABETHATGUY committed Sep 7, 2024
1 parent daa7aef commit 1712082
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 18 deletions.
2 changes: 1 addition & 1 deletion apps/preact-ts/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import preact from '@preact/preset-vite'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [preact()],
plugins: [preact() as any],
})
3 changes: 2 additions & 1 deletion apps/solid-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"solid-js": "^1.8.18"
},
"devDependencies": {
"typescript": "^5.2.2"
"typescript": "^5.2.2",
"vite-plugin-solid": "2.10.2"
}
}
5 changes: 2 additions & 3 deletions apps/solid-ts/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// @ts-ignore
import { defineConfig } from 'rolldown-vite'
import { defineConfig, Plugin } from 'rolldown-vite'
import solid from 'vite-plugin-solid'

export default defineConfig({
plugins: [solid()],
plugins: [solid() as Plugin],
})
4 changes: 2 additions & 2 deletions apps/svelte-ts/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @ts-ignore
import { defineConfig } from 'rolldown-vite'
import { defineConfig, Plugin } from 'rolldown-vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [svelte()],
plugins: [svelte() as Plugin],
})
2 changes: 1 addition & 1 deletion apps/vue-js/src/components/HelloWorld.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const count = ref(0)
<div class="card">
<button type="button" @click="count++">count is {{ count }}</button>
<p>
Edit it waht ever
Edit
<code>components/HelloWorld.vue</code> to test HMR
</p>
</div>
Expand Down
5 changes: 2 additions & 3 deletions apps/vue-ts/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// @ts-ignore
import { defineConfig } from 'rolldown-vite'
import { defineConfig, Plugin } from 'rolldown-vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
plugins: [vue() as Plugin],
})
7 changes: 7 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

setup:
pnpm install -r
pnpm --filter './apps/**' --filter "!./apps/qwik-*" run build

test:
pnpm verify-build
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"license": "ISC",
"packageManager": "[email protected]",
"devDependencies": {
"@playwright/test": "^1.47.0",
"playwright": "^1.45.2",
"tree-kill": "^1.2.2",
"rolldown-vite": "latest"
"rolldown-vite": "0.0.3",
"tree-kill": "^1.2.2"
}
}
7 changes: 6 additions & 1 deletion packages/build-tester/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,19 @@ const urlRegex = /http:\/\/(?:www\.)?[a-zA-Z0-9-]+\:\d+/g

// ignore app list
const ignoreList = ["qwik-jsx", "qwik-tsx"];
const includeList = process.argv.slice(2);
console.log(`includeList: `, includeList)

let hasError = false;
for (let appName of list) {
if (ignoreList.includes(appName)) {
console.warn(`Ignoring ${appName}`);
continue;
}
if (includeList.length > 0 && !includeList.includes(appName)) {
console.warn(`Ignoring ${appName} since it is not included`);
continue;
}
let abPath = path.resolve(appDir, appName);
let err;
try {
Expand Down Expand Up @@ -82,7 +88,6 @@ function runInApp(dirPath, caseName) {
const browser = await chromium.launch();
const page = await browser.newPage();

// The actual interesting bit
await page.goto("http://localhost:4173/");

try {
Expand Down
23 changes: 19 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1712082

Please sign in to comment.