diff options
author | Chris Rebert <code@rebertia.com> | 2015-02-05 08:03:10 +0300 |
---|---|---|
committer | Chris Rebert <code@rebertia.com> | 2015-02-05 08:03:10 +0300 |
commit | 9cceebc981f7aaae96ad0a1033e948c0dc9b27ab (patch) | |
tree | 50b36ae28d54c888672542bd930c4e0c228dc2e4 | |
parent | b527c5bdb2033c42eaeef36ddd0bd03c0ca655de (diff) |
rename & move package: cvrebert/mq4-hover-hover-shim => twbs/mq4-hover-shimv0.1.0
-rw-r--r-- | CONTRIBUTING.md | 2 | ||||
-rw-r--r-- | Gruntfile.js | 6 | ||||
-rw-r--r-- | README.md | 32 | ||||
-rw-r--r-- | dist/browser/mq4-hover-shim.js (renamed from dist/browser/mq4-hover-hover-shim.js) | 8 | ||||
-rw-r--r-- | dist/cjs/mq4-hover-shim.js (renamed from dist/cjs/mq4-hover-hover-shim.js) | 0 | ||||
-rw-r--r-- | package.json | 12 | ||||
-rw-r--r-- | src/browser/mq4-hover-shim.js (renamed from src/browser/mq4-hover-hover-shim.js) | 0 | ||||
-rw-r--r-- | src/nodejs/index.js | 2 | ||||
-rw-r--r-- | src/nodejs/postprocessor.js | 4 |
9 files changed, 33 insertions, 33 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9e3d67c..a89ba5d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -30,4 +30,4 @@ Assuming that you don't see any red, you're ready to go. Just be sure to run `gr 6. Push to your fork and submit a pull request. ## Licensing -By contributing your code, you agree to license your contribution under [the MIT License](https://github.com/cvrebert/mq4-hover-hover-shim/blob/master/LICENSE.txt). +By contributing your code, you agree to license your contribution under [the MIT License](https://github.com/twbs/mq4-hover-shim/blob/master/LICENSE.txt). diff --git a/Gruntfile.js b/Gruntfile.js index 9d70e33..95f4c88 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -11,10 +11,10 @@ module.exports = function (grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), banner: ( - "/*!\n * mq4-hover-hover-shim v<%= pkg.version %>\n" + + "/*!\n * mq4-hover-shim v<%= pkg.version %>\n" + " * <%= pkg.homepage %>\n" + " * Copyright (c) 2014-2015 Christopher Rebert\n" + - " * Licensed under the MIT License (https://github.com/cvrebert/mq4-hover-hover-shim/blob/master/LICENSE).\n" + + " * Licensed under the MIT License (https://github.com/twbs/mq4-hover-shim/blob/master/LICENSE).\n" + " */\n" ), @@ -61,7 +61,7 @@ module.exports = function (grunt) { src: '<%= jshint.gruntfile.src %>' }, lib: { - src: ['src/**/*.js', '!src/browser/mq4-hover-hover-shim.js'] + src: ['src/**/*.js', '!src/browser/mq4-hover-shim.js'] }, test: { src: '<%= jshint.test.src %>' @@ -1,8 +1,8 @@ -# mq4-hover-hover-shim -[![NPM version](https://badge.fury.io/js/mq4-hover-hover-shim.svg)](http://badge.fury.io/js/mq4-hover-hover-shim) -[![Build Status](https://img.shields.io/travis/cvrebert/mq4-hover-hover-shim/master.svg)](https://travis-ci.org/cvrebert/mq4-hover-hover-shim) -[![Dependency Status](https://david-dm.org/cvrebert/mq4-hover-hover-shim.svg)](https://david-dm.org/cvrebert/mq4-hover-hover-shim) -[![devDependency Status](https://david-dm.org/cvrebert/mq4-hover-hover-shim/dev-status.svg)](https://david-dm.org/cvrebert/mq4-hover-hover-shim#info=devDependencies) +# mq4-hover-shim +[![NPM version](https://badge.fury.io/js/mq4-hover-shim.svg)](http://badge.fury.io/js/mq4-hover-shim) +[![Build Status](https://img.shields.io/travis/twbs/mq4-hover-shim/master.svg)](https://travis-ci.org/twbs/mq4-hover-shim) +[![Dependency Status](https://david-dm.org/twbs/mq4-hover-shim.svg)](https://david-dm.org/twbs/mq4-hover-shim) +[![devDependency Status](https://david-dm.org/twbs/mq4-hover-shim/dev-status.svg)](https://david-dm.org/twbs/mq4-hover-shim#info=devDependencies) A shim for the [Media Queries Level 4 `hover` @media feature](http://drafts.csswg.org/mediaqueries/#hover). @@ -40,8 +40,8 @@ Obviously, this requires JavaScript to be enabled in the browser, and would defa ## Installation -* Via npm: `npm install mq4-hover-hover-shim` -* Via jspm: `jspm install mq4-hover-hover-shim` +* Via npm: `npm install mq4-hover-shim` +* Via jspm: `jspm install mq4-hover-shim` ## Client-side dependencies @@ -54,10 +54,10 @@ The browser-side portion of the shim depends on jQuery for firing events. The following is a summary of the results of testing the library in various browsers. [Try out the Live Testcase](http://jsbin.com/xekahi/1). Legend: -* True positive - Browser supports real hovering, and mq4-hover-hover-shim reports that it supports real hovering -* True negative - Browser does NOT support real hovering, and mq4-hover-hover-shim reports that it does NOT support real hovering -* False negative - Browser supports real hovering, and mq4-hover-hover-shim reports that it does NOT support real hovering -* False positive - Browser does NOT supports real hovering, and mq4-hover-hover-shim reports that it supports real hovering +* True positive - Browser supports real hovering, and mq4-hover-shim reports that it supports real hovering +* True negative - Browser does NOT support real hovering, and mq4-hover-shim reports that it does NOT support real hovering +* False negative - Browser supports real hovering, and mq4-hover-shim reports that it does NOT support real hovering +* False positive - Browser does NOT supports real hovering, and mq4-hover-shim reports that it supports real hovering * ??? - This case has yet to be tested. * Desktop - has a pointing device that supports true hovering (e.g. mouse, trackball, trackpad, joystick, http://xkcd.com/243/); lacks a touch-based pointing input device * [Laplet](http://en.wikipedia.org/wiki/Laplet) - has both a pointing device that supports true hovering and a touch-based pointing input device @@ -115,9 +115,9 @@ The npm module has the following properties: ### Browser-side feature detector The browser-side feature detector is available in the following module formats: -* [ECMAScript 6](https://github.com/lukehoban/es6features#modules): [`/src/browser/mq4-hover-hover-shim.js`](https://github.com/cvrebert/mq4-hover-hover-shim/blob/master/src/browser/mq4-hover-hover-shim.js) -* Raw [CommonJS](http://wiki.commonjs.org/wiki/Modules/1.1): [`/dist/cjs/mq4-hover-hover-shim.js`](https://github.com/cvrebert/mq4-hover-hover-shim/blob/master/dist/cjs/mq4-hover-hover-shim.js) -* [UMD (Universal Module Definition)](https://github.com/umdjs/umd) with global fallback: [`/dist/browser/mq4-hover-hover-shim.js`](https://github.com/cvrebert/mq4-hover-hover-shim/blob/master/dist/browser/mq4-hover-hover-shim.js) +* [ECMAScript 6](https://github.com/lukehoban/es6features#modules): [`/src/browser/mq4-hover-shim.js`](https://github.com/twbs/mq4-hover-shim/blob/master/src/browser/mq4-hover-shim.js) +* Raw [CommonJS](http://wiki.commonjs.org/wiki/Modules/1.1): [`/dist/cjs/mq4-hover-shim.js`](https://github.com/twbs/mq4-hover-shim/blob/master/dist/cjs/mq4-hover-shim.js) +* [UMD (Universal Module Definition)](https://github.com/umdjs/umd) with global fallback: [`/dist/browser/mq4-hover-shim.js`](https://github.com/twbs/mq4-hover-shim/blob/master/dist/browser/mq4-hover-shim.js) * When this is used in a non-AMD non-CommonJS context, the module will be exported as a `mq4HoverShim` property on the global `window` object. The module exports one public function: @@ -141,7 +141,7 @@ The module has one public event: * Value: Same as `supportsTrueHover()`'s return value at the time of firing the event ## Grunt -Use [grunt-postcss](https://github.com/nDmitry/grunt-postcss) to invoke the mq4-hover-hover-shim CSS postprocessor via [Grunt](http://gruntjs.com/) task. +Use [grunt-postcss](https://github.com/nDmitry/grunt-postcss) to invoke the mq4-hover-shim CSS postprocessor via [Grunt](http://gruntjs.com/) task. ## Contributing The project's coding style is laid out in the JSHint, ESLint, and JSCS configurations. Add unit tests when changing the CSS postprocessor. Lint and test your code using [Grunt](http://gruntjs.com/). Manually test any changes to the browser-side portion of the shim. @@ -149,7 +149,7 @@ The project's coding style is laid out in the JSHint, ESLint, and JSCS configura _Also, please don't edit files in the `dist` subdirectory as they are generated via Grunt. You'll find source code in the `src` subdirectory!_ ## Release History -See the [GitHub Releases page](https://github.com/cvrebert/mq4-hover-hover-shim/releases) for detailed changelogs. +See the [GitHub Releases page](https://github.com/twbs/mq4-hover-shim/releases) for detailed changelogs. * (next release) - `master` * 2015-01-18 - v0.0.4: Fix crash when CSS contains a media-type-only media query. Replaced `postprocessor` with `postprocessorFor()`. * 2015-01-14 - v0.0.3: Add jspm metadata. Improve docs. diff --git a/dist/browser/mq4-hover-hover-shim.js b/dist/browser/mq4-hover-shim.js index 871b7f7..b88d1fd 100644 --- a/dist/browser/mq4-hover-hover-shim.js +++ b/dist/browser/mq4-hover-shim.js @@ -1,8 +1,8 @@ /*! - * mq4-hover-hover-shim v0.0.4 - * https://github.com/cvrebert/mq4-hover-hover-shim - * Copyright (c) 2014 Christopher Rebert - * Licensed under the MIT License (https://github.com/cvrebert/mq4-hover-hover-shim/blob/master/LICENSE). + * mq4-hover-shim v0.1.0 + * https://github.com/twbs/mq4-hover-shim + * Copyright (c) 2014-2015 Christopher Rebert + * Licensed under the MIT License (https://github.com/twbs/mq4-hover-shim/blob/master/LICENSE). */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.mq4HoverShim=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ diff --git a/dist/cjs/mq4-hover-hover-shim.js b/dist/cjs/mq4-hover-shim.js index 4ea9bfe..4ea9bfe 100644 --- a/dist/cjs/mq4-hover-hover-shim.js +++ b/dist/cjs/mq4-hover-shim.js diff --git a/package.json b/package.json index 55ae2e9..dfd91d6 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,13 @@ { - "name": "mq4-hover-hover-shim", - "version": "0.0.4", + "name": "mq4-hover-shim", + "version": "0.1.0", "description": "A shim for the Media Queries Level 4 `hover` @media feature", "scripts": { "test": "grunt test" }, "repository": { "type": "git", - "url": "https://github.com/cvrebert/mq4-hover-hover-shim.git" + "url": "https://github.com/twbs/mq4-hover-shim.git" }, "keywords": [ "media", @@ -28,9 +28,9 @@ }, "license": "MIT", "bugs": { - "url": "https://github.com/cvrebert/mq4-hover-hover-shim/issues" + "url": "https://github.com/twbs/mq4-hover-shim/issues" }, - "homepage": "https://github.com/cvrebert/mq4-hover-hover-shim", + "homepage": "https://github.com/twbs/mq4-hover-shim", "dependencies": { "css-mediaquery": "^0.1.2", "postcss": "^4.0.0" @@ -57,6 +57,6 @@ "dependencies": { "jquery": ">=1.11.2" }, - "main": "dist/cjs/mq4-hover-hover-shim" + "main": "dist/cjs/mq4-hover-shim" } } diff --git a/src/browser/mq4-hover-hover-shim.js b/src/browser/mq4-hover-shim.js index 91c5525..91c5525 100644 --- a/src/browser/mq4-hover-hover-shim.js +++ b/src/browser/mq4-hover-shim.js diff --git a/src/nodejs/index.js b/src/nodejs/index.js index 7bfa81f..bdb02e6 100644 --- a/src/nodejs/index.js +++ b/src/nodejs/index.js @@ -2,7 +2,7 @@ 'use strict'; var path = require('path'); -var CLIENT_SIDE_FEATURE_DETECTOR_FILENAME = 'mq4-hover-hover-shim.js'; +var CLIENT_SIDE_FEATURE_DETECTOR_FILENAME = 'mq4-hover-shim.js'; module.exports = { diff --git a/src/nodejs/postprocessor.js b/src/nodejs/postprocessor.js index 206bffc..b10d47f 100644 --- a/src/nodejs/postprocessor.js +++ b/src/nodejs/postprocessor.js @@ -1,9 +1,9 @@ /*eslint-env node */ /*! * Postprocessor for shimming @media (hover: hover) from Media Queries Level 4 - * https://github.com/cvrebert/mq4-hover-hover-shim + * https://github.com/twbs/mq4-hover-shim * Copyright 2014-2015 Christopher Rebert - * Licensed under MIT (https://github.com/cvrebert/mq4-hover-hover-shim/blob/master/LICENSE.txt) + * Licensed under MIT (https://github.com/twbs/mq4-hover-shim/blob/master/LICENSE.txt) */ 'use strict'; |