How to use the prompt.buildType function in prompt

To help you get started, we’ve selected a few prompt examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github albanx / real-uploader / Gruntfile.js View on Github external
then: function (results, done) {
                        var buildType = results['prompt.buildType'];
                        if (results['prompt.execute']) {
                            grunt.config.set('buildType', results['prompt.buildType']);

                            if (buildType === 'build') {
                                grunt.task.run(['doBuild']);
                            } else if (buildType === 'generateDoc') {
                                grunt.task.run(['generateDoc']);
                            } else if (buildType === 'i18n') {
                                grunt.task.run(['i18n']);
                            }
                        }
                    }
                }
github albanx / real-uploader / Gruntfile.js View on Github external
then: function (results, done) {
                        var buildType = results['prompt.buildType'];
                        if (results['prompt.execute']) {
                            grunt.config.set('buildType', results['prompt.buildType']);

                            if (buildType === 'build') {
                                grunt.task.run(['doBuild']);
                            } else if (buildType === 'generateDoc') {
                                grunt.task.run(['generateDoc']);
                            } else if (buildType === 'i18n') {
                                grunt.task.run(['i18n']);
                            }
                        }
                    }
                }