Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move remaining generic code inside CmsBundle
- Loading branch information
Showing
2 changed files
with
4 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,6 @@ | ||
module.exports = function(grunt) { | ||
var merge = require('merge'); | ||
var appConfig = require('./grunt/app_config.js'); | ||
var configLoader = require(appConfig.configLoader); | ||
var config = { | ||
pkg: grunt.file.readJSON('package.json'), | ||
env: process.env | ||
}; | ||
var GruntConfigBuilder = require(appConfig.GruntConfigBuilder); | ||
|
||
require('load-grunt-tasks')(grunt); | ||
|
||
for (var i= 0; i < appConfig.tasksDir.length; i++) { | ||
grunt.loadTasks(appConfig.tasksDir[i]); | ||
} | ||
|
||
for (var i= 0; i < appConfig.targetsDir.length; i++) { | ||
config = merge.recursive(true, config, configLoader.loadDir(appConfig.targetsDir[i])); | ||
} | ||
|
||
grunt.initConfig(config); | ||
GruntConfigBuilder.init(grunt, appConfig); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters