mirror of
https://github.com/ansible/awx.git
synced 2026-02-02 10:08:10 -03:30
38 lines
939 B
JavaScript
38 lines
939 B
JavaScript
module.exports = function(grunt) {
|
|
// Load grunt tasks & configurations automatically from dir grunt/
|
|
require('load-grunt-tasks')(grunt);
|
|
// display task timings
|
|
require('time-grunt')(grunt);
|
|
|
|
var options = {
|
|
config: {
|
|
src: './grunt-tasks/*.js'
|
|
},
|
|
pkg: grunt.file.readJSON('package.json')
|
|
};
|
|
|
|
var configs = require('load-grunt-configs')(grunt, options);
|
|
|
|
// Project configuration.
|
|
grunt.initConfig(configs);
|
|
grunt.loadNpmTasks('grunt-newer');
|
|
|
|
// writes environment variables for development. current manages:
|
|
// browser-sync + websocket proxy
|
|
|
|
grunt.registerTask('dev', [
|
|
'clean:tmp',
|
|
'clean:static',
|
|
'concurrent:dev',
|
|
'browserSync:http',
|
|
'concurrent:watch'
|
|
]);
|
|
|
|
grunt.registerTask('release', [
|
|
'clean:tmp',
|
|
'clean:static',
|
|
'webpack:prod',
|
|
'concurrent:prod',
|
|
]);
|
|
};
|