-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
1,543 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
vendor | ||
build | ||
node_modules | ||
components |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* Modernizr 3.0.0pre (Custom Build) | MIT & BSD */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,59 @@ | ||
modernizr | ||
========= | ||
# Modernizr [![Build Status](https://secure.travis-ci.org/Modernizr/Modernizr.png?branch=master)](http://travis-ci.org/Modernizr/Modernizr) | ||
|
||
Shim repository for Modernizr. | ||
##### Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser. | ||
|
||
- [Website](http://www.modernizr.com) | ||
- [Documentation](http://www.modernizr.com/docs/) | ||
|
||
Modernizr tests which native CSS3 and HTML5 features are available in the current UA and makes the results available to you in two ways: as properties on a global `Modernizr` object, and as classes on the `<html>` element. This information allows you to progressively enhance your pages with a granular level of control over the experience. | ||
|
||
Modernizr has an optional (*not included*) conditional resource loader called `Modernizr.load()`, based on [Yepnope.js](http://yepnopejs.com). You can get a build that includes `Modernizr.load()`, as well as choosing which feature tests to include on the [Download page](http://www.modernizr.com/download/). | ||
|
||
|
||
## Test suite | ||
|
||
Run the [test suite](http://modernizr.github.com/Modernizr/test/) | ||
|
||
|
||
## Building Modernizr v3 | ||
|
||
### To generate everything in 'config-all.json': | ||
|
||
```js | ||
grunt build | ||
//outputs to ./dist/modernizr-build.js | ||
``` | ||
|
||
### To run tests (in phantom): | ||
|
||
```js | ||
grunt qunit | ||
``` | ||
|
||
### To run tests (in browser): | ||
|
||
```shell | ||
grunt build | ||
serve . | ||
visit <url>/tests | ||
``` | ||
|
||
### To see simple build in browser: | ||
|
||
serve the root dir, `<url>/test/modular.html` | ||
|
||
|
||
### To see the build tool: | ||
|
||
|
||
* checkout the modernizr.com code | ||
* install all your gems and bundles and jekyll and shit | ||
* `jekyll` | ||
* `serve ./_sites` | ||
* visit <url>/download | ||
* It should be just a big list of things you can build with no frills. | ||
|
||
|
||
## License | ||
|
||
MIT license |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "modernizr", | ||
"version": "2.6.2", | ||
"description": "Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user's browser.", | ||
"homepage": "http://modernizr.com/", | ||
"keywords": [ | ||
"html5", | ||
"css3", | ||
"browser", | ||
"feature detection" | ||
], | ||
"author": "Modernizr <http://modernizr.com>", | ||
"scripts": [ | ||
"modernizr.js" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"name": "components/modernizr", | ||
"description": "Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user's browser.", | ||
"keywords": [ | ||
"html5", | ||
"css3", | ||
"browser", | ||
"feature detection" | ||
], | ||
"type": "component", | ||
"homepage": "http://modernizr.com", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Modernizr", | ||
"homepage": "http://modernizr.com" | ||
}, | ||
{ "name": "Faruk Ates" }, | ||
{ "name": "Paul Irish" }, | ||
{ "name": "Alex Sexton" }, | ||
{ "name": "Ryan Seddon" }, | ||
{ "name": "Alexander Farkas" }, | ||
{ "name": "Ben Alman" }, | ||
{ "name": "Stu Cox" } | ||
], | ||
"require": { | ||
"robloach/component-installer": "*" | ||
}, | ||
"extra": { | ||
"component": { | ||
"scripts": [ | ||
"modernizr.js" | ||
], | ||
"shim": { | ||
"exports": "window.Modernizr" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.