-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
31 lines (25 loc) · 911 Bytes
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
'use strict';
module.exports = function (grunt) {
var config = require('./server/config/environment')();
// Load grunt tasks automatically, when needed
require('jit-grunt')(grunt, {
express: 'grunt-express-server',
useminPrepare: 'grunt-usemin',
ngtemplates: 'grunt-angular-templates',
protractor: 'grunt-protractor-runner',
injector: 'grunt-asset-injector',
buildcontrol: 'grunt-build-control'
});
// Time how long tasks take. Can help when optimizing build times
require('time-grunt')(grunt);
// Define the configuration for all the tasks
var gruntConfig = require("./grunt/config");
gruntConfig.pkg = grunt.file.readJSON('package.json');
gruntConfig.yeoman = {
client: 'client',
dist: 'dist'
};
grunt.initConfig(gruntConfig);
// Define all tasks
require("./grunt/tasks")(grunt);
};