Giter Site home page Giter Site logo

eyelidlessness / tsup Goto Github PK

View Code? Open in Web Editor NEW

This project forked from egoist/tsup

0.0 0.0 0.0 1.35 MB

The simplest and fastest way to bundle your TypeScript libraries.

Home Page: https://tsup.egoist.sh

License: MIT License

JavaScript 1.29% TypeScript 98.71%

tsup's Introduction

tsup

npm version npm downloads

Bundle your TypeScript library with no config, powered by esbuild.

๐Ÿ‘€ What can it bundle?

Anything that's supported by Node.js natively, namely .js, .json, .mjs. And TypeScript .ts, .tsx. CSS support is experimental.

โš™๏ธ Install

Install it locally in your project folder:

npm i tsup -D
# Or Yarn
yarn add tsup --dev

You can also install it globally but it's not recommended.

๐Ÿ“– Usage

Bundle files

tsup [...files]

Files are written into ./dist.

You can bundle multiple files in one go:

tsup src/index.ts src/cli.ts

This will output dist/index.js and dist/cli.js.

๐Ÿ“š Documentation

For complete usages, please dive into the docs.

For all configraution options, please see the API docs.

๐Ÿ’ฌ Discussions

Head over to the discussions to share your ideas.

Sponsors

sponsors

Project Stats

Alt

License

MIT ยฉ EGOIST

tsup's People

Contributors

antfu avatar chelestewang avatar consoletvs avatar dependabot-preview[bot] avatar dependabot[bot] avatar egoist avatar fengzilong avatar homyeeking avatar jacoblincool avatar jastor11 avatar jhutchings1 avatar kamilkisiela avatar pabloszx avatar pong420 avatar privatenumber avatar qianphong avatar reslear avatar sachinraja avatar screetbloom avatar skywalker512 avatar talljack avatar tmkx avatar wzhkobe2408 avatar zhmushan 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.