0.0.10 • Published 5 years ago

spitball v0.0.10

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

spitball

A plucky little batteries-included compiler util. Built with Webpack.

Features

  1. glob & multi-entries
  2. modern JS
  3. modern CSS
  4. live-reload
  5. conventient CLI

Install

npm i spitball

Usage

spitball <command> [inputs...] --out <dir>

Config

To take advantage of multi-entries and a few other options, you'll need to define a config file.

// spitball.config.js
module.exports = {
  in: 'src/*.js', // string or object syntax
  out: 'dist',
  env: {
    apiKey: 'abcde'
  },
  alias: {
    components: 'src/components/'
  },
  banner: '/** Hello there */', // default undefined
  reload: true // live-reload, defaults to false
}

License

MIT License © The Couch