Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@devly/devly-apache

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devly/devly-apache

Apache plugin for `@devly` cli manager built with redux and yargs.

  • 2.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by600%
Maintainers
1
Weekly downloads
 
Created
Source

Introduction

Apache plugin for @devly cli manager built with redux and yargs.

Installation

To add devly-apache plugin to your project, first make sure your project is set-up to consume Devly plugins (see https://github.com/aorinevo/devly-example#introduction).

Next, install @devly/devly-apache:

npm i @devly/devly-apache

Integration

Use addApacheConfig action creator to update the apache state in the devly-store. It is recommended to place the initialState for apache in a manifests/apache.js file and requiring that file within the file that dispatches the action.

// mainfests/apache.js

module.exports = {
  projectPath: '/etc/apache2',
  configBarrels: [
    {
      fileName: 'test-main.conf',
      content: 'some content',
      directory: 'other',
    },
  ],
  certificatesAndKeys: [
    {
      fileName: 'cert.crt',
      content: 'some cert 1',
      directory: 'cert',
    },
    {
      fileName: 'cert.key',
      content: 'some key 1',
      directory: 'cert',
    },
    {
      fileName: 'server.crt',
      content: 'some cert 2',
      directory: 'cert',
    },
    {
      fileName: 'server.key',
      content: 'some key 2',
      directory: 'cert',
    },
  ],
};

It is recommended that the consumer create a plugins/index.js barrel file for the devly plugins it consumes.

// plugins/index.js

require('./apache.js');

// plugins/apache.js
const {store} = require('@devly/devly-store');
const {addApacheConfig, addApacheCommands} = require('@devly/devly-apache/actions');
const {dispatch} = store;

require('@devly/devly-apache');

dispatch(addApacheConfig(require('./manifests/apache')));

dispatch(addApacheCommands());

Keywords

FAQs

Package last updated on 23 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc