easymake-preset-default-library
easymake: default preset for make library
Last updated 3 years ago by madcode.tech .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install easymake-preset-default-library 
SYNC missed versions from official npm registry.

easymake-preset-default-library

default preset for easymake which helps to make library

documentation

You can find documentation here https://github.com/madcode-tech/easymake/wiki

preset uses:

  • coding
    • babel
      • es2015
      • es2016
      • react
      • stage-1
    • bluebird
  • linting
    • eslint
  • bundling
    • webpack
  • testing
    • karma
    • mocha
    • chai
    • sinon
    • phantomjs
    • karma-coverage

configuration in package.json:

{

  "name" - using package name as library name,

  "config" = {

    "easymake" = {

    "preset": "easymake-preset-default-library",

      "libraryTarget" - type of bundle, default 'commonjs2' (see libraryTarget ),

      "libraryBundle" - array, by default all Dependencies are externals, but if you want to bundle some dependency in your bundle - place here its name

  }

}

main tasks (preset contains additional sub-tasks):

  • create-folders
  • distributive
  • test-units

how to use:

  • easymake --run create-folders - create base folders in project directory
  • easymake --run distributive - start bundle with webpack in watch mode
  • easymake --run distributive --production - make bundle (no watch)
  • easymake --run test-units - run unit tests and generate code-coverage report

Current Tags

  • 1.0.4                                ...           latest (3 years ago)

4 Versions

  • 1.0.4                                ...           3 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 5
Last Day 0
Last Week 1
Last Month 0
Dependencies (33)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |