1.1.0 • Published 9 years ago

pliers-modernizr v1.1.0

Weekly downloads
63
License
ISC
Repository
github
Last release
9 years ago

pliers-modernizr

Use Pliers to build a modular Modernizr file using a custom config.

build status

Installation

npm install pliers-modernizr --save

Usage

Within a pliers.js file:

module.exports = function(pliers) {
  pliers('buildModernizr', require('pliers-modernizr')(pliers, 'path'))
}

Then from the CLI:

pliers buildModernizr

path should be the directory where a modernizr.js file will be built.

A modernizr.json should exist in the pliers current working directory. This should contain all the options required for building a custom Modernizr file. Alternatively, a path to a custom config file can be passed as a third argument.

Reference: https://github.com/Modernizr/Modernizr/blob/master/lib/config-all.json

Example:

{
  "classPrefix": "",
  "options": [
    "setClasses",
    "testProp"
  ],
  "feature-detects": [
    "css/mediaqueries",
    "svg"
  ]
}

Upgrading from 0.x.x to 1.x.x

Modernizr changed the format of their config feature-detects, so if upgrading an existing project you will likely need to match the new naming convention (for example, from test/css/mediaqueries to css/mediaqueries)

Licence

ISC

1.1.0

9 years ago

1.0.0

9 years ago

0.2.1

9 years ago

0.1.2

9 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago