fix templates for dev and prod
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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'
|
||||
]
|
||||
|
||||
|
||||
@@ -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'
|
||||
}]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user