Skip to content

Commit cb89acc

Browse files
authored
Merge pull request #1072 from maiieul/update-1.14.0
Update-1.14.0
2 parents b9f58d9 + f43c018 commit cb89acc

File tree

10 files changed

+6173
-5186
lines changed

10 files changed

+6173
-5186
lines changed

apps/website/recma-provide-components.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ export const recmaProvideComponents: Plugin<any, Program> = () => {
8686

8787
tree.body.unshift({
8888
type: 'ImportDeclaration',
89+
attributes: [
90+
{
91+
type: 'ImportAttribute',
92+
key: { type: 'Identifier', name: 'type' },
93+
value: { type: 'Literal', value: 'module' },
94+
},
95+
],
8996
specifiers: [
9097
{
9198
type: 'ImportSpecifier',

apps/website/src/components/navigation-docs/navigation-docs.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { PropsOf, component$ } from '@builder.io/qwik';
2-
import { useLocation } from '@builder.io/qwik-city';
2+
import { Link, useLocation } from '@builder.io/qwik-city';
33
import { ComponentStatus } from '~/_state/component-status.type';
44
import { StatusBadge } from '../component-status-badge/component-status-badge';
55
import { cn } from '@qwik-ui/utils';
@@ -60,7 +60,7 @@ export const DocsNavigation = component$(
6060
const isLinkActive = location.url.pathname === link.href;
6161
return (
6262
<li key={link.name + link.href}>
63-
<a
63+
<Link
6464
class={cn(
6565
buttonVariants({ look: 'ghost' }),
6666
'flex h-10 items-center rounded-base font-sans',
@@ -78,7 +78,7 @@ export const DocsNavigation = component$(
7878
<div>{link.name}</div>
7979
{link.status && <StatusBadge status={link.status} />}
8080
</div>
81-
</a>
81+
</Link>
8282
</li>
8383
);
8484
})}

apps/website/vite.config.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export default defineConfig(async () => {
7777
}),
7878
qwikVite({
7979
lint: false,
80+
debug: true,
8081
tsconfigFileNames: ['tsconfig.app.json'],
8182
client: {
8283
outDir: '../../dist/apps/website/client',
@@ -97,7 +98,19 @@ export default defineConfig(async () => {
9798
build: {
9899
target: 'es2022',
99100
rollupOptions: {
100-
// output,
101+
output: {
102+
manualChunks: (id: string) => {
103+
if (id.includes('node-modules') && id.includes('css-tree')) {
104+
return 'css-tree';
105+
}
106+
if (
107+
id.includes('node-modules') &&
108+
(id.includes('tailwind-merge') || id.includes('clsx'))
109+
) {
110+
return 'cn';
111+
}
112+
},
113+
},
101114
},
102115
},
103116
preview: {

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
"packageManager": "[email protected]",
5050
"devDependencies": {
5151
"@axe-core/playwright": "^4.9.1",
52-
"@builder.io/qwik": "^1.9",
53-
"@builder.io/qwik-city": "^1.9",
52+
"@builder.io/qwik": "1.14.0",
53+
"@builder.io/qwik-city": "1.14.0",
5454
"@changesets/cli": "^2.27.3",
5555
"@changesets/get-github-info": "^0.6.0",
5656
"@changesets/types": "^6.0.0",
@@ -97,7 +97,7 @@
9797
"eslint": "^8.57.0",
9898
"eslint-config-prettier": "^9.1.0",
9999
"eslint-plugin-playwright": "^1.6.2",
100-
"eslint-plugin-qwik": "^1.9",
100+
"eslint-plugin-qwik": "1.14.0",
101101
"focus-trap": "7.5.4",
102102
"jest": "^29.7.0",
103103
"jest-environment-jsdom": "^29.7.0",

packages/cli/jest.config.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
/* eslint-disable */
2-
export default {
1+
import type { Config } from 'jest';
2+
3+
const config: Config = {
34
displayName: 'qwikui-cli',
45
preset: '../../jest.preset.cjs',
56
globals: {},
@@ -15,4 +16,8 @@ export default {
1516
testEnvironment: 'node',
1617
moduleFileExtensions: ['ts', 'js', 'html'],
1718
coverageDirectory: '../../coverage/packages/cli',
19+
// @ts-expect-error declaration file
20+
prettierPath: import('prettier-2').path,
1821
};
22+
23+
export default config;

packages/cli/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"yargs": "17.7.2"
2020
},
2121
"devDependencies": {
22-
"@qwik-ui/styled": "0.3.1"
22+
"@qwik-ui/styled": "0.3.1",
23+
"prettier-2": "npm:prettier@^2"
2324
},
2425
"type": "commonjs",
2526
"main": "./src/index.js",

packages/cli/src/generators/init/init-generator.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ describe('init generator', () => {
2424
const expectedContents = tree.read(QWIK_UI_CONFIG_FILENAME, 'utf-8');
2525

2626
expect(expectedContents).toMatchInlineSnapshot(`
27-
"{ "componentsRoot": "src/components/ui" }
28-
"
29-
`);
27+
"{ "componentsRoot": "src/components/ui" }
28+
"
29+
`);
3030
});
3131

3232
test(`
@@ -43,8 +43,8 @@ describe('init generator', () => {
4343
const expectedContents = tree.read(QWIK_UI_CONFIG_FILENAME, 'utf-8');
4444

4545
expect(expectedContents).toMatchInlineSnapshot(`
46-
"{ "componentsRoot": "/my-project/src/components/ui" }
47-
"
48-
`);
46+
"{ "componentsRoot": "/my-project/src/components/ui" }
47+
"
48+
`);
4949
});
5050
});

0 commit comments

Comments
 (0)