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) {
|
|
|
|
grunt.config('useminPrepare', {
|
2015-06-15 04:31:40 +03:00
|
|
|
client_rendered: { //eslint-disable-line camelcase
|
2014-02-26 11:17:57 +04:00
|
|
|
dest: '<%= yeoman.dist %>',
|
|
|
|
src: [
|
|
|
|
'<%= yeoman.app %>/{,*/}*.html',
|
|
|
|
'!<%= yeoman.app %>/tests/{,*/}*.html'
|
|
|
|
],
|
|
|
|
type: 'html'
|
2013-12-12 05:18:07 +04:00
|
|
|
},
|
2015-06-15 04:31:40 +03:00
|
|
|
server_rendered: { //eslint-disable-line camelcase
|
2014-02-26 11:17:57 +04:00
|
|
|
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: [
|
2014-05-08 18:21:05 +04:00
|
|
|
// Use the already generated locale specific pages as the source.
|
2014-06-24 21:32:42 +04:00
|
|
|
'<%= yeoman.page_template_dist %>/{,*/}*.html',
|
|
|
|
'!<%= yeoman.page_template_dist %>/{,*/}mocha.html'
|
2014-03-18 12:13:19 +04:00
|
|
|
]
|
2014-02-26 11:17:57 +04:00
|
|
|
}
|
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',
|
2014-06-24 21:32:42 +04:00
|
|
|
'<%= yeoman.page_template_dist %>/{,*/}*.html',
|
|
|
|
'!<%= yeoman.page_template_dist %>/{,*/}mocha.html'
|
2014-02-20 22:18:53 +04:00
|
|
|
],
|
2013-12-12 05:18:07 +04:00
|
|
|
css: ['<%= yeoman.dist %>/styles/{,*/}*.css']
|
|
|
|
});
|
|
|
|
};
|