forked from webrtc/apprtc
-
Notifications
You must be signed in to change notification settings - Fork 0
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
3 changed files
with
75 additions
and
0 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,5 @@ | ||
language: node_js | ||
node_js: | ||
- 0.8 | ||
before_script: | ||
- npm install -g grunt-cli |
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,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'); | ||
}; |
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,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" | ||
} | ||
} |