Skip to content

Commit

Permalink
Copy over fonts into a sensible location and do not copy bower_compon…
Browse files Browse the repository at this point in the history
…ents over into production.
  • Loading branch information
diegonetto committed Mar 13, 2014
1 parent 211aaba commit 9b922e2
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions templates/common/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ module.exports = function (grunt) {
// The following *-min tasks produce minified files in the dist folder
cssmin: {
options: {
root: '<%%= yeoman.app %>'
root: '<%%= yeoman.app %>',
noRebase: true
}
},
htmlmin: {
Expand Down Expand Up @@ -222,10 +223,8 @@ module.exports = function (grunt) {
dest: 'www',
src: [
'images/*.{ico,png,txt}',
'.htaccess',
'*.html',
'templates/{,*/}*.html',
'bower_components/**/*',
'images/{,*/}*.{webp}',
'fonts/*'
]
Expand All @@ -242,6 +241,12 @@ module.exports = function (grunt) {
dest: '.tmp/styles/',
src: '{,*/}*.css'
},
fonts: {
expand: true,
cwd: 'app/bower_components/ionic/release/fonts/',
dest: '<%%= yeoman.app %>/fonts/',
src: '*'
},
vendor: {
expand: true,
cwd: '<%%= yeoman.app %>/vendor',
Expand All @@ -253,15 +258,21 @@ module.exports = function (grunt) {
concurrent: {
server: [<% if (compass) { %>
'compass:server',<% } %>
'copy:styles'
'copy:styles',
'copy:vendor',
'copy:fonts'
],
test: [<% if (compass) { %>
'compass',<% } %>
'copy:styles'
'copy:styles',
'copy:vendor',
'copy:fonts'
],
dist: [<% if (compass) { %>
'compass:dist',<% } %>
'copy:styles'
'copy:styles',
'copy:vendor',
'copy:fonts'
]
},

Expand Down Expand Up @@ -337,7 +348,6 @@ module.exports = function (grunt) {
'clean:server',
'bower-install',
'concurrent:server',
'copy:vendor',
'autoprefixer',
'connect:livereload',
'watch'
Expand All @@ -349,7 +359,6 @@ module.exports = function (grunt) {
'bower-install',
'useminPrepare',
'concurrent:dist',
'copy:vendor',
'autoprefixer',
'concat',
'ngmin',
Expand Down

0 comments on commit 9b922e2

Please sign in to comment.