File: Gruntfile.js

Recommend this page to a friend!
  Classes of Javier Camelis   Qlite   Gruntfile.js   Download  
File: Gruntfile.js
Role: Configuration script
Content type: text/plain
Description: Configuration script
Class: Qlite
Processes conditions asynchronously using promises
Author: By
Last change: Update of Gruntfile.js
Date: 2 years ago
Size: 1,363 bytes
 

Contents

Class file image Download
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), uglify: { options: { banner: '/*! <%= pkg.name %> V<%= pkg.version %> <%= pkg.homepage %> <%= grunt.template.today("dd-mm-yyyy") %> */\n' }, dist: { files: { 'Qlite.min.js': ['Qlite.js'] } } }, qunit: { files: ['test/**/*.html', "!test/index.html"] }, jshint: { files: ['Gruntfile.js', 'Qlite.js', 'test/**/*.js'], options: { // options here to override JSHint defaults globals: { console: true, module: true, document: true } } }, watch: { files: ['<%= jshint.files %>'], tasks: ['jshint', 'qunit'] } }); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-qunit'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.registerTask('test', ['jshint', 'qunit']); grunt.registerTask('default', ['jshint', 'qunit', 'uglify']); grunt.registerTask('uglify-force', ['jshint', 'uglify']); };