gwwwunt
Provides a web interface for your grunt tasks listed in a yaml file
Last updated 5 years ago by markysparky .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gwwwunt 
SYNC missed versions from official npm registry.

gwwwunt

This is a work in progress, DO NOT USE IN PRODUCTION. It may not work yet in your environment and has only been tested in with the load-grunt-config module.

Provides a web interface for your grunt tasks listed in a yaml file. Lets you run grunt tasks from the web page and displays console output.

Getting Started

This plugin requires Grunt.

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install gwwwunt --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('web-gwwwunt');

The "gwwwunt" task

Overview

In your project's Gruntfile, add a section named gwwwunt to the data object passed into grunt.initConfig().

grunt.initConfig({
  web_interface: {
    options: {
      // Task-specific options go here.
        port: 3007,
        yamlPath: '.grunt/aliases.yaml',
        keepAlive: true
    },
    your_target: {
      // Target-specific file lists and/or options go here.
    },
  },
})

Options

options.port

Type: String Default value: '3007'

A string value that is used to do something with whatever.

options.yamlPath

Type: String Default value: '.grunt/aliases.yaml'

A string value that is used to do something else with whatever else.

options.keepAlive

Type: Boolean Default value: false

Usage Examples

Default Options

In this example, the default options are used to read the yaml data fro the .grunt folder. So if you use load-grunt-config your tasks will be listed on http://localhost:3007

grunt.initConfig({
  gwwwunt: {
    options: {},
    server: {
    },
  },
})

Custom Options

In this example, we are setting a custom port fir the web interface to 3008 and also running a keep-alive script to keep the server running.

grunt.initConfig({
  gwwwunt: {
    options: {
      port: '3008',
      keepAlive: true
    },
    server: {
    },
  },
})

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

(Nothing yet)

License

Copyright (c) 2015 Mark Caulfield. Licensed under the MIT license.

Current Tags

  • 0.0.7                                ...           latest (5 years ago)

6 Versions

  • 0.0.7                                ...           5 years ago
  • 0.0.6                                ...           5 years ago
  • 0.0.5                                ...           5 years ago
  • 0.0.4                                ...           5 years ago
  • 0.0.3                                ...           5 years ago
  • 0.0.2                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 0
Last Month 1
Dependencies (7)
Dev Dependencies (6)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |