-
Notifications
You must be signed in to change notification settings - Fork 7
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 #32 from radify/gulp-refactor
Gulp Refactor
- Loading branch information
Showing
14 changed files
with
881 additions
and
766 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,7 @@ | ||
languages: | ||
JavaScript: true | ||
exclude_paths: | ||
- "lib/*" | ||
- "config/*" | ||
- "spec/*" | ||
- "Gulpfile.js" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"preset" : "google", | ||
"maximumLineLength" : 120, | ||
"disallowMultipleVarDecl" : false | ||
} |
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,14 @@ | ||
{ | ||
"maxerr" : 50, | ||
"camelcase" : true, | ||
"indent" : 2, | ||
"latedef" : true, | ||
"newcap" : true, | ||
"noempty" : true, | ||
"quotmark" : "single", | ||
"undef" : true, | ||
"strict" : true, | ||
"phantom" : true, | ||
"browser" : true, | ||
"globals" : {} | ||
} |
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 |
---|---|---|
|
@@ -12,4 +12,4 @@ before_script: | |
- npm install | ||
|
||
script: | ||
- script/test | ||
- gulp |
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,54 @@ | ||
'use strict'; | ||
|
||
var gulp = require('gulp'); | ||
var Server = require('karma').Server; | ||
var coveralls = require('gulp-coveralls'); | ||
var jshint = require('gulp-jshint'); | ||
var jscs = require('gulp-jscs'); | ||
var runSequence = require('run-sequence'); | ||
var gulpRequireSafe = require('gulp-requiresafe'); | ||
|
||
/* | ||
* PLEASE NOTE: run-sequence is a | ||
* temporary solution until the release of | ||
* Gulp 4.0, which contains run-sequence's | ||
* functionality. | ||
*/ | ||
|
||
var paths = { | ||
'spec': 'spec/**/*.js', | ||
'src': 'src/**/*.js' | ||
}; | ||
|
||
gulp.task('test', function(done) { | ||
new Server({ | ||
configFile: __dirname + '/config/karma.conf.js', | ||
singleRun: true | ||
}, done).start(); | ||
}); | ||
|
||
gulp.task('coveralls', function() { | ||
gulp.src('coverage/**/lcov.info') | ||
.pipe(coveralls()); | ||
}); | ||
|
||
gulp.task('lint', function() { | ||
return gulp.src([paths.src]) | ||
.pipe(jshint()) | ||
.pipe(jshint.reporter('default')) | ||
.pipe(jshint.reporter('fail')); | ||
}); | ||
|
||
gulp.task('style', function() { | ||
return gulp.src([paths.src, paths.spec]) | ||
.pipe(jscs()) | ||
.pipe(jscs.reporter()); | ||
}); | ||
|
||
gulp.task('security', function(cb) { | ||
gulpRequireSafe({package: __dirname + '/package.json', stopOnError: true}, cb); | ||
}); | ||
|
||
gulp.task('default', function(cb) { | ||
runSequence('test', ['lint', 'style', 'coveralls', 'security'], cb); | ||
}); |
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 |
---|---|---|
@@ -1,19 +1,16 @@ | ||
module.exports = function(config) { | ||
config.set({ | ||
basePath: '../', | ||
frameworks: ["jasmine"], | ||
files: ['lib/*.js', 'src/*.js', 'test/*Spec.js'], | ||
frameworks: ['jasmine'], | ||
files: ['lib/**/*.js', 'src/**/*.js', 'spec/**/*Spec.js'], | ||
exclude: [], | ||
singleRun: true, | ||
browsers: ['PhantomJS'], | ||
reporters: ['progress', 'coverage', 'coveralls'], | ||
preprocessors: { 'src/*.js': ['coverage'] }, | ||
reporters: ['progress', 'coverage'], | ||
preprocessors: {'src/**/*.js': ['coverage']}, | ||
coverageReporter: { | ||
type: "lcovonly", | ||
dir: "coverage/" | ||
}, | ||
coverallsReporter: { | ||
repoToken: "wJub3kYtybW9CExyDHDd5Yhk7ZGhVsEBZ" | ||
type: 'lcovonly', | ||
dir: 'coverage/' | ||
} | ||
}); | ||
}; | ||
}; |
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,36 +1,56 @@ | ||
{ | ||
"name": "angular-model", | ||
"description": "Simple HATEOS-oriented persistence module for AngularJS.", | ||
"version": "0.4.2", | ||
"version": "0.5.0", | ||
"license": "BSD-3-Clause", | ||
"maintainers": [ | ||
{ | ||
"name": "Nate Abele", | ||
"email": "nate@unionofrad.com", | ||
"web": "http://unionofrad.com" | ||
"email": "nate@radify.io", | ||
"web": "http://radify.io" | ||
} | ||
], | ||
"contributors": [ | ||
{ | ||
"name": "Warren Seymour", | ||
"email": "warren@unionofrad.com", | ||
"web": "http://unionofrad.com" | ||
"email": "warren@radify.io", | ||
"web": "http://radify.io" | ||
}, | ||
{ | ||
"name": "John Mercer", | ||
"email": "john@radify.io", | ||
"web": "http://radify.io" | ||
} | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com/uor/angular-model.git" | ||
"url": "git+https://github.com/radify/angular-model.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/uor/angular-model/issues" | ||
"url": "https://github.com/radify/angular-model/issues" | ||
}, | ||
"devDependencies": { | ||
"karma": "~0.13.11", | ||
"karma-jasmine": "~0.3.6", | ||
"karma-coverage": "~0.5", | ||
"karma-coveralls": "~1.1.x", | ||
"karma-script-launcher": "~0.1.0", | ||
"karma-phantomjs-launcher": "~0.2.1" | ||
"gulp": "^3.9.0", | ||
"gulp-coveralls": "^0.1.4", | ||
"gulp-jscs": "^3.0.1", | ||
"gulp-jshint": "^1.11.2", | ||
"jasmine-core": "^2.3.4", | ||
"karma": "^0.13.11", | ||
"karma-coverage": "^0.5.2", | ||
"karma-coveralls": "^1.1.2", | ||
"karma-jasmine": "^0.3.6", | ||
"karma-phantomjs-launcher": "^0.2.1", | ||
"phantomjs": "^1.9.18", | ||
"run-sequence": "^1.1.4" | ||
}, | ||
"dependencies": { | ||
"gulp-requiresafe": "^1.1.2" | ||
}, | ||
"dependencies": {} | ||
"keywords": [ | ||
"angular", | ||
"angularjs", | ||
"HATEOS", | ||
"hypermedia", | ||
"architecture" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.