2015-06-13 17:37:35 +02:00
|
|
|
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',
|
2015-08-21 01:12:06 +02:00
|
|
|
'accountant/frontend/static/js/operations.js',
|
2015-06-13 17:37:35 +02:00
|
|
|
'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'
|
|
|
|
]);
|
|
|
|
};
|