mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Grunt updated with concat and jshint
Also added initial platform detection thing.
This commit is contained in:
43
Gruntfile.js
43
Gruntfile.js
@ -1,3 +1,44 @@
|
||||
module.exports = function(grunt) {
|
||||
|
||||
}
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
|
||||
concat: {
|
||||
options: {
|
||||
separator: ';'
|
||||
},
|
||||
dist: {
|
||||
src: [
|
||||
'js/ionic.js',
|
||||
'js/platform.js',
|
||||
'js/utils.js',
|
||||
'js/events.js',
|
||||
'js/gestures.js',
|
||||
'js/viewController.js',
|
||||
'js/views/**/*.js',
|
||||
'js/controllers/**/*.js'
|
||||
],
|
||||
dest: 'dist/<%= pkg.name %>.js'
|
||||
}
|
||||
},
|
||||
jshint: {
|
||||
files: ['Gruntfile.js', 'js/**/*.js', 'test/**/*.js'],
|
||||
options: {
|
||||
// options here to override JSHint defaults
|
||||
globals: {
|
||||
jQuery: true,
|
||||
console: true,
|
||||
module: true,
|
||||
document: true
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
grunt.loadNpmTasks('grunt-contrib-concat');
|
||||
|
||||
grunt.registerTask('default', ['jshint', 'concat']);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user