Compare commits

..

No commits in common. "28279942ad361e1db9427cd199aff004e701f215" and "f55f3e8c317fa60a9b48a0d26f3ea0f3b24bc2cf" have entirely different histories.

9 changed files with 24 additions and 26 deletions

View file

@ -6,7 +6,7 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Lint - name: Status
run: npm run lint run: git status
- name: Check Types - name: Host
run: npm run check-types run: cat /etc/hosts

View file

@ -7,8 +7,6 @@
"test": "test" "test": "test"
}, },
"scripts": { "scripts": {
"lint": "eslint . --max-warnings 0",
"check-types": "tsc --noEmit",
"test": "ts-node --test test/**/*.test.ts", "test": "ts-node --test test/**/*.test.ts",
"start": "node dist/index.js", "start": "node dist/index.js",
"dev": "nodemon --delay 2000ms src/index.ts", "dev": "nodemon --delay 2000ms src/index.ts",

View file

@ -4,8 +4,6 @@
"version": "0.0.0", "version": "0.0.0",
"type": "module", "type": "module",
"scripts": { "scripts": {
"lint": "eslint . --max-warnings 0",
"check-types": "tsc --noEmit",
"dev": "vite", "dev": "vite",
"build": "tsc -b && vite build", "build": "tsc -b && vite build",
"preview": "vite preview" "preview": "vite preview"

View file

@ -13,15 +13,11 @@ export const config = [
{ {
files: ['**/*.{ts,tsx}'], files: ['**/*.{ts,tsx}'],
...solid, ...solid,
ignores: ['turbo/generators/**'],
languageOptions: { languageOptions: {
parser: tsParser, parser: tsParser,
parserOptions: { parserOptions: {
project: 'tsconfig.json', project: 'tsconfig.json',
}, },
globals: {
window: true,
},
}, },
}, },
]; ];

View file

@ -5,7 +5,6 @@
"exports": { "exports": {
"./*": "./src/*.tsx" "./*": "./src/*.tsx"
}, },
"type": "module",
"scripts": { "scripts": {
"lint": "eslint . --max-warnings 0", "lint": "eslint . --max-warnings 0",
"generate:component": "turbo gen react-component", "generate:component": "turbo gen react-component",

View file

@ -8,13 +8,13 @@ interface ButtonProps {
appName: string; appName: string;
} }
export const Button = (props: ButtonProps) => { export const Button = ({ children, className, appName }: ButtonProps) => {
return ( return (
<button <button
class={props.className} class={className}
onClick={() => window.alert(`Hello from your ${props.appName} app!`)} onClick={() => alert(`Hello from your ${appName} app!`)}
> >
{props.children} {children}
</button> </button>
); );
}; };

View file

@ -1,6 +1,11 @@
import { type JSX } from 'solid-js/jsx-runtime'; import { type JSX } from 'solid-js/jsx-runtime';
export function Card(props: { export function Card({
className,
title,
children,
href,
}: {
className?: string; className?: string;
title: string; title: string;
children: JSX.Element; children: JSX.Element;
@ -8,15 +13,15 @@ export function Card(props: {
}): JSX.Element { }): JSX.Element {
return ( return (
<a <a
class={props.className} class={className}
href={`${props.href}?utm_source=create-turbo&utm_medium=basic&utm_campaign=create-turbo"`} href={`${href}?utm_source=create-turbo&utm_medium=basic&utm_campaign=create-turbo"`}
rel='noopener noreferrer' rel='noopener noreferrer'
target='_blank' target='_blank'
> >
<h2> <h2>
{props.title} <span>-&gt;</span> {title} <span>-&gt;</span>
</h2> </h2>
<p>{props.children}</p> <p>{children}</p>
</a> </a>
); );
} }

View file

@ -1,8 +1,11 @@
import { type JSX } from 'solid-js/jsx-runtime'; import { type JSX } from 'solid-js/jsx-runtime';
export function Code(props: { export function Code({
children,
className,
}: {
children: JSX.Element; children: JSX.Element;
className?: string; className?: string;
}): JSX.Element { }): JSX.Element {
return <code class={props.className}>{props.children}</code>; return <code class={className}>{children}</code>;
} }

View file

@ -3,6 +3,5 @@
"compilerOptions": { "compilerOptions": {
"outDir": "dist" "outDir": "dist"
}, },
"include": ["src"], "include": ["src"]
"exclude": ["turbo/generators"]
} }