Miss any of our Open RFC calls?Watch the recordings here! »

@yepyep/compiler

0.0.2 • Public • Published

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

Keywords

none

Install

npm i @yepyep/compiler

DownloadsWeekly Downloads

3

Version

0.0.2

License

MIT

Unpacked Size

14 kB

Total Files

11

Last publish

Collaborators

  • avatar