feat(invite): lots of work completing the new email template system and css inlineing, converted new_user_invite.html to new system, #2353

This commit is contained in:
Torkel Ödegaard
2015-08-10 21:24:47 +02:00
parent dfd1bff389
commit 4439545428
19 changed files with 391 additions and 2584 deletions

View File

@@ -1,8 +1,8 @@
default:
- 'watch'
inkify:
default:
- 'clean'
- 'assemble'
- 'replace'
- 'uncss'
- 'processhtml'
- 'premailer'

View File

@@ -8,7 +8,7 @@ module.exports = {
expand: true, // Enable dynamic expansion.
cwd: 'dist', // Src matches are relative to this path.
src: ['*.html'], // Actual pattern(s) to match.
dest: 'dist/', // Destination path prefix.
dest: '../public/emails/', // Destination path prefix.
}],
}
};

View File

@@ -2,7 +2,7 @@ module.exports = {
dist: {
files: [{
expand: true, // Enable dynamic expansion.
cwd: 'templates', // Src matches are relative to this path.
cwd: 'dist', // Src matches are relative to this path.
src: ['*.html'], // Actual pattern(s) to match.
dest: 'dist/', // Destination path prefix.
}],

View File

@@ -1,6 +1,6 @@
module.exports = {
dist: {
src: ['templates/*.html'],
src: ['dist/*.html'],
dest: 'dist/css/tidy.css',
options: {
report: 'min' // optional: include to report savings

View File

@@ -3,8 +3,10 @@ module.exports = {
files: [
//what are the files that we want to watch
'assets/css/*.css',
'*.html'
'templates/**/*.html',
'grunt/*.js',
],
tasks: ['default'],
options: {
nospawn: true,
livereload: true,