Skip to content

Commit e94ffb7

Browse files
committed
Merge branch 'fix-default-server' into canary
2 parents 9285856 + 9cdcc90 commit e94ffb7

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

Diff for: app/templates/Gruntfile.js

+15-15
Original file line numberDiff line numberDiff line change
@@ -287,10 +287,10 @@ module.exports = function (grunt) {
287287
dist: {
288288
files: {
289289
src: [
290-
'<%%= yeoman.dist %>/public/{,*/}*.js',
291-
'<%%= yeoman.dist %>/public/{,*/}*.css',
292-
'<%%= yeoman.dist %>/public/assets/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}',
293-
'<%%= yeoman.dist %>/public/assets/fonts/*'
290+
'<%%= yeoman.dist %>/client/{,*/}*.js',
291+
'<%%= yeoman.dist %>/client/{,*/}*.css',
292+
'<%%= yeoman.dist %>/client/assets/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}',
293+
'<%%= yeoman.dist %>/client/assets/fonts/*'
294294
]
295295
}
296296
}
@@ -302,19 +302,19 @@ module.exports = function (grunt) {
302302
useminPrepare: {
303303
html: ['<%%= yeoman.client %>/index.html'],
304304
options: {
305-
dest: '<%%= yeoman.dist %>/public'
305+
dest: '<%%= yeoman.dist %>/client'
306306
}
307307
},
308308

309309
// Performs rewrites based on rev and the useminPrepare configuration
310310
usemin: {
311-
html: ['<%%= yeoman.dist %>/public/{,*/}*.html'],
312-
css: ['<%%= yeoman.dist %>/public/{,*/}*.css'],
313-
js: ['<%%= yeoman.dist %>/public/{,*/}*.js'],
311+
html: ['<%%= yeoman.dist %>/client/{,*/}*.html'],
312+
css: ['<%%= yeoman.dist %>/client/{,*/}*.css'],
313+
js: ['<%%= yeoman.dist %>/client/{,*/}*.js'],
314314
options: {
315315
assetsDirs: [
316-
'<%%= yeoman.dist %>/public',
317-
'<%%= yeoman.dist %>/public/assets/images'
316+
'<%%= yeoman.dist %>/client',
317+
'<%%= yeoman.dist %>/client/assets/images'
318318
],
319319
// This is so we update image references in our ng-templates
320320
patterns: {
@@ -332,7 +332,7 @@ module.exports = function (grunt) {
332332
expand: true,
333333
cwd: '<%%= yeoman.client %>/assets/images',
334334
src: '{,*/}*.{png,jpg,jpeg,gif}',
335-
dest: '<%%= yeoman.dist %>/public/assets/images'
335+
dest: '<%%= yeoman.dist %>/client/assets/images'
336336
}]
337337
}
338338
},
@@ -343,7 +343,7 @@ module.exports = function (grunt) {
343343
expand: true,
344344
cwd: '<%%= yeoman.client %>/assets/images',
345345
src: '{,*/}*.svg',
346-
dest: '<%%= yeoman.dist %>/public/assets/images'
346+
dest: '<%%= yeoman.dist %>/client/assets/images'
347347
}]
348348
}
349349
},
@@ -392,7 +392,7 @@ module.exports = function (grunt) {
392392
// Replace Google CDN references
393393
cdnify: {
394394
dist: {
395-
html: ['<%%= yeoman.dist %>/public/*.html']
395+
html: ['<%%= yeoman.dist %>/client/*.html']
396396
}
397397
},
398398

@@ -403,7 +403,7 @@ module.exports = function (grunt) {
403403
expand: true,
404404
dot: true,
405405
cwd: '<%%= yeoman.client %>',
406-
dest: '<%%= yeoman.dist %>/public',
406+
dest: '<%%= yeoman.dist %>/client',
407407
src: [
408408
'*.{ico,png,txt}',
409409
'.htaccess',
@@ -415,7 +415,7 @@ module.exports = function (grunt) {
415415
}, {
416416
expand: true,
417417
cwd: '.tmp/images',
418-
dest: '<%%= yeoman.dist %>/public/assets/images',
418+
dest: '<%%= yeoman.dist %>/client/assets/images',
419419
src: ['generated/*']
420420
}, {
421421
expand: true,

Diff for: app/templates/server/config/express.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ module.exports = function(app) {
4343
}));
4444
<% } %>
4545
if ('production' === env) {
46-
app.use(favicon(path.join(config.root, 'public', 'favicon.ico')));
47-
app.use(express.static(path.join(config.root, 'public')));
48-
app.set('appPath', config.root + '/public');
46+
app.use(favicon(path.join(config.root, 'client', 'favicon.ico')));
47+
app.use(express.static(path.join(config.root, 'client')));
48+
app.set('appPath', config.root + '/client');
4949
app.use(morgan('dev'));
5050
}
5151

0 commit comments

Comments
 (0)