Permalink
Browse files

Setting up Travis for eCSSential for any further builds

  • Loading branch information...
1 parent d810cec commit fe431ef13a673f36434c05514afc5d03ca3a8645 @jefflembeck jefflembeck committed Oct 24, 2012
Showing with 105 additions and 86 deletions.
  1. +5 −0 .travis.yml
  2. +2 −0 README.md
  3. +56 −54 grunt.js
  4. +42 −32 package.json
View
5 .travis.yml
@@ -0,0 +1,5 @@
+language: node_js
+node_js:
+ - 0.6
+ - 0.8
+ - 0.9
View
2 README.md
@@ -1,6 +1,8 @@
# eCSSential
## Making responsive CSS load the way it should.
+[![Build Status](https://travis-ci.org/filamentgroup/eCSSential.png)](http://travis-ci.org/filamentgroup/eCSSential)
+
- [c]2012 @scottjehl, Filament Group, Inc.
- Licenses: MIT, GPLv2
View
110 grunt.js
@@ -1,62 +1,64 @@
/*global module:false*/
module.exports = function(grunt) {
- // Project configuration.
- grunt.initConfig({
- pkg: '<json:package.json>',
- meta: {
- banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
- '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
- '<%= pkg.homepage ? "* " + pkg.homepage + "\n" : "" %>' +
- '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
- ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %>;' +
+ // Project configuration.
+ grunt.initConfig({
+ pkg: '<json:package.json>',
+ meta: {
+ banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
+ '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
+ '<%= pkg.homepage ? "* " + pkg.homepage + "\n" : "" %>' +
+ '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
+ ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %>;' +
' Includes matchMedia.js: http://j.mp/jay3wJ (MIT) */'
- },
- concat: {
- dist: {
- src: ['<banner:meta.banner>', '<file_strip_banner:libs/matchMedia/matchMedia.js>', '<file_strip_banner:src/<%= pkg.name %>.js>'],
- dest: 'dist/<%= pkg.name %>.js'
- }
- },
- min: {
- dist: {
- src: ['<banner:meta.banner>', '<config:concat.dist.dest>'],
- dest: 'dist/<%= pkg.name %>.min.js'
- }
- },
- lint: {
- files: ['grunt.js', 'libs/matchMedia/*.js', 'src/**/*.js']
- },
- qunit: {
- files: ['test/unit/*.html']
- },
- watch: {
- files: ['<config:lint.files>', '<config:concat.dist.src>'],
- tasks: 'lint qunit concat min'
- },
- jshint: {
- options: {
- curly: true,
- eqeqeq: true,
- immed: true,
- latedef: true,
- newcap: true,
- noarg: true,
- sub: true,
- undef: true,
- boss: true,
- eqnull: true,
- browser: true,
+ },
+ concat: {
+ dist: {
+ src: ['<banner:meta.banner>', '<file_strip_banner:libs/matchMedia/matchMedia.js>', '<file_strip_banner:src/<%= pkg.name %>.js>'],
+ dest: 'dist/<%= pkg.name %>.js'
+ }
+ },
+ min: {
+ dist: {
+ src: ['<banner:meta.banner>', '<config:concat.dist.dest>'],
+ dest: 'dist/<%= pkg.name %>.min.js'
+ }
+ },
+ lint: {
+ files: ['grunt.js', 'libs/matchMedia/*.js', 'src/**/*.js']
+ },
+ qunit: {
+ files: ['test/unit/*.html']
+ },
+ watch: {
+ files: ['<config:lint.files>', '<config:concat.dist.src>'],
+ tasks: 'lint qunit concat min'
+ },
+ jshint: {
+ options: {
+ curly: true,
+ eqeqeq: true,
+ immed: true,
+ latedef: true,
+ newcap: true,
+ noarg: true,
+ sub: true,
+ undef: true,
+ boss: true,
+ eqnull: true,
+ browser: true,
loopfunc: true
- },
- globals: {
- jQuery: true
- }
- },
- uglify: {}
- });
+ },
+ globals: {
+ jQuery: true
+ }
+ },
+ uglify: {}
+ });
- // Default task.
- grunt.registerTask('default', 'lint qunit concat min');
+ // Default task.
+ grunt.registerTask('default', 'lint qunit concat min');
+ // Travis
+ grunt.registerTask('travis', 'lint qunit');
};
View
74 package.json
@@ -1,33 +1,43 @@
{
- "name": "eCSSential",
- "title": "eCSSential",
- "description": "Responsible, responsive CSS loading.",
- "version": "0.1.0",
- "homepage": "https://github.com/scottjehl/eCSSential",
- "author": {
- "name": "Scott Jehl, @scottjehl, Filament Group, Inc.",
- "email": "",
- "url": ""
- },
- "repository": {
- "type": "git",
- "url": "git://github.com/scottjehl/eCSSential"
- },
- "bugs": {
- "url": "https://github.com/scottjehl/eCSSential/issues"
- },
- "licenses": [
- {
- "type": "GPL",
- "url": "https://github.com/scottjehl/eCSSential/blob/master/LICENSE-GPL"
- },
- {
- "type": "MIT",
- "url": "https://github.com/scottjehl/eCSSential/blob/master/LICENSE-MIT"
- }
- ],
- "dependencies": {
- "jquery": "~1.5"
- },
- "keywords": []
-}
+ "name": "eCSSential",
+ "title": "eCSSential",
+ "description": "Responsible, responsive CSS loading.",
+ "version": "0.1.0",
+ "homepage": "https://github.com/scottjehl/eCSSential",
+ "author": {
+ "name": "Scott Jehl, @scottjehl, Filament Group, Inc.",
+ "email": "",
+ "url": ""
+ },
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/scottjehl/eCSSential"
+ },
+ "bugs": {
+ "url": "https://github.com/scottjehl/eCSSential/issues"
+ },
+ "licenses": [
+ {
+ "type": "GPL",
+ "url": "https://github.com/scottjehl/eCSSential/blob/master/LICENSE-GPL"
+ },
+ {
+ "type": "MIT",
+ "url": "https://github.com/scottjehl/eCSSential/blob/master/LICENSE-MIT"
+ }
+ ],
+ "main": "dist/eCSSential.js",
+ "engines": {
+ "node": ">0.6"
+ },
+ "scripts":{
+ "test" : "grunt travis --verbose"
+ },
+ "dependencies": {
+ "jquery": "~1.7.2"
+ },
+ "devDependencies": {
+ "grunt": "~0.3.17"
+ },
+ "keywords": []
+}

0 comments on commit fe431ef

Please sign in to comment.