Skip to content

Commit

Permalink
Added Grunt and Travis files
Browse files Browse the repository at this point in the history
  • Loading branch information
samdutton committed Oct 22, 2014
1 parent d60bc0d commit 4a3e103
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: node_js
node_js:
- 0.8
before_script:
- npm install -g grunt-cli
41 changes: 41 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
'use strict';

/* globals module */

module.exports = function(grunt) {

// configure project
grunt.initConfig({
// make node configurations available
pkg: grunt.file.readJSON('package.json'),

htmlhint: {
html1: {
src: ['samples/web/content/datachannel/**/index.html',
'samples/web/content/getusermedia/**/index.html',
'samples/web/content/peerconnection/**/index.html']
}
},

jshint: {
options: {
ignores: ['samples/web/content/manual-test/**/*',
'samples/web/content/getusermedia/desktopcapture/**',
'samples/web/content/apprtc/js/stereoscopic.js',
'samples/web/content/apprtc/js/ga.js',
'samples/web/content/apprtc/js/vr.js'],
// use default .jshintrc files
jshintrc: true
},
// files to validate
// can choose more than one name + array of paths
// usage with this name: grunt jshint:files
files: ['samples/web/content/**/*.js']
},

});

// Load plugins
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-htmlhint');
};
29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "webrtc",
"version": "1.0.0",
"description": "Project checking for WebRTC GitHub sample repo",
"main": "Gruntfile.js",
"scripts": {
"test": "grunt travis --verbose"
},
"repository": {
"type": "git",
"url": "https://github.com/samdutton/webrtc.git"
},
"keywords": [
"webrtc"
],
"author": "samdutton",
"license": "ISC",
"bugs": {
"url": "https://github.com/samdutton/webrtc/issues"
},
"homepage": "https://github.com/samdutton/webrtc",
"devDependencies": {
"grunt": "^0.4.5",
"grunt-contrib-jshint": "^0.10.0",
"grunt-html-validation": "^0.1.18",
"grunt-htmlhint": "^0.4.1",
"grunt-w3c-validation": "^0.1.16"
}
}

0 comments on commit 4a3e103

Please sign in to comment.