Skip to content

Commit

Permalink
Continued websiting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilto committed Oct 23, 2014
1 parent 459faac commit 9a218d7
Show file tree
Hide file tree
Showing 24 changed files with 555 additions and 1,637 deletions.
26 changes: 24 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ module.exports = function(grunt) {
isWindows = os.platform().indexOf('win') === 0; // watch out for `darwin`

require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.loadNpmTasks('assemble');

// Project configuration.
grunt.initConfig({
pkg: '<json:package.json>',
banner: '/*! Project Name - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'* Copyright (c) <%= grunt.template.today("yyyy") %> ' +
'Authored by Filament Group, Inc. */',
'Mat Marquis - [email protected] */',
clean: {
dist: [ "_dist/" ]
},
Expand Down Expand Up @@ -57,7 +58,6 @@ module.exports = function(grunt) {
{ expand: true, cwd: "_tmpl/_img/", src: ["**"], dest: "_dist/_img/" },
{ expand: true, cwd: "_tmpl/_img/svg/", src: ["*.png"], dest: "_dist/_img/_svg/" },
{ expand: true, cwd: "_tmpl/_css/", src: ["**"], dest: "_dist/_css/" },
{ expand: true, cwd: "_tmpl/", src: ["*.html","*.php","*.json"], dest: "_dist/" },
{ expand: true, cwd: "_tmpl/", src: [".htaccess"], dest: "_dist/" }]
}
},
Expand Down Expand Up @@ -127,6 +127,20 @@ module.exports = function(grunt) {
}
},

assemble: {
options: {
flatten: true,
layout: ['_tmpl/index.hbs'],
partials: ['_tmpl/_partials/**/*.hbs'],
data: ['_tmpl/_data/*.json'],
ext: ".php"
},
build: {
src: '_tmpl/*.hbs',
dest: '_dist/'
}
},

// prevent editing of _dist files
chmod: {
options: {},
Expand Down Expand Up @@ -157,6 +171,9 @@ module.exports = function(grunt) {
'qunit',
'concat',
'copy',
'cssmin',
'uglify',
'assemble',
'criticalcss',
'chmod:readonly'
]);
Expand All @@ -171,14 +188,19 @@ module.exports = function(grunt) {

grunt.registerTask('watch-default', [
'chmod:writeable',
'clean',
'qunit',
'copy',
'assemble',
'criticalcss',
'chmod:readonly'
]);

grunt.registerTask('watch-css', [
'chmod:writeable',
'clean',
'copy',
'criticalcss',
'concat:css_main',
'chmod:readonly'
]);
Expand Down
227 changes: 3 additions & 224 deletions _dist/_css/all.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9a218d7

Please sign in to comment.