-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from kenjones-cisco/task/basic-project
chore(project): Project files and testing
- Loading branch information
Showing
12 changed files
with
256 additions
and
175 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,19 @@ | ||
# .editorconfig | ||
# More info: editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[package.json] | ||
# package.json adhere to --save-dev manipulation styles | ||
indent_style = space | ||
indent_size = 2 |
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
{ | ||
"node": true, | ||
"jasmine": true | ||
"jasmine": true, | ||
"eqeqeq": true, | ||
"strict": true, | ||
"undef": true, | ||
"unused": true | ||
} | ||
|
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
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,46 @@ | ||
'use strict'; | ||
|
||
var gulp = require('gulp'); | ||
var coveralls = require('gulp-coveralls'); | ||
var istanbul = require('gulp-istanbul'); | ||
var jasmine = require('gulp-jasmine'); | ||
var jshint = require('gulp-jshint'); | ||
var docs = require('./tasks'); | ||
|
||
var SOURCE_CODE = ['index.js', 'lib/*.js']; | ||
var TEST_CODE = ['test/*.js']; | ||
|
||
gulp.task('lint', function() { | ||
return gulp.src(SOURCE_CODE.concat(TEST_CODE)) | ||
.pipe(jshint()) | ||
.pipe(jshint.reporter('default')); | ||
}); | ||
|
||
gulp.task('pre-test', function () { | ||
return gulp.src(SOURCE_CODE) | ||
// Covering files | ||
.pipe(istanbul()) | ||
// Force `require` to return covered files | ||
.pipe(istanbul.hookRequire()); | ||
}); | ||
|
||
gulp.task('test', ['lint'], function () { | ||
return gulp.src(TEST_CODE) | ||
.pipe(jasmine()); | ||
}); | ||
|
||
gulp.task('cover', ['lint', 'pre-test'], function () { | ||
return gulp.src(TEST_CODE) | ||
.pipe(jasmine()) | ||
// Creating the reports after tests ran | ||
.pipe(istanbul.writeReports()); | ||
}); | ||
|
||
gulp.task('coveralls', function () { | ||
return gulp.src('coverage/lcov.info') | ||
.pipe(coveralls()); | ||
}); | ||
|
||
gulp.task('docs', function () { | ||
docs(SOURCE_CODE); | ||
}); |
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 |
---|---|---|
@@ -1,8 +1,5 @@ | ||
'use strict'; | ||
|
||
var fs = require('fs'), | ||
path = require('path'); | ||
|
||
var transforms = require('./lib/transforms'); | ||
|
||
/** | ||
|
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
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
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.