mirror of
https://github.com/LightAir/turbo-rss.git
synced 2026-02-04 03:56:19 +00:00
add rest of my usual workflow, for better or worse.
This commit is contained in:
54
Gruntfile.js
54
Gruntfile.js
@@ -1,3 +1,55 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function(grunt) {
|
||||
grunt.loadNpmTasks('grunt-release');
|
||||
|
||||
/**
|
||||
* grunt release or grunt release:patch increment the patch number
|
||||
* grunt release:minor increments the minor version number
|
||||
* grunt release:major increments the major version number
|
||||
*
|
||||
|
||||
* grunt readme to generate the readme (you might need to do grunt repos first)
|
||||
*/
|
||||
|
||||
|
||||
require('time-grunt')(grunt);
|
||||
|
||||
grunt.initConfig({
|
||||
mochaTest: {
|
||||
notify: {
|
||||
src: 'test/**/*.test.js',
|
||||
options: {
|
||||
reporter: 'spec'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
jshint: {
|
||||
options: {
|
||||
jshintrc: '.jshintrc'
|
||||
},
|
||||
all: [
|
||||
'Gruntfile.js',
|
||||
'lib/**/*.js',
|
||||
'tests/**/*.js'
|
||||
]
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
require('load-grunt-tasks')(grunt);
|
||||
|
||||
grunt.registerTask('test', [
|
||||
'jshint',
|
||||
'mochaTest'
|
||||
]);
|
||||
|
||||
grunt.registerTask('default', [
|
||||
'test'
|
||||
]);
|
||||
|
||||
grunt.registerTask('pre-publish', [
|
||||
'test',
|
||||
'readme'
|
||||
]);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user