New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mini-publish

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mini-publish

Mini publish system.

latest
Source
npmnpm
Version
0.4.3
Version published
Maintainers
1
Created
Source

mini-publish

Installation

npm install -g mini-publish

Configuration file

You should create a configuration file. Example:

// YOUR-CONFIG-FILE.js
module.exports = {
  name: 'SomeProject',
  sourceDir: __dirname,
  includes: [
    '/some-dir/'
  ],
  ignores: [
    '.git',
    '.DS_Store',
    '.idea',
    '.nyc_output'
    '/node_modules/'
  ],
  exeBefore: [
    `echo "[Echo in local] Prepare files..."`,
  ],
  exeAfter: [
    `echo "[Echo in local] Publish finished"`,
  ],
  remote: {
    host: '127.0.0.1',
    targetDir: '/var/www/some',
    publishBefore: [
      `echo "[Echo in remote server] Files uploading..."`,
    ],
    publishAfter: [
      `echo "[Echo in remote server] Files has been uploaded."`,
    ],
  }
}
  • name: project name
  • sourceDir: the path of project which will be upload to server
  • includes: items will be include for rsync, it takes higher priority then ignores
  • ignores: items will be exclude for rsync
  • remote.host: the remote server, such as fang@example.com
  • remote.port: the remote server port, such as 22, default 22
  • remote.targetDir: the remote directory for project

You can see lib/publish.tmpl for more information.

Usage

mini-publish YOUR-CONFIG-FILE.js

Extras

You can mini-publish in any project other than JavaScript.

Keywords

publish

FAQs

Package last updated on 27 May 2020

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