Wondering what’s next for npm?Check out our public roadmap! »

    static-strata
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.1 • Public • Published

    static-strata

    Build Status

    CLI to scaffold a TypeScript project with Husky, Prettier, Commitlint and TSLint.

    Getting Started

    yarn add -D static-strata

    Running the following command will set up configuration for Husky hooks, Prettier, Commitlint and TSLint.

    yarn strata

    Example Project

    Motivation

    This project is inspired by Kent C. Dodd's seminal "Write Tests. Not too many. Mostly integration.", where he extols the benefits of using a static type system and tooling.

    While a static type system and tooling will not substitute a comprehensive test suite, they can alleviate the burden of writing superfluous runtime checks, boosting performance and developer productivity.

    Static Type System

    The static type system is implemented using TypeScript.

    Tooling

    Static tooling contains a mix of linting, code formatting and enforcing semantic commit messages. These tools are run in an automated fashion using git hooks.

    Linting

    TSLint is the most popular TypeScript linting tool.

    Code Formatting

    Prettier is used to format code (all types of files) in an opinionated way.

    Semantic Commit Messages

    Commitlint is a library that validates commit messages to ensure they follow semantic commit messages.

    Git Hooks

    Husky is a library to ease the application of git hooks.

    Changelog

    License

    MIT

    Keywords

    none

    Install

    npm i static-strata

    DownloadsWeekly Downloads

    4

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    7.66 kB

    Total Files

    9

    Last publish

    Collaborators

    • avatar