cili

Delightful library bundler.

Usage no npm install needed!

<script type="module">
  import cili from 'https://cdn.skypack.dev/cili';
</script>

README

logo

NPM version NPM downloads CircleCI codecov donate chat

Features

  • ๐Ÿš€ Fast, zero-config by default.
  • ๐Ÿ“ฆ Using Rollup under the hood.
  • ๐Ÿš— Automatically transforms JS files using Buble/Babel.
  • ๐Ÿ’… Built-in support for CSS Sass Stylus Less CSS modules.
  • ๐ŸŽถ Ridiculously easy to use Rollup plugins if you want.
  • ๐Ÿšจ Friendly error logging experience.
preview

In umd format it inlines node modules (could be turned off) so it takes a bit longer.

Install

๐Ÿ˜‡ Migrating from v1 to v2? Check out release note.
๐Ÿ˜‡ Migrating from v2 to v3? Check out release note.

# Globally
yarn global add bili
# Locally
yarn add bili --dev

If you prefer npm:

# Globally
npm i -g bili
# Locally
npm i -D bili

Usage

Bundle src/index.js with a single command:

bili

Then you will get ./dist/index.cjs.js. To generate in more formats, try:

bili --format cjs,es,umd,umd-min

Then you will get:

index.js            # UMD format
index.min.js        # Minified UMD format
index.min.js.map    # Sourcemaps for minified UMD format
index.cjs.js        # CommonJS format
index.es.js         # ES module format

Dive into the documentation to see more neat features!

Here're some quick links:

Bundled by Bili

  • cac - Simple yet powerful framework for building command-line interface.
  • vue-final-form - ๐Ÿ High performance subscription-based form state management for Vue.js.
  • babel-preset-vue - Babel preset for transforming Vue JSX.
  • uncouple - A simple lib to uncouple prototype methods.
  • cullender - A simple and composable way to filter data.
  • vuex-handler - A vuex plugin to globally handle actions successes and failures.
  • gulp-html-accents - A gulp plugin that parse accents and special characters to HTMLEntities.
  • vue-data-tablee - A pretty simple Vue DataTable component with some features like sort and select rows.
  • vue-uuid - Vue plugin to add UUID methods to Vue instance.
  • vue-gh-corners - :octocat: GitHub Corners for Vue.
  • alphaX - :fire: Fueling your scaffolding.
  • vuejs-storage - Vue.js and vuex plugin to persistence data with localStorage/sessionStorage.
  • w7 - :shamrock: Serves the pure htmls, updates the browser on changes.
  • consola - Elegant Console Logger
  • vue-slide-bar - ๐ŸŽข A simple Vue slider bar component.
  • vue-svg-filler - ๐ŸŽจ Vue component for customize svg file.
  • vue-lib-template - ๐Ÿ›  A simple template for building and publishing component/library to NPM (bundled by bili).
  • vue-highlight-text - Vue component for highlight multiple instances of a word.
  • vue-spinkit - A collection of loading indicators animated with CSS for VueJS
  • vue-chat-autosize-typebox - Vue component of typebox chat with autosize
  • vue-emoji-react - a clone of slack emoji reactions in VueJS
  • vue-infinite-slide-bar - โˆž Infinite slide bar component.
  • vuex-dry - Keep your vuex codes DRY
  • apitool - An organized way to work with your APIs
  • Feel free to submit yours

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

bili ยฉ EGOIST, Released under the MIT License.
Authored and maintained by EGOIST with help from contributors (list).

egoist.moe ยท GitHub @EGOIST ยท Twitter @_egoistlily