Skip to content

Commit ad9b3aa

Browse files
authored
Merge pull request #146 from qwikifiers/pr-fix-build
2 parents 32fd563 + 13faf5d commit ad9b3aa

File tree

9 files changed

+948
-1124
lines changed

9 files changed

+948
-1124
lines changed

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
16

package-lock.json

Lines changed: 865 additions & 1090 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@
1313
"prepare": "husky install"
1414
},
1515
"devDependencies": {
16-
"@builder.io/qwik": "0.16.2",
17-
"@builder.io/qwik-city": "0.1.0-beta9",
16+
"@builder.io/qwik": "0.17.4",
17+
"@builder.io/qwik-city": "0.1.0-beta13",
1818
"@commitlint/cli": "^17.4.2",
1919
"@commitlint/config-angular": "^17.4.2",
2020
"@commitlint/config-conventional": "^17.4.2",
2121
"@cypress/code-coverage": "3.10.0",
2222
"@jscutlery/semver": "^2.29.3",
23-
"@nrwl/cli": "15.5.2",
24-
"@nrwl/cypress": "15.5.2",
25-
"@nrwl/eslint-plugin-nx": "15.5.2",
26-
"@nrwl/linter": "15.5.2",
27-
"@nrwl/nx-cloud": "15.0.2",
28-
"@nrwl/storybook": "15.5.2",
29-
"@nrwl/vite": "15.5.2",
30-
"@nrwl/workspace": "15.5.2",
23+
"@nrwl/cli": "15.6.1",
24+
"@nrwl/cypress": "15.6.1",
25+
"@nrwl/eslint-plugin-nx": "15.6.1",
26+
"@nrwl/linter": "15.6.1",
27+
"@nrwl/nx-cloud": "15.0.3",
28+
"@nrwl/storybook": "15.6.1",
29+
"@nrwl/vite": "15.6.1",
30+
"@nrwl/workspace": "15.6.1",
3131
"@storybook/addon-essentials": "7.0.0-beta.30",
3232
"@storybook/addon-interactions": "7.0.0-beta.30",
3333
"@storybook/addon-links": "7.0.0-beta.30",
@@ -36,10 +36,10 @@
3636
"@storybook/html": "7.0.0-beta.30",
3737
"@storybook/html-vite": "7.0.0-beta.30",
3838
"@storybook/testing-library": "0.0.13",
39-
"@types/eslint": "8.4.10",
39+
"@types/eslint": "8.21.0",
4040
"@types/node": "18.11.18",
41-
"@typescript-eslint/eslint-plugin": "5.48.0",
42-
"@typescript-eslint/parser": "5.48.0",
41+
"@typescript-eslint/eslint-plugin": "5.50.0",
42+
"@typescript-eslint/parser": "5.50.0",
4343
"@vitest/coverage-c8": "~0.25.8",
4444
"@vitest/ui": "^0.25.8",
4545
"all-contributors-cli": "^6.24.0",
@@ -48,28 +48,28 @@
4848
"commitlint": "^17.2.0",
4949
"cypress": "^10.7.0",
5050
"cz-conventional-changelog": "^3.3.0",
51-
"eslint": "8.23.1",
51+
"eslint": "8.33.0",
5252
"eslint-config-prettier": "8.1.0",
5353
"eslint-plugin-cypress": "^2.10.3",
54-
"eslint-plugin-qwik": "0.16.2",
54+
"eslint-plugin-qwik": "0.17.4",
5555
"html-webpack-plugin": "^5.5.0",
5656
"husky": "^8.0.1",
5757
"jsdom": "~20.0.3",
5858
"ngx-deploy-npm": "^4.3.2",
5959
"node-fetch": "3.3.0",
6060
"np": "7.6.1",
61-
"nx": "15.5.2",
61+
"nx": "15.6.1",
6262
"postcss": "^8.4.16",
63-
"prettier": "2.8.2",
63+
"prettier": "2.8.3",
6464
"pretty-quick": "^3.1.3",
65-
"qwik-nx": "0.4.2",
65+
"qwik-nx": "0.7.0",
6666
"storybook": "7.0.0-beta.30",
6767
"storybook-framework-qwik": "0.0.8",
6868
"tailwindcss": "^3.1.8",
6969
"ts-node": "10.9.1",
7070
"typescript": "4.9.4",
71-
"undici": "5.14.0",
72-
"vite": "4.0.1",
71+
"undici": "5.16.0",
72+
"vite": "4.0.4",
7373
"vite-plugin-dts": "~1.7.1",
7474
"vite-plugin-eslint": "^1.8.1",
7575
"vite-tsconfig-paths": "4.0.3",

packages/daisy/project.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"defaultConfiguration": "production",
1111
"options": {
1212
"outputPath": "dist/packages/daisy",
13+
"configFile": "packages/daisy/vite.config.ts",
1314
"mode": "lib"
1415
},
1516
"configurations": {
@@ -30,6 +31,32 @@
3031
"options": {
3132
"lintFilePatterns": ["packages/daisy/**/*.{ts,tsx,js,jsx}"]
3233
}
34+
},
35+
"version": {
36+
"executor": "@jscutlery/semver:version",
37+
"options": {}
38+
},
39+
"version-publish": {
40+
"executor": "@jscutlery/semver:version",
41+
"options": {
42+
"noVerify": true,
43+
"push": true,
44+
"postTargets": ["daisy:publish", "daisy:push-to-github"]
45+
}
46+
},
47+
"publish": {
48+
"executor": "ngx-deploy-npm:deploy",
49+
"options": {
50+
"access": "public",
51+
"distFolderPath": "packages/daisy"
52+
}
53+
},
54+
"push-to-github": {
55+
"executor": "@jscutlery/semver:github",
56+
"options": {
57+
"tag": "${tag}",
58+
"notes": "${notes}"
59+
}
3360
}
3461
},
3562
"tags": []

