2015-09-19 18:29:39 +00:00
|
|
|
// AdminLTE Gruntfile
|
2015-11-04 18:51:10 +00:00
|
|
|
|
2015-02-01 21:25:09 +00:00
|
|
|
module.exports = function (grunt) {
|
2015-08-04 16:21:03 +00:00
|
|
|
|
2015-07-25 19:05:02 +00:00
|
|
|
'use strict';
|
2016-06-29 00:05:57 +00:00
|
|
|
//loading the configurations and grunt tasks
|
2016-06-23 14:49:39 +00:00
|
|
|
var configs = require('load-grunt-config')(grunt,{
|
2016-07-02 15:43:51 +00:00
|
|
|
configPath: __dirname + '/build/grunt',
|
2016-06-23 14:49:39 +00:00
|
|
|
data:{
|
2016-06-29 00:05:57 +00:00
|
|
|
// Metadata.
|
|
|
|
pkg: grunt.file.readJSON('package.json'),
|
|
|
|
banner: '/*!\n' +
|
|
|
|
' * AdminLTE v<%= pkg.version %> (<%= pkg.homepage %>)\n' +
|
|
|
|
' * Copyright 2014-<%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
|
|
|
|
' * Project website Almsaeed Studio (https://almsaeedstudio.com)\n' +
|
|
|
|
' * Licensed under MIT (https://github.com/almasaeed2010/AdminLTE/blob/master/LICENSE)\n' +
|
|
|
|
' */\n'
|
2015-02-01 21:25:09 +00:00
|
|
|
}
|
|
|
|
});
|
2015-04-15 23:07:57 +00:00
|
|
|
|
2016-06-23 14:49:39 +00:00
|
|
|
grunt.initConfig(configs);
|
2015-08-22 17:22:37 +00:00
|
|
|
|
|
|
|
// Linting task
|
2015-11-11 19:29:54 +00:00
|
|
|
grunt.registerTask('lint', ['jscs', 'eslint', 'csslint', 'bootlint'])
|
|
|
|
// JS Build Task
|
|
|
|
grunt.registerTask('build-js', ['babel', 'concat', 'uglify'])
|
|
|
|
// The default task (running 'grunt' in console) is 'watch'
|
|
|
|
grunt.registerTask('default', ['watch'])
|
|
|
|
}
|