Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .env.local

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,5 @@ testem.log

# System Files
.DS_Store
Thumbs.db
Thumbs.db
.env.local
4 changes: 2 additions & 2 deletions apps/docs/components/content/Generate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ const route = useRoute();

const framework = useCookie('framework', {
default: () => ({
name: 'Vue',
icon: 'logos:vue',
name: 'qwik',
icon: 'logos:qwik',
}),
});

Expand Down
5 changes: 4 additions & 1 deletion apps/website/package.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"name": "website"
"name": "website",
"dependencies": {
"qwik-storefront-ui": "workspace:*"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export default component$(() => {
positiveAlertSignal.value = true;
setTimeout(() => (positiveAlertSignal.value = false), 5000);
}
console.log(email);
inputValueSignal.value = '';
});

Expand Down
8 changes: 0 additions & 8 deletions apps/website/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,5 @@
"noEmit": true,
"types": ["node", "vite/client", "vitest"]
},
"references": [
{
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.spec.json"
}
],
"include": ["src"]
}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
},
"private": false,
"devDependencies": {
"@builder.io/qwik": "1.2.11",
"@builder.io/qwik-city": "1.2.11",
"@builder.io/qwik": "1.2.13",
"@builder.io/qwik-city": "1.2.13",
"@commitlint/cli": "17.6.5",
"@commitlint/config-angular": "17.6.5",
"@commitlint/config-conventional": "17.6.5",
Expand Down Expand Up @@ -42,7 +42,7 @@
"eslint": "8.42.0",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-cypress": "2.13.3",
"eslint-plugin-qwik": "1.2.11",
"eslint-plugin-qwik": "1.2.13",
"husky": "^8.0.0",
"instantsearch.css": "8.1.0",
"jsdom": "22.1.0",
Expand All @@ -65,6 +65,7 @@
"vite": "4.3.9",
"vite-plugin-dts": "2.3.0",
"vite-plugin-eslint": "1.8.1",
"vite-plugin-static-copy": "^0.17.0",
"vite-tsconfig-paths": "4.2.0",
"vitest": "0.31.4",
"vue": "3.3.4",
Expand Down
10 changes: 1 addition & 9 deletions packages/qwik-storefront-ui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,5 @@
"types": ["node", "vite/client", "vitest"]
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
},
{
"path": "./tsconfig.spec.json"
}
]
"include": []
}
16 changes: 11 additions & 5 deletions packages/qwik-storefront-ui/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { qwikNxVite } from 'qwik-nx/plugins';
import { fileURLToPath } from 'url';
import { defineConfig } from 'vite';
import dts from 'vite-plugin-dts';
import { viteStaticCopy } from 'vite-plugin-static-copy';
import tsconfigPaths from 'vite-tsconfig-paths';

export default defineConfig({
Expand All @@ -18,8 +19,10 @@ export default defineConfig({
dirname(fileURLToPath(import.meta.url)),
'tsconfig.lib.json'
),
// Faster builds by skipping tests. Set this to false to enable type checking.
skipDiagnostics: true,
entryRoot: 'src',
}),
viteStaticCopy({
targets: [{ src: './README.md', dest: './' }],
}),
],
server: {
Expand All @@ -33,13 +36,12 @@ export default defineConfig({
// See: https://vitejs.dev/guide/build.html#library-mode
build: {
target: 'es2020',
emptyOutDir: true,
lib: {
entry: './src/index.ts',

// Could also be a dictionary or array of multiple entry points.
name: 'qwik-storefront-ui',
fileName: (format) => `index.qwik.${format === 'es' ? 'mjs' : 'cjs'}`,
fileName: (format, entryName) =>
`${entryName}.qwik.${format === 'es' ? 'mjs' : 'cjs'}`,
// fileName: 'index',
// Change this to the formats you want to support.
// Don't forgot to update your package.json as well.
Expand All @@ -48,6 +50,10 @@ export default defineConfig({
rollupOptions: {
// External packages that should not be bundled into your library.
external: [],
output: {
preserveModules: true,
preserveModulesRoot: 'packages/qwik-storefront-ui/src',
},
},
},
test: {
Expand Down
Loading