npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vfe-deploy

v2.1.8

Published

vfe deploy module using in vfe-cli or gulpfile.js

Downloads

6

Readme

vfe-deploy

npm version

vfe deploy module for deploying files to remote server.

API

vdeploy(options, callback)

Deploy files to remote server.

Return: Promise

Options:

  • src <String|Array> Likes gulp.src(), specified files those need to deploy. See detail
  • base The folder relative to the cwd. This is used to determine the file names. Can also be a function that takes in a file and returns a folder path. See detail.
  • host which remote server to deploy
  • path what path of remote server to deploy

Noti: Root of diretrory should not naming "packages", otherwise result in error

  • proxy <Boolean|Object> optional, if remote server can't not access directly, using vfe server, params:

    • server Hostname of vfe server, path and host, without protocal, default "vfe.oa.com"
    • app_id optional, specified the app_id that created by vfe server, default "_deploy"

Example:

    var vdeploy = require('vfe-deploy')

    vdeploy({
        src: ['index.js', 'views'],
        host: "10.xx.xx.x:8xxx",
        path: "/data/user/tmp/"
    }, function (err) {
        err && console.error('Error', err)
    })

vdeploy.upload(options, callback)

Upload files to vfe server.

Return: Promise

Options:

  • src <String|Array> Likes gulp.src(), specified files those need to upload
  • server which remote server to upload
  • app_id appid that created by vfe server
  • path what path of remote server to upload

Example:

    var vdeploy = require('vfe-deploy')

    vdeploy.upload({
        src: ['index.js', 'views'],
        server: "10.xx.xx.x:8xxx",
        app_id: 'xxxx',
        path: "/"
    }, function (err) {
        err && console.error('Error', err)
    })

vdeploy.untar(options, callback)

Extract file of remote server.

Return: Promise

Options:

  • host <String> Server host of target file.
  • server <String> Proxy server host, default "vfe.oa.com". Optional
  • file <String> Absolute path of the un-tar file in remote server, could be tar.gz.
  • path <String> Extract tar file to the specified path, could be a relative path of file.
  • clean <Boolean> Whether remove tar file or not after extracting, default false. Optional

Example:

    var vdeploy = require('vfe-deploy')

    vdeploy.untar({
        host: "10.xx.xx.x:8xxx"
        server: "10.xx.xx.x:8xxx",
        file: "/absolute_path_to_tar_file",
        path: "./tmp"
    }).then(function () {
    })