@backtrack/preset-node-module

backtrack preset to bootstrap a node module

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Feb 17, 2019May 9, 2018Minified + gzip package size for @backtrack/preset-node-module in KB

Readme

This module has been deprecated. Please use chrisblossom/backtrack-preset-node instead.

@backtrack/preset-node-module

npm Linux Build Status Windows Build Status Code Coverage

About

backtrack preset that sets up a node module.

Features

Installation

npm install --save-dev @backtrack/preset-node-module

Usage

// backtrack.config.js

'use strict';

module.exports = {
    presets: ['@backtrack/node-module'],
};

Options

'use strict';

module.exports = {
    presets: [
        [
            '@backtrack/node-module',
            {
                /**
                 * Enable Babel using @babel/preset-env
                 *
                 * default: false
                 */
                babel: true,

                /**
                 * Enable Typescript
                 * Additional requirement: npm install --save-dev typescript
                 *
                 * default: false
                 */
                typescript: true,

                /**
                 * Enable flow
                 * Additional requirement: npm install --save-dev flow-bin
                 *
                 * default: false
                 */
                flow: true,

                /**
                 * Use node >=8.9.0
                 *
                 * default: '>=6.9.0'
                 */
                nodeVersion: '>=8.9.0',

                /**
                 * Use npm >=5.0.0
                 *
                 * default: '>=3.10.10'
                 */
                npmVersion: '>=5.0.0',
            },
        ],
    ],
};

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.