Fork Me

Depmap

Why compile more?

Reduce compile time by only compiling changes.

Installation

$ npm install -g @depmap/cli

Quickstart

Clone this repository, install pkgs, start depmap, and edit a file in src/

$ git clone git@github.com:depmap/depmap.github.io.git
$ cd depmap.github.io
$ npm install
$ depmap watch

Usage

Compile Once

$ depmap compile

Watch Continously

$ depmap watch

Configuration

Add language loaders, set your path & output, and start working

// config.js
const pug  = require('@depmap/pug-loader')
const styl = require('@depmap/stylus-loader')
const js   = require('@depmap/babel-loader')
const img  = require('@depmap/img-loader')

module.exports = {
  path: 'src/**/*',
  output: 'build',
  load: { pug, styl, js, img }
}