erkobridee / astro-ts-tw-hello

Astro Build using TypeScript plus TailwindCSS

Home Page:https://erkobridee.github.io/astro-ts-tw-hello/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

astro-ts-tw-hello

Astro Build using TypeScript plus TailwindCSS

Local Development

import path alias

It's commonly used the pattern @* -> src/*, but this approach annoys me due to the current npm package namespaces ( scopes | npm docs ) which normally starts with @{user_name/org_name}.

So to avoid that I tested the pattern ~/* -> src/*, inspired on Unix OS, but those 2 caracteres for a lazy person like me it's too much.

So later on, I saw some cases where it's been using the pattern #* -> src/* ( tsconfig.json ) which avoid the issue from @.

Astro

Editor Setup

Test it online

Open in StackBlitz Open in GitHub Codespaces

Setup a new project using this repository

You can use the Use this template button

degit

npx degit erkobridee/astro-ts-tw-hello {project_name}

create a new project based on a GitHub repository’s main branch

npm create astro@latest -- --template erkobridee/astro-ts-tw-hello

About

Astro Build using TypeScript plus TailwindCSS

https://erkobridee.github.io/astro-ts-tw-hello/


Languages

Language:Astro 70.3%Language:JavaScript 18.2%Language:TypeScript 7.9%Language:MDX 3.6%