ez-build-lib
A command line tool to pack ES2015+ libraries
Last updated 3 years ago by dmonad .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ez-build-lib 
SYNC missed versions from official npm registry.

ez-build-lib

A command line tool to pack ES2015+ libraries.

ez-build-lib

  Usage: ez-build-lib [options] [command]


  Commands:

    init <entry>   Sets reasonable properties in the package.json, .gitignore, and bower.json files (optional)
    build <entry>  Builds your project
    build:watch    Builds the project whenever a file changes
    publish <dir>  Publish the project including distribution files:
                   Build > version bump > commit > create git tag > publish to npm
    *

  A command line tool to pack ES2015+ libraries

  Options:

    -h, --help     output usage information
    -V, --version  output the version number


  Example:

    $ ez-build-lib init ./src/test.js

    Updated package.json:

    ..
      "main": "./dist/test.cjs.js",
      "jsnext:main": "./dist/test.mjs",
      "browser": "./dist/test.umd.js",
      "scripts": {
        "lint": "standard",
        "build": "ez-build-lib build src/test.js",
        "build:watch": "ez-build-lib watch src/test.js",
        "publish": "npm run lint && npm run build && ez-build-lib publish ."
        ..
      }
    ..

    Updated bower.json:

    ..
      "main": "./dist/test.umd.js"
    ..

    Updated .gitignore

    ..
      ./dist/
    ..

    It is encouraged to use `npm run <cmd>` from now on:

    $ npm run build
    $ npm run build:watch % for development

Current Tags

  • 1.0.0-alpha.0                                ...           latest (3 years ago)

1 Versions

  • 1.0.0-alpha.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 3
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |