Skip to content

Commit 8e838c1

Browse files
committed
Merge pull request cmdjs#46 from pierrewrs/master
modernizr@2.7.1
2 parents 67193da + eddb23f commit 8e838c1

File tree

5 files changed

+107
-0
lines changed

5 files changed

+107
-0
lines changed

modernizr/.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
*.iml
2+
.idea/
3+
.ipr
4+
.iws
5+
*~
6+
~*
7+
*.diff
8+
*.patch
9+
*.bak
10+
.DS_Store
11+
Thumbs.db
12+
.project
13+
.*proj
14+
.svn/
15+
*.swp
16+
*.swo
17+
*.pyc
18+
*.pyo
19+
build
20+
node_modules
21+
_site
22+
sea-modules
23+
.cache

modernizr/.travis.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
language: node_js
2+
3+
node_js:
4+
- 0.10
5+
6+
install:
7+
- npm install mocha-browser nico
8+
9+
before_script:
10+
- git clone git://github.com/aralejs/nico-arale.git _theme
11+
- node_modules/.bin/nico build --theme _theme -C _theme/nico.js
12+
13+
script:
14+
- node_modules/.bin/mocha-browser _site/tests/runner.html -S
15+
16+
after_success:
17+
- npm install jscoverage coveralls
18+
- node_modules/.bin/jscoverage --encoding=utf8 src _site/src-cov
19+
- node_modules/.bin/mocha-browser _site/tests/runner.html?cov -S -R lcov | node_modules/.bin/coveralls

modernizr/Gruntfile.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
module.exports = function(grunt) {
2+
var pkg = grunt.file.readJSON('package.json');
3+
4+
grunt.initConfig({
5+
pkg: pkg,
6+
7+
download: {
8+
options: {
9+
dest: 'src',
10+
},
11+
src: {
12+
options: {
13+
transform: function(code) {
14+
code = 'define(function(require, exports, module) {\n' + code + '\n module.exports = window.Modernizr ;\n});\n';
15+
return code;
16+
}
17+
},
18+
url: 'https://raw.github.com/Modernizr/Modernizr/v<%= pkg.version %>/modernizr.js',
19+
name: 'modernizr.js'
20+
}
21+
}
22+
});
23+
24+
grunt.loadGlobalTasks('spm-build');
25+
grunt.util._.merge(grunt.config.data, require('spm-build').config);
26+
27+
grunt.loadTasks('../_tasks/download/tasks');
28+
grunt.registerTask('build', ['download', 'spm-build']);
29+
};

modernizr/package.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"family": "gallery",
3+
"name": "modernizr",
4+
"version": "2.7.1",
5+
"description": "Modernizr: the feature detection library for HTML5/CSS3.",
6+
"homepage": "https://github.com/Modernizr/Modernizr",
7+
"author": "Faruk Ates, Paul Irish, Alex Sexton",
8+
"maintainers": [
9+
"Faruk Ates, Paul Irish, Alex Sexton"
10+
],
11+
"repository": {
12+
"type": "git",
13+
"url": "git@github.com:Modernizr/Modernizr.git"
14+
},
15+
"bugs": {
16+
"url": "https://github.com/Modernizr/Modernizr/issues"
17+
},
18+
"keywords": [],
19+
"licenses": "MIT",
20+
"spm": {
21+
"output": [
22+
"modernizr.js"
23+
],
24+
"alias": {},
25+
"devAlias": {},
26+
"engines": {}
27+
}
28+
}

modernizr/spec.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
define(function(require) {
2+
var module = require('./dist/modernizr');
3+
describe('modernizr', function() {
4+
it('should has version', function() {
5+
expect(module.version).to.be.a('string');
6+
});
7+
});
8+
});

0 commit comments

Comments
 (0)