fix templates for dev and prod

This commit is contained in:
Ben Ramey
2014-03-22 21:08:35 -05:00
parent c37c6976ab
commit 16c9138941
3 changed files with 8 additions and 9 deletions

View File

@@ -63,9 +63,8 @@ module.exports = function(grunt) {
grunt.registerTask('compileAssets', [
'clean:dev',
'jst:dev',
'jade:templates',
'less:dev',
'jade:dev',
'copy:dev',
'coffee:dev'
]);
@@ -92,7 +91,7 @@ module.exports = function(grunt) {
// When sails is lifted in production
grunt.registerTask('prod', [
'clean:dev',
'jst:dev',
'jade:dev',
'less:dev',
'copy:dev',
'coffee:dev',

View File

@@ -8,13 +8,13 @@ lunchApp.config ['$routeProvider',
($routeProvider) ->
$routeProvider
.when '/',
templateUrl: 'linker/templates/home.html',
templateUrl: 'templates/home.html',
controller: 'HomeCtrl'
.when '/run/:id',
templateUrl: 'linker/templates/run.html',
templateUrl: 'templates/run.html',
controller: 'RunCtrl'
.when '/run/:id/order/:inviteeName',
templateUrl: 'linker/templates/create-order.html',
templateUrl: 'templates/create-order.html',
controller: 'CreateOrderCtrl'
]

View File

@@ -1,12 +1,12 @@
// jade
module.exports = function(config) {
return {
templates: {
dev: {
files: [{
expand: true,
cwd: './assets/templates/',
cwd: './assets/linker/templates/',
src: ['*.jade'],
dest: './assets/templates/',
dest: '.tmp/public/templates/',
ext: '.html'
}]
}