Skip to content

Commit 37c90f6

Browse files
author
Olivier Giulieri
committed
Build - copy icons font from bootstrap.
1 parent bdb09a8 commit 37c90f6

7 files changed

Lines changed: 286 additions & 215 deletions

Gruntfile.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,17 @@ module.exports = function (grunt) {
9191
}
9292
},
9393

94+
// *************************************************************************************
95+
// COPY
96+
// *************************************************************************************
97+
copy: {
98+
main: {
99+
files: [
100+
{expand: true, flatten: true, src: ['bower_components/bootstrap/dist/fonts/*'], dest: '<%= pkg.target %>/fonts/'}
101+
]
102+
}
103+
},
104+
94105
// *************************************************************************************
95106
// JSHINT
96107
// *************************************************************************************
@@ -194,6 +205,7 @@ module.exports = function (grunt) {
194205
// GRUNT PLUGIN : tasks
195206
// *************************************************************************************
196207
grunt.loadNpmTasks('grunt-bower-task');
208+
grunt.loadNpmTasks('grunt-contrib-copy');
197209
grunt.loadNpmTasks('grunt-contrib-concat');
198210
grunt.loadNpmTasks('grunt-contrib-jshint');
199211
grunt.loadNpmTasks('grunt-contrib-uglify');
@@ -210,7 +222,7 @@ module.exports = function (grunt) {
210222
grunt.registerTask('dev', ['concat:js', 'less:dev', 'less:demo']);
211223

212224
// Prod task(s).
213-
grunt.registerTask('prod', ['jshint', 'dev', 'concat:demo', 'concat:vendors', 'less:prod', 'uglify']);
225+
grunt.registerTask('prod', ['jshint', 'copy', 'dev', 'concat:demo', 'concat:vendors', 'less:prod', 'uglify']);
214226

215227
};
216228

-208 Bytes
Binary file not shown.

dist/fonts/glyphicons-halflings-regular.svg

Lines changed: 272 additions & 213 deletions
Loading
4.03 KB
Binary file not shown.
104 Bytes
Binary file not shown.
17.6 KB
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"grunt-contrib-concat": "~0.3.0",
2020
"grunt-contrib-uglify": "~0.3.2",
2121
"grunt-contrib-less": "~0.10.0",
22-
"grunt-contrib-copy": "~0.5.0",
22+
"grunt-contrib-copy": "~0.7.0",
2323
"grunt-contrib-jshint": "~0.8.0",
2424
"grunt-bower-task": "~0.3.4"
2525
},

0 commit comments

Comments
 (0)