| Server IP : 23.111.136.34 / Your IP : 216.73.216.136 Web Server : Apache System : Linux servidor.eurohost.com.br 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : meusitei ( 1072) PHP Version : 5.6.40 Disable Function : show_source, system, shell_exec, passthru, proc_open MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/meusitei/public_html/painel/assets/plugins/bootstrap-timepicker/ |
Upload File : |
module.exports = function(grunt) {
'use strict';
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
project: 'bootstrap-timepicker',
version: '0.2.3'
},
jasmine: {
build: {
src : ['spec/js/libs/jquery/jquery.min.js', 'spec/js/libs/bootstrap/js/bootstrap.min.js', 'spec/js/libs/autotype/index.js', 'js/bootstrap-timepicker.js'],
options: {
specs : 'spec/js/*Spec.js',
helpers : 'spec/js/helpers/*.js',
timeout : 100
}
}
},
jshint: {
options: {
browser: true,
camelcase: true,
curly: true,
eqeqeq: true,
eqnull: true,
immed: true,
indent: 2,
latedef: true,
newcap: true,
noarg: true,
quotmark: true,
sub: true,
strict: true,
trailing: true,
undef: true,
unused: true,
white: false,
globals: {
jQuery: true,
$: true,
expect: true,
it: true,
beforeEach: true,
afterEach: true,
describe: true,
loadFixtures: true,
console: true,
module: true
}
},
files: ['js/bootstrap-timepicker.js', 'Gruntfile.js', 'package.json', 'spec/js/*Spec.js']
},
less: {
dev: {
options: {
paths: ['css']
},
files: {
'css/bootstrap-timepicker.css': ['less/*.less']
}
},
prod: {
options: {
paths: ['css'],
yuicompress: true
},
files: {
'css/bootstrap-timepicker.min.css': ['less/*.less']
}
}
},
uglify: {
options: {
banner: '/*! <%= meta.project %> v<%= meta.version %> \n' +
'* http://jdewit.github.com/bootstrap-timepicker \n' +
'* Copyright (c) <%= grunt.template.today("yyyy") %> Joris de Wit \n' +
'* MIT License \n' +
'*/'
},
build: {
src: ['<banner:meta.banner>','js/<%= pkg.name %>.js'],
dest: 'js/<%= pkg.name %>.min.js'
}
},
watch: {
js: {
files: ['js/bootstrap-timepicker.js', 'spec/js/*Spec.js'],
tasks: ['jshint', 'jasmine'],
options: {
livereload: true
}
},
less: {
files: ['less/timepicker.less'],
tasks: ['less:dev'],
options: {
livereload: true
}
}
}
});
grunt.registerTask('default', ['jshint', 'jasmine', 'less:dev']);
grunt.registerTask('test', ['jasmine', 'jshint']);
grunt.registerTask('compile', ['jshint', 'jasmine', 'uglify', 'less:prod']);
};