mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 16:51:11 +03:00
6cf80d3a9b
Started applying new styles starting with removal of tabs. Brought in new breadcrumb format and blended with inventory edit group breadcrumbs. Rather than attempting to override bootstrap styles after the fact, copied boostrap less file and started modifying those to create ansible-boostrap.css, as described in the boostrap documentation.
47 lines
1.4 KiB
JavaScript
47 lines
1.4 KiB
JavaScript
module.exports = function(grunt) {
|
|
|
|
grunt.initConfig({
|
|
|
|
pkg: grunt.file.readJSON('./package.json'),
|
|
|
|
jshint: {
|
|
options: {
|
|
jshintrc: '.jshintrc'
|
|
},
|
|
uses_defaults: ['awx/ui/static/js/*','awx/ui/static/lib/ansible/*', '!awx/ui/static/js/awx.min.js']
|
|
},
|
|
|
|
uglify: {
|
|
options: {
|
|
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
|
|
'<%= grunt.template.today("yyyy-mm-dd") %> */'
|
|
},
|
|
my_target: {
|
|
files: {
|
|
'awx/ui/static/js/awx.min.js': ['awx/ui/static/js/**/*.js', 'awx/ui/static/lib/ansible/*.js',
|
|
'!awx/ui/static/js/awx.min.js', '!awx/ui/static/js/config.js']
|
|
}
|
|
}
|
|
},
|
|
|
|
less: {
|
|
production: {
|
|
options: {
|
|
cleancss: true,
|
|
compress: true
|
|
},
|
|
files: {
|
|
"awx/ui/static/css/awx.min.css": "awx/ui/static/less/ansible-ui.less",
|
|
"awx/ui/static/css/ansible-bootstrap.min.css": "awx/ui/static/ansible-bootstrap/bootstrap.less"
|
|
}
|
|
}
|
|
}
|
|
});
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
|
grunt.loadNpmTasks('grunt-contrib-uglify');
|
|
grunt.loadNpmTasks('grunt-contrib-less');
|
|
|
|
grunt.registerTask('default', ['jshint', 'uglify', 'less']);
|
|
}
|