Socket
Socket
Sign inDemoInstall

kraken-devtools

Package Overview
Dependencies
28
Maintainers
4
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    kraken-devtools

A development mode toolkit for kraken


Version published
Weekly downloads
3.4K
increased by65.03%
Maintainers
4
Install size
631 kB
Created
Weekly downloads
 

Readme

Source

kraken-devtools

Lead Maintainer: Matt Edelmann

Build Status
NPM version

Compile-on-the-fly and other development tools for use when building express applications.

Dependency considerations

Without a great system for supporting optional peer dependencies, here are some minimum versions for using plugins shipped with kraken-devtools:

  1. node-sass@^1.0.0

Middleware compiler

The middleware compiler builds your dependencies as they are requested, allowing you to run your express application as-is and not have to set up a watch task.

Usage

var app = require('express')(),
    devtools = require('kraken-devtools');

app.use(devtools(/* src, dest [, config] */));

Parameters

src - The directory of your source files
dest - The destination directory for the compiled files
config - Optional. An object of compilers to enable

Configuration

less, sass, stylus, dustjs, and a static copier plugin are available to use. To enable, set the module and files properties in your config, e.g.:

{
    "less": {
        "module": "kraken-devtools/plugins/less",
        "files": "/css/**/*.css",
        "ext": "less"
    }
}

To add additional compilers, create a module with the following format and add it to your configuration:

module.exports = function (options) {
    return function (data, args, callback) {
        // Compile the data
    };
};

kraken-devtools-browserify

Thanks to iantocristian we now have browserify support for kraken-devtools

Keywords

FAQs

Last updated on 10 Aug 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc