UNPKG

jso-clean

Version:

OAuth 2.0 implementation in Javascript

84 lines (72 loc) 2.01 kB
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), bower: grunt.file.readJSON('bower.json'), bump: { options: { files: ['package.json', 'bower.json'], updateConfigs: ['pkg', 'bower'], commit: true, commitMessage: 'Release v%VERSION%', commitFiles: ['package.json', 'bower.json', 'build/jso.js'], createTag: true, tagName: 'v%VERSION%', tagMessage: 'Version %VERSION%', prerelaseName: 'rc', push: true, pushTo: 'origin', gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d', globalReplace: false, prereleaseName: false, regExp: false } }, requirejs: { compile: { options: { almond: true, dir: 'build', appDir: 'src', baseUrl: '.', modules: [{name: 'jso'}], optimize: "none", paths: { underscore: '../vendor/underscore', jquery : '../vendor/jquery', backbone : '../vendor/backbone' }, wrap: { startFile: 'tools/wrap.start', endFile: 'tools/wrap.end' }, preserveLicenseComments: false } } }, jshint: { // define the files to lint files: ['gruntfile.js', 'src/**/*.js', 'test/**/*.js'], // configure JSHint (documented at http://www.jshint.com/docs/) options: { // more options here if you want to override JSHint defaults globals: { jQuery: true, console: true, module: true } } }, qunit: { files: ['test/index.html'] } }); grunt.loadNpmTasks('grunt-bump'); grunt.loadNpmTasks('grunt-requirejs'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-qunit'); grunt.registerTask('test', ['jshint', 'qunit', 'requirejs']); grunt.registerTask('build', ['jshint', 'qunit', 'requirejs']); grunt.registerTask('default', ['jshint', 'qunit', 'requirejs']); grunt.registerTask('publish-patch', ['jshint', 'qunit', 'requirejs', 'bump:patch']); };