ab-package

0.0.3 • Public • Published

ABPackage

Node package that simplifies creating and updating simple npm and bower packages.

Usage

Initialization

  1. Add ab-package as dependency.

npm install --save-dev ab-package

  1. Create ab-pkg.js file containing config, package info and that executes ab-package script:
'use strict';

const abPackage = require('ab-package');


abPackage.exec({
    /* Which repositories are used and their package names. */
    config: {
        git: 'node_ab-package_test',
        npm: 'ab-package_test',
        bower: 'ab-package_test',
    },
    /* Basic, common package info. */
    package: {
        name: 'ab-package_test',
        description: 'Test package for `ab-package` package (a lot of `package` in ' +
                'this description... package).',
        author: 'Jakub Zolcik (AllBlue)',
        gitUrl: 'https://github.com/allblue-pl-dev/dev_node_ab-package/',
        keywords: [],

        /* Specific repository overrides. */
        npm: {
            main: 'index.js',
        },
        bower: {
            ignore: [ '*', '!dist/', '!dist/*' ],
        }
    }
});

  1. Run init command with version info.

node ab-pkg init 0.0.1

Readme

Keywords

none

Package Sidebar

Install

npm i ab-package

Weekly Downloads

4

Version

0.0.3

License

none

Unpacked Size

16.5 kB

Total Files

12

Last publish

Collaborators

  • sftd