Nearsighted Penguin March

    grunt-open-server

    0.1.0 • Public • Published

    grunt-open-server

    Плагин для старта / остановки / перезапуска Open Server

    Getting Started

    This plugin requires Grunt ~0.4.5

    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 grunt-open-server --save-dev

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

    grunt.loadNpmTasks('grunt-open-server');

    The "open-server" task

    Overview

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

    grunt.initConfig({
      "open-server": {
        options: {
          path: "path/to/open-server"
        }
      },
    });

    Tasks

    start

    Task : open-server:start

    Используется для запуска Open Server

    stop

    Task : open-server:stop

    Используется для остановки Open Server

    restart

    Task : open-server:restart

    Используется для перезапуска Open Server

    status

    Task : open-server:status

    Is Open Server running?

    Options

    options.path

    Type: String Default value: null

    Path to Open Server executable file.

    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)

    Install

    npm i grunt-open-server

    DownloadsWeekly Downloads

    1

    Version

    0.1.0

    License

    none

    Last publish

    Collaborators

    • reklatsmasters