UNPKG

sort-media-queries

Version:
78 lines (65 loc) 1.51 kB
module.exports = function ( grunt ) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), meta: { banner: '/*! <%= pkg.name %> <%= pkg.version %> - <%= pkg.description %> | Author: <%= pkg.author %>, <%= grunt.template.today("yyyy") %> | License: <%= pkg.license %> */\n' }, bump: { options: { files: ['package.json'], updateConfigs: ['pkg'], commit: true, commitMessage: 'Release %VERSION%', commitFiles: ['-a'], createTag: true, tagName: '%VERSION%', tagMessage: '', push: false } }, jscs: { main: { options: { config: '.jscsrc' }, files: { src: [ '<%= pkg.main %>', 'lib/**/*.js' ] } } }, jshint: { main: { options: { jshintrc: '.jshintrc' }, src: [ '<%= pkg.main %>', 'lib/**/*.js' ] } }, karma: { unit: { configFile: 'karma.conf.js' } }, mochaTest: { unit: { options: { reporter: 'spec' }, src: ['test/index.js'] } } }); require('load-grunt-tasks')(grunt); grunt.registerTask('stylecheck', ['jshint:main', 'jscs:main']); grunt.registerTask('default', ['stylecheck']); grunt.registerTask('test', ['mochaTest:unit', 'karma:unit']); grunt.registerTask('releasePatch', ['bump-only:patch', 'default', 'bump-commit']); grunt.registerTask('releaseMinor', ['bump-only:minor', 'default', 'bump-commit']); grunt.registerTask('releaseMajor', ['bump-only:major', 'default', 'bump-commit']); };