Fruit screenshot

Fruit

Author Avatar Theme by Jaebradley
Updated: 5 Aug 2020
58 Stars

Automatically generate your rollup.js boilerplate

Overview

The article discusses the fruit library, which aims to generate rollup library boilerplate. It provides a simplified way to configure a baseline rollup library, allowing users to start building their library right away. The article also compares rollup and webpack, stating that rollup is preferred for building libraries while webpack is better for building applications.

Features

  • Generates rollup library boilerplate
  • Provides preferred configuration options
  • Supports both Node and React libraries
  • Includes eslint configuration from Airbnb’s eslint config
  • Uses Babel 7 for transpiling
  • Includes Jest for testing
  • Sets up Travis CI for building, linting, and testing
  • Supports commitlint for enforcing commit message conventions
  • Supports semantic-release for automated package deployment

Installation

To install the fruit library, execute fruit via the command line. This will install the necessary dependencies and generate a basic bundle with placeholder library exports.

Summary

The fruit library simplifies the process of setting up a rollup library by providing preconfigured boilerplate code. It supports both Node and React libraries and includes various features such as eslint configuration, Babel transpiling, Jest testing, Travis CI integration, commit message linting, and semantic-release for automated package deployment. With fruit, developers can quickly start building their libraries with minimal configuration.