2014-06-18 19:35:37 +02:00
|
|
|
module.exports = function (grunt) {
|
2014-06-18 21:54:42 +02:00
|
|
|
var notIncludedComponents = '{font-awesome,requirejs}';
|
2014-06-18 19:35:37 +02:00
|
|
|
return {
|
|
|
|
build: '<%= build %>',
|
|
|
|
target: '<%= target %>',
|
|
|
|
unneeded_source_in_build: {
|
|
|
|
src: [
|
|
|
|
// select all top level folders in bower_components
|
|
|
|
'<%= build %>/bower_components/*',
|
|
|
|
// exclude the following top level components
|
|
|
|
'!<%= build %>/bower_components/' + notIncludedComponents,
|
|
|
|
|
|
|
|
// remove the contents of K4D3, font-awesome, and requirejs except necessary files
|
|
|
|
'<%= build %>/bower_components/' + notIncludedComponents + '/*',
|
|
|
|
'!<%= build %>/bower_components/requirejs/require.js',
|
|
|
|
'!<%= build %>/bower_components/font-awesome/fonts',
|
|
|
|
|
|
|
|
'<%= build %>/**/_empty_',
|
|
|
|
'<%= build %>/**/*.less',
|
|
|
|
'<%= appBuild %>/{css-builder,normalize}.js',
|
|
|
|
'<%= app %>/{css-builder,normalize}.js',
|
|
|
|
]
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|