Coder Social home page Coder Social logo

bun-starter's Introduction

WhizUs bun-starter

Bun Typescript starter template

use with bun create:

bun create WhizUs/bun-starter

Optionally specify a name for the destination folder. If no destination is specified, the repo name will be used.

bun create WhizUs/bun-starter my-bun-project

Features

  • pre-configured lint and editorconfig
    • biome
      • lint code
      • format code
  • pre-commit hook using husky
  • mise-en-place config
    • to get current version of bun automatically

Contribute

install dev runtimes

  • use rtx
    • if it doesn't auto install bun and serverless run rtx install
  • or install manually

install dependencies

  • run bun install

try out the functions locally

  • bun dev starts a local dev server in watch mode

tests

Write all your tests in the folder tests. There should be one testfile per ts file. A test file should be named like this: <filename>.test.ts. The folder structure should be as in src.

  • run all tests: bun test
  • run all test in watch mode: bun test-watch
  • run tests for a single test file: bun test <filename incl path>
  • run tests for a single test file in watch mode: bun test --watch <filename incl path>

commit

We use conventional commits for our commit messages.

before you commit make sure you run and check following:

  • bun lint - check code style (bun lint-fix to fix automatically)
  • bun ec - check editorconfig
  • bun test - check if your tests pass

sign your commits

Dependencies

Super fast javascript runtime.

TypeScript framework supercharged by Bun with End-to-End Type Safety, unified type system and outstanding developer experience

bun-starter's People

Contributors

wendevlin avatar

Stargazers

Fabian Topfstedt avatar  avatar Kevin avatar

Watchers

Dimitrij Klesev avatar  avatar jakuzure avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.