From 9ad81099982ceac3f768bee620828bf92e405938 Mon Sep 17 00:00:00 2001 From: Randy Hongo Date: Fri, 19 Feb 2016 21:56:47 -0800 Subject: [PATCH] Added task to grunt to use Ionic to generate icon and splash app images. Updated the documention for using the task. --- README.md | 7 +++++++ templates/common/_Gruntfile.js | 3 +++ 2 files changed, 10 insertions(+) diff --git a/README.md b/README.md index eec612f..9e756ed 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,13 @@ Build your Ionic application for the targeted platform. $ grunt build:ios --device --release $ grunt build:android --debug +### `grunt resources` + +Icon and splash image generation for your Ionic application. + + $ grunt resources --icon + $ grunt resources --splash + ### `grunt jshint` While running `grunt serve` or `grunt emulate`, the build system will be watching your filesystem for changes and linting your JavaScript files on the fly. However, you can invoke JSHint manually by using this command to spot check your Ionic app for linting errors. diff --git a/templates/common/_Gruntfile.js b/templates/common/_Gruntfile.js index 20f8fb3..539619c 100644 --- a/templates/common/_Gruntfile.js +++ b/templates/common/_Gruntfile.js @@ -525,6 +525,9 @@ module.exports = function (grunt) { grunt.registerTask('build', function() { return grunt.task.run(['init', 'ionic:build:' + this.args.join()]); }); + grunt.registerTask('resources', function() { + return grunt.task.run(['init', 'ionic:resources:' + this.args.join()]); + }); grunt.registerTask('init', [ 'clean',