Skip to content

romanzy313/modern-ts-lib-starter

Repository files navigation

Getting started

clone the repo and detach from

git clone https://github.com/romanzy-1612/modern-ts-lib-starter.git PROJECTNAME
cd PROJECTNAME
rm -rf ./.git

customize this template

node init-template.js

install dependencies and run tests

pnpm install
pnpm test

Whats included

  • Vite/tsc bundling
  • Vitest unit testing
  • Playwright e2e testing
  • Minimal eslint and prettier configuration
  • Easy templating for customized npm publishable repo
  • Working ? github actions for testing

Create another example

Create new vite project and install your library

pnpm create vite example2
cd example2
pnpm install placeholder-lib-name

Use your library as folloing:

import { DummyClass } from 'placeholder-lib-name/src';
console.log(DummyClass);

TODOS

[] Cache playwright deps (https://playwrightsolutions.com/playwright-github-action-to-cache-the-browser-binaries/)

delete above here to start writing your README

placeholder-lib-name

<>

Features

Installation

npm

npm install placeholder-lib-name

yarn

yarn add placeholder-lib-name

pnpm

pnpm install placeholder-lib-name

Usage

Examples

See more examples here

About

Modern template for starting typescript project

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published