npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

kiki-bundler

v1.9.3

Published

Batteries included frontend asset bundler

Downloads

24

Readme

Build Status

Kiki Bundler

Kiki-Bundler is an opiniated frontend bundler, providing a great out-of-the-box bundling experience with minimal configuration need.

At work we got frustrated with slow watch-tasks, when tools don't support incremental building (except for rollup, which is awesome!). Having recently inherited a huge legacy project with a lot of different root scss files, we needed something faster. The existing code used grunt which took up to 10s to compile.

These simple benchmarks were taken on my Macbook Pro 13" 2016.

| Tool | Compiler | Complete Build | incremental Build | |------|----------|----------------|-------------------| | grunt-contrib-sass | Ruby-Sass | 10s | 10s | | grunt-sass | Libsass | 2.1s | 1.8s | | kiki + autoprefixer | Libsass | 1.8s | 150 - 300ms |

So yeah, kiki is a LOT faster even with autoprefixer included.

Currently only sass compilation is supported, but support for javascript via rollup or webpack is planned.

Usage

npm install --save-dev kiki-bundler

Add a config called kiki.config.json at the project root:

{
  "sass": {
    "src": "path/to/my/scss",
    "dest": "path/for/compiled/output"
  }
}

Add kiki to your npm scripts in your package.json:

{
  "scripts": {
    "build": "kiki build",
    "watch": "kiki watch"
  }
}

Configuration Options

Sass

| Option | type | default | Description | |---|---|---|---| | src | string | null | Path to scss root directory | | dest | string | null | Path to output directory | | addVendorPrefixes | boolean | true | automatic vendor prefix insertion via autoprefixer | | cssnext | boolean | false | use tomorrows css features today |

CLI-Arguments

Usage: kiki <command> [options]

Commands:
  watch  Watch for file changes and compile immediately
  build  Build minified production files

Options:
  -c, --config   Path to config file      [string] [default: "kiki.config.json"]
  --production   Force production builds
  -v, --version  Show version number                                   [boolean]
  -h, --help     Show help                                             [boolean]

Examples:
  kiki build -c myconfig.json

Copyright 2016 Marvin Hagemeister

Why the name?

At work we have quite a football table culture (which is called Kicker in German) and some of us even play in the german football table league. It only made sense to name the tools we use daily accordingly.