create-qwik 0.0.23 → 0.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-qwik",
3
- "version": "0.0.23",
3
+ "version": "0.0.26",
4
4
  "description": "Interactive CLI and API for generating Qwik projects.",
5
5
  "bin": "create-qwik",
6
6
  "main": "index.js",
@@ -13,7 +13,7 @@
13
13
  "typecheck": "tsc --noEmit"
14
14
  },
15
15
  "devDependencies": {
16
- "@builder.io/qwik": "0.0.23",
16
+ "@builder.io/qwik": "0.0.26",
17
17
  "@types/node": "latest",
18
18
  "node-fetch": "2.6.7",
19
19
  "typescript": "4.7.2",
@@ -0,0 +1,15 @@
1
+ html {
2
+ line-height: 1.5;
3
+ -webkit-text-size-adjust: 100%;
4
+ -moz-tab-size: 4;
5
+ -o-tab-size: 4;
6
+ tab-size: 4;
7
+ font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
8
+ 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
9
+ 'Segoe UI Symbol', 'Noto Color Emoji';
10
+ }
11
+
12
+ body {
13
+ padding: 0;
14
+ line-height: inherit;
15
+ }
@@ -0,0 +1,13 @@
1
+ import './global.css';
2
+
3
+ export const Root = () => {
4
+ return (
5
+ <html>
6
+ <head>
7
+ <meta charSet="utf-8" />
8
+ <title>Qwik Blank App</title>
9
+ </head>
10
+ <body></body>
11
+ </html>
12
+ );
13
+ };
@@ -1,8 +1,6 @@
1
1
  import { useStore, component$, Host } from '@builder.io/qwik';
2
2
  import { Logo } from '../logo/logo';
3
3
 
4
- import './global.css';
5
-
6
4
  export const App = component$(() => {
7
5
  const state = useStore({ name: 'World' });
8
6
  return (
@@ -1,5 +1,7 @@
1
1
  import { App } from './components/app/app';
2
2
 
3
+ import './global.css';
4
+
3
5
  export const Root = () => {
4
6
  return (
5
7
  <html>
@@ -2,8 +2,6 @@ import { component$ } from '@builder.io/qwik';
2
2
  import { Footer } from '../footer/footer';
3
3
  import { Header } from '../header/header';
4
4
 
5
- import './global.css';
6
-
7
5
  export const App = component$(() => {
8
6
  return (
9
7
  <>
@@ -1,5 +1,7 @@
1
1
  import { App } from './components/app/app';
2
2
 
3
+ import './global.css';
4
+
3
5
  export const Root = () => {
4
6
  return (
5
7
  <html>
@@ -1,5 +1,4 @@
1
1
  import { component$, useStore } from '@builder.io/qwik';
2
- import './global.css';
3
2
 
4
3
  export const App = component$(() => {
5
4
  const state = useStore({ name: 'World', running: true });
@@ -1,6 +1,8 @@
1
1
  import { App } from './components/app/app';
2
2
  import { partytownSnippet } from '@builder.io/partytown/integration';
3
3
 
4
+ import './global.css';
5
+
4
6
  export const Root = () => {
5
7
  return (
6
8
  <html>
@@ -15,15 +15,18 @@ import styles from './index.css?inline';
15
15
  export const App = component$(() => {
16
16
  useStyles$(styles);
17
17
 
18
- const todos = useStore<Todos>({
19
- filter: 'all',
20
- items: [
21
- { completed: false, title: 'Read Qwik docs', id: '0' },
22
- { completed: false, title: 'Build HelloWorld', id: '1' },
23
- { completed: false, title: 'Profit', id: '2' },
24
- ],
25
- nextItemId: 3,
26
- });
18
+ const todos = useStore<Todos>(
19
+ {
20
+ filter: 'all',
21
+ items: [
22
+ { completed: false, title: 'Read Qwik docs', id: '0' },
23
+ { completed: false, title: 'Build HelloWorld', id: '1' },
24
+ { completed: false, title: 'Profit', id: '2' },
25
+ ],
26
+ nextItemId: 3,
27
+ },
28
+ { recursive: true }
29
+ );
27
30
  useContextProvider(TODOS, todos);
28
31
 
29
32
  return (
@@ -11,8 +11,13 @@ module.exports = {
11
11
  ],
12
12
  parser: '@typescript-eslint/parser',
13
13
  parserOptions: {
14
- ecmaVersion: 12,
14
+ tsconfigRootDir: __dirname,
15
+ project: ['./tsconfig.json'],
16
+ ecmaVersion: 2021,
15
17
  sourceType: 'module',
18
+ ecmaFeatures: {
19
+ jsx: true,
20
+ },
16
21
  },
17
22
  plugins: ['@typescript-eslint'],
18
23
  rules: {
@@ -5,7 +5,6 @@
5
5
  "serve": "wrangler pages dev ./dist"
6
6
  },
7
7
  "devDependencies": {
8
- "@cloudflare/workers-types": "3.11.0",
9
8
  "wrangler": "beta"
10
9
  },
11
10
  "qwik": {
@@ -3,7 +3,7 @@ import { render } from './entry.ssr';
3
3
  /**
4
4
  * Cloudflare Pages Request Handler
5
5
  */
6
- export const onRequestGet: PagesFunction = async ({ request, next, waitUntil }) => {
6
+ export const onRequestGet = async ({ request, next, waitUntil }: any) => {
7
7
  try {
8
8
  const url = new URL(request.url);
9
9
 
@@ -1,17 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2017",
4
- "module": "ES2020",
5
- "lib": ["es2020", "DOM"],
6
- "jsx": "react-jsx",
7
- "jsxImportSource": "@builder.io/qwik",
8
- "strict": true,
9
- "resolveJsonModule": true,
10
- "moduleResolution": "node",
11
- "esModuleInterop": true,
12
- "skipLibCheck": true,
13
- "incremental": true,
14
- "types": ["vite/client", "@cloudflare/workers-types"]
15
- },
16
- "include": ["src"]
17
- }