mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Tweaked to use ionicon test from ben.
This commit is contained in:
16
Gruntfile.js
16
Gruntfile.js
@ -21,6 +21,10 @@ module.exports = function(grunt) {
|
||||
],
|
||||
dest: 'dist/<%= pkg.name %>.js'
|
||||
},
|
||||
cssWithIcons: {
|
||||
src: ['ionicons/style.css', 'dist/ionic.css'],
|
||||
dest: 'dist/ionicIcons.css'
|
||||
},
|
||||
distAngular: {
|
||||
src: [
|
||||
'ext/angular/src/*.js'
|
||||
@ -34,6 +38,13 @@ module.exports = function(grunt) {
|
||||
dest: 'dist/<%= pkg.name %>-simple.js'
|
||||
}
|
||||
},
|
||||
copy: {
|
||||
ionicons: {
|
||||
files: [
|
||||
{ expand: true, src: ['ionicons/fonts/*'], dest: 'dist/fonts/', flatten: true}
|
||||
]
|
||||
}
|
||||
},
|
||||
jshint: {
|
||||
files: ['Gruntfile.js', 'js/**/*.js', 'test/**/*.js'],
|
||||
options: {
|
||||
@ -63,7 +74,7 @@ module.exports = function(grunt) {
|
||||
},
|
||||
sass: {
|
||||
files: ['scss/**/*.scss'],
|
||||
tasks: ['sass'],
|
||||
tasks: ['sass', 'concat'],
|
||||
options: {
|
||||
spawn: false
|
||||
}
|
||||
@ -72,10 +83,11 @@ module.exports = function(grunt) {
|
||||
});
|
||||
|
||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||
grunt.loadNpmTasks('grunt-contrib-copy');
|
||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
grunt.loadNpmTasks('grunt-contrib-concat');
|
||||
grunt.loadNpmTasks('grunt-contrib-sass');
|
||||
|
||||
grunt.registerTask('default', ['jshint', 'concat']);
|
||||
grunt.registerTask('default', ['jshint', 'sass', 'concat']);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user