mirror of
https://github.com/mathew-kurian/Scribe.js
synced 2025-04-24 22:34:58 +00:00
Add jshint for examples
This commit is contained in:
parent
34c8c770e7
commit
d91897388e
2 changed files with 5 additions and 2 deletions
|
@ -17,7 +17,7 @@ module.exports = function(grunt) {
|
||||||
src: ['scribe.js', 'Gruntfile.js']
|
src: ['scribe.js', 'Gruntfile.js']
|
||||||
},
|
},
|
||||||
lib: {
|
lib: {
|
||||||
src: ['lib/**/*.js']
|
src: ['lib/**/*.js', 'examples/**/*.js']
|
||||||
},
|
},
|
||||||
test: {
|
test: {
|
||||||
src: ['test/**/*.js']
|
src: ['test/**/*.js']
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
|
/*jshint -W079 */
|
||||||
/**
|
/**
|
||||||
* The main file
|
* The main file
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var scribe = require('../scribe'), //loads Scribe
|
var scribe = require('../scribe'), //loads Scribe
|
||||||
console = process.console; //create a local (for the module) console
|
console = process.console; //create a local (for the module) console
|
||||||
|
|
||||||
|
scribe.config({});
|
||||||
|
|
||||||
//Don't worry, you can still acces the original console
|
//Don't worry, you can still acces the original console
|
||||||
global.console.log("I'm using the original console.log()");
|
global.console.log("I'm using the original console.log()");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue