Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
RobLoach committed Mar 31, 2013
1 parent 66655d5 commit c470050
Show file tree
Hide file tree
Showing 7 changed files with 1,543 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
vendor
build
node_modules
components
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* Modernizr 3.0.0pre (Custom Build) | MIT & BSD */
61 changes: 58 additions & 3 deletions README.md
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
16 changes: 16 additions & 0 deletions component.json
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"
]
}
39 changes: 39 additions & 0 deletions composer.json
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"
}
}
}
}
Loading

0 comments on commit c470050

Please sign in to comment.