Skip to content

erkobridee/astro-ts-tw-hello

Repository files navigation

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