packages/daisy/vite.config.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import { join } from 'path';
88

99
export default defineConfig({
1010
plugins: [
11-
qwikVite(),
11+
qwikVite({
12+
vendorRoots: [join(__dirname, '../headless/src')],
13+
}),
1214
tsconfigPaths(),
1315
dts({
1416
tsConfigFilePath: join(__dirname, 'tsconfig.lib.json'),
@@ -23,8 +25,8 @@ export default defineConfig({
2325
lib: {
2426
// Could also be a dictionary or array of multiple entry points.
2527
entry: 'src/index.ts',
26-
name: 'limpy',
27-
fileName: 'index',
28+
name: 'daisy',
29+
fileName: (format) => `index.qwik.${format === 'es' ? 'mjs' : 'cjs'}`,
2830
// Change this to the formats you want to support.
2931
// Don't forgot to update your package.json as well.
3032
formats: ['es', 'cjs'],

packages/material/vite.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import { join } from 'path';
88

99
export default defineConfig({
1010
plugins: [
11-
qwikVite(),
11+
qwikVite({
12+
vendorRoots: [join(__dirname, '../headless/src')],
13+
}),
1214
tsconfigPaths(),
1315
dts({
1416
tsConfigFilePath: join(__dirname, 'tsconfig.lib.json'),

packages/website/src/components/header/header.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default component$(() => {
1515
const appState = useContext(APP_STATE);
1616
const menuOpenSignal = useSignal(false);
1717

18-
const toggleMenu = $(() => {
18+
const toggleMenu$ = $(() => {
1919
menuOpenSignal.value = !menuOpenSignal.value;
2020
});
2121

@@ -32,7 +32,7 @@ export default component$(() => {
3232
<button
3333
type="button"
3434
aria-label="Toggle navigation"
35-
onClick$={toggleMenu}
35+
onClick$={toggleMenu$}
3636
class="block lg:hidden"
3737
>
3838
{menuOpenSignal.value ? <CloseIcon /> : <MenuIcon />}
@@ -41,7 +41,7 @@ export default component$(() => {
4141
<aside class="fixed top-0 left-0">
4242
<div class="fixed h-screen w-screen bg-gray-900/20 backdrop-blur-sm"></div>
4343
<div class="fixed h-screen w-80 overflow-y-scroll bg-white dark:bg-slate-800">
44-
<Menu onClose={toggleMenu} />
44+
<Menu onClose$={toggleMenu$} />
4545
</div>
4646
</aside>
4747
)}

packages/website/src/components/menu/menu.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import { APP_STATE } from '../../constants';
44
import { CloseIcon } from '../icons/CloseIcon';
55

66
type Props = {
7-
onClose?: PropFunction<() => void>;
7+
onClose$?: PropFunction<() => void>;
88
};
99

10-
export const Menu = component$<Props>(({ onClose }) => {
10+
export const Menu = component$<Props>(({ onClose$ }) => {
1111
const appState = useContext(APP_STATE);
1212
const menu = [
1313
{ label: 'Button', path: `/docs/${appState.theme.toLowerCase()}/button` },
@@ -28,17 +28,18 @@ export const Menu = component$<Props>(({ onClose }) => {
2828
];
2929

3030
const onChangePage = $(() => {
31-
if (onClose) {
32-
onClose();
31+
if (onClose$) {
32+
onClose$();
3333
}
3434
});
3535

3636
return (
3737
<div class="px-4 py-4">
3838
<div class="flex items-center justify-between">
3939
<h4 class="text-2xl">Documentation</h4>
40-
{onClose && (
41-
<h5 onClick$={onClose}>
40+
{onClose$ && (
41+
// eslint-disable-next-line qwik/valid-lexical-scope
42+
<h5 onClick$={onClose$}>
4243
<CloseIcon />
4344
</h5>
4445
)}

packages/website/vite.config.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,25 @@ import { defineConfig } from 'vite';
22
import { qwikVite } from '@builder.io/qwik/optimizer';
33
import { qwikCity } from '@builder.io/qwik-city/vite';
44
import tsconfigPaths from 'vite-tsconfig-paths';
5+
import { join } from 'path';
56

67
export default defineConfig(() => {
78
return {
8-
plugins: [qwikCity(), qwikVite(), tsconfigPaths()],
9+
plugins: [
10+
qwikCity(),
11+
qwikVite({
12+
vendorRoots: [
13+
join(__dirname, '../headless/src'),
14+
join(__dirname, '../material/src'),
15+
join(__dirname, '../daisy/src'),
16+
],
17+
}),
18+
tsconfigPaths(),
19+
],
20+
preview: {
21+
headers: {
22+
'Cache-Control': 'public, max-age=600',
23+
},
24+
},
925
};
1026
});

0 commit comments

Comments
 (0)