mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(grunt): adds load-grunt-tasks module
kills some lines of code :)
This commit is contained in:
@@ -105,13 +105,7 @@ 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.loadNpmTasks('grunt-contrib-cssmin');
|
||||
require('load-grunt-tasks')(grunt);
|
||||
|
||||
grunt.registerTask('default', [
|
||||
'jshint',
|
||||
|
||||
@@ -14,7 +14,8 @@
|
||||
"grunt-contrib-jshint": "~0.6.4",
|
||||
"grunt-contrib-sass": "~0.5.0",
|
||||
"karma-jasmine": "~0.1.3",
|
||||
"karma-chrome-launcher": "~0.1.0"
|
||||
"karma-chrome-launcher": "~0.1.0",
|
||||
"load-grunt-tasks": "~0.2.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "./node_modules/.bin/karma start ionic.conf.js --single-run --browsers Firefox"
|
||||
|
||||
Reference in New Issue
Block a user