2013-12-12 05:18:07 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
module.exports = function (grunt) {
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
grunt.config('useminPrepare', {
|
2014-02-26 11:17:57 +04:00
|
|
|
client_rendered: {
|
|
|
|
dest: '<%= yeoman.dist %>',
|
|
|
|
src: [
|
|
|
|
'<%= yeoman.app %>/{,*/}*.html',
|
|
|
|
'!<%= yeoman.app %>/tests/{,*/}*.html'
|
|
|
|
],
|
|
|
|
type: 'html'
|
2013-12-12 05:18:07 +04:00
|
|
|
},
|
2014-02-26 11:17:57 +04:00
|
|
|
server_rendered: {
|
|
|
|
options: {
|
|
|
|
// root must be specified or else useminPrepare uses the template
|
|
|
|
// directory as the root from where to search for assets.
|
|
|
|
root: '<%= yeoman.app %>',
|
|
|
|
type: 'html'
|
|
|
|
},
|
|
|
|
dest: '<%= yeoman.dist %>',
|
|
|
|
src: [
|
|
|
|
'<%= yeoman.page_template_src %>/{,*/}*.html'
|
|
|
|
],
|
|
|
|
}
|
2013-12-12 05:18:07 +04:00
|
|
|
});
|
|
|
|
|
|
|
|
grunt.config('usemin', {
|
|
|
|
options: {
|
|
|
|
assetsDirs: ['<%= yeoman.dist %>']
|
|
|
|
},
|
2014-02-20 22:18:53 +04:00
|
|
|
html: [
|
|
|
|
'<%= yeoman.dist %>/{,*/}*.html',
|
|
|
|
'<%= yeoman.page_template_dist %>/*.html'
|
|
|
|
],
|
2013-12-12 05:18:07 +04:00
|
|
|
css: ['<%= yeoman.dist %>/styles/{,*/}*.css']
|
|
|
|
});
|
|
|
|
};
|