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}.

Following a Unix OS approach, that beens said so we have the following alias mapping ~/* -> 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