accountant-ui/Gruntfile.js
Alexis Lahouze 2ab78f2cd3 Cleanup.
2015-08-21 01:12:06 +02:00

40 lines
1.1 KiB
JavaScript

module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
require('time-grunt')(grunt);
// Options
var options = {
config: {
src: "grunt-config/*.js"
},
paths: {
frontend_js: [
'accountant/frontend/static/js/app.js',
'accountant/frontend/static/js/accounts.js',
'accountant/frontend/static/js/operations.js',
'accountant/frontend/static/js/scheduler.js'
],
frontend_build: 'accountant/frontend/static/build'
},
pkg: grunt.file.readJSON('package.json'),
banner: '/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %>\n'+
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author %> */\n',
};
var configs = require('load-grunt-configs')(grunt, options);
grunt.initConfig(configs);
grunt.registerTask('generatestatic', [
'shell:npm_install',
]);
grunt.registerTask('jsdev', [
'jshint',
]);
grunt.registerTask('dev', [
'generatestatic',
'jsdev'
]);
};