Micro Ts

screenshot of Micro Ts
bootstrap

A minimalist template to create packages with TypeScript and microbundle from @developit

Overview

This product is a pre-configured microbundle repository that provides various features for developing and publishing NPM packages. It includes eslint and prettier for code formatting, jest and ts-jest for testing, and a guide for publishing packages using the np package. The repository is based on the microbundle package and provides different file formats for targeting different environments.

Features

  • Pre-configured microbundle repository: The repository is already set up with microbundle, making it easy to build NPM packages.
  • Pre-configured eslint and prettier: eslint and prettier are included for code formatting and maintaining code quality.
  • Pre-configured jest and ts-jest: Jest and ts-jest are provided for unit testing and TypeScript support.

Publishing

While the package doesn't include a specific package for publishing, the recommendation is to use the np package. The np package provides a simple and straightforward method for publishing NPM packages. Use the following command to guide you through the publishing process:

np

Configuration

This repository is based on the microbundle package. For more information about the configuration, refer to the microbundle documentation. The package.json file in this repository contains various keys related to the microbundle configuration.

When building your project using microbundle, three different file formats are generated:

  • .umd.js: Universal Module Definition (UMD) file format that works in different module systems.
  • .module.js: ES module file format designed to work in modern browsers and build tools.
  • .cjs: CommonJS module file format used in Node.js and older JavaScript environments.

You can use these file formats to target different environments.

License

This product is licensed under MIT.

bootstrap
Bootstrap

Bootstrap is the most popular CSS Framework for developing responsive and mobile-first websites.

template
Templates & Themes

A template or theme refers to a pre-designed layout or structure that provides a basic framework for building a specific type of application or website. It typically includes good design, placeholder content and functional features, allowing developers to customize and fill in the details according to their specific needs.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.