1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/vcs-all-in-one-grunt-git

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
Gruntfile.js 2.3 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Robin Herbots Отправлено 11.03.2019 13:37 b4317e1
/*
* grunt-git
* https://github.com/rubenv/grunt-git
*
* Copyright (c) 2013 Ruben Vermeersch
* Licensed under the MIT license.
*/
'use strict';
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
watch: {
dev: {
files: ['tasks/*.js', 'lib/*.js', 'test/*.js'],
tasks: ['jshint', 'test']
}
},
jshint: {
all: [
'Gruntfile.js',
'tasks/*.js',
'lib/*.js',
'test/*.js',
'test/fixtures/*.js'
],
options: {
jshintrc: '.jshintrc',
},
},
jscs: {
src: {
options: {
config: '.jscs.json'
},
files: {
src: [
'Gruntfile.js',
'tasks/*.js',
'lib/*.js',
'test/*.js',
'test/fixtures/*.js'
],
}
},
},
mochacli: {
options: {
files: 'test/*_test.js'
},
spec: {
options: {
reporter: 'spec',
timeout: 10000
}
}
},
bump: {
options: {
files: ['package.json'],
commitFiles: ['-a'],
pushTo: 'origin'
}
},
// Before generating any new files, remove any previously-created files.
clean: {
tests: ['tmp'],
}
});
// Actually load this plugin's task(s).
grunt.loadTasks('tasks');
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-jscs');
grunt.loadNpmTasks('grunt-mocha-cli');
grunt.loadNpmTasks('grunt-bump');
// Whenever the "test" task is run, first clean the "tmp" dir, then run this
// plugin's task(s), then test the result.
grunt.registerTask('test', ['jshint', 'jscs', 'clean', 'mochacli']);
// By default, lint and run all tests.
grunt.registerTask('default', ['test']);
};

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/vcs-all-in-one-grunt-git.git
git@api.gitlife.ru:oschina-mirror/vcs-all-in-one-grunt-git.git
oschina-mirror
vcs-all-in-one-grunt-git
vcs-all-in-one-grunt-git
master