Giter Site home page Giter Site logo

ji394snoopy / typescript-module-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexgorbatchev/typescript-module-boilerplate

0.0 0.0 0.0 223 KB

This is a boilerplate for a TypeScript NPM module.

TypeScript 10.67% JavaScript 85.69% Shell 3.63%

typescript-module-boilerplate's Introduction

typescript-module-boilerplate

This is a boilerplate module for a project that uses TypeScript as its main language. To use this boilerplate, clone, delete .git folder and begin your own. Maybe delete a few other extra files as necessary.

Stack Description

  • TypeScript
  • Jest
  • Prettier
  • ESLint

Usage

$ git clone https://github.com/alexgorbatchev/typescript-module-boilerplate.git
$ cd typescript-module-boilerplate
$ rm -fr .git
$ yarn
$ yarn test

Features

  • Linting via ESLint.
    • Run manually via yarn lint.
    • Integrates with Visual Studio Code via vscode-eslint.
      • Highlights type & linting issues.
      • Provides debuging options for running Jest tests (once and in watch mode).
    • Uses AirBNB ESLint plugin as sane defaults.
    • import ... from ... statements are verified for correctness via eslint-plugin-import.
  • Formatting via Prettier.
    • Run manually via yarn format.
    • Integrates well with Visual Studio Code via prettier-vscode.
      • Automatically formats on save.

Script Commands

  • yarn test -- Runs tests.
  • yarn typecheck -- Checks TypeScript types for correctness. This is disabled during tests for performance reasons.
  • yarn lint -- Runs linting.
  • yarn format -- Reformats all of the .ts and .tsx files with Prettier.
  • yarn build -- Regenerates dist folder that gets included into NPM module.

License

MIT

typescript-module-boilerplate's People

Contributors

alexgorbatchev avatar greenkeeper[bot] 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.