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:
- name: Checkout
uses: actions/checkout@v4
- name: Lint
run: npm run lint
- name: Check Types
run: npm run check-types
- name: Status
run: git status
- name: Host
run: cat /etc/hosts

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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