Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

auto-push-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

auto-push-webpack-plugin

Automated push to specified branch after build

unpublished
latest
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

AutoPushWebpackPlugin

  • 打包完成后自动推动到指定分支

  • 仅支持 git ssh 连接 请确保有推送权限

  • 默认分支为 dist

  • 请添加 .gitignore 忽略 .auto_push_dir 目录

  • 支持 Webapck 4.x

  • 安装

  # use npm
  npm install auto-push-webpack-plugin
  # or yarn
  yarn add auto-push-webpack-plugin
  • 使用(在TS中)
  // webpack configure
  const webpackConfigure: webpack.Configure = {
    plugins: [
      // ... other plugins
      new AutoPushWebpackPlugin({
        // is required
        repo: 'git@github.com:heyikang/auto-push-webpack-plugin.git',
        branch: 'dist' // default value dist
        sleep: 2000, // default value 2000 type is number
      })
    ]
  }
  • 使用(在JS中)
  // webpack configure
  module.exports = {
    plugins: [
      // ... other plugins
      new AutoPushWebpackPlugin({
        // is required
        repo: 'git@github.com:heyikang/auto-push-webpack-plugin.git',
        branch: 'dist' // default value dist
        sleep: 2000, // default value 2000 type is number
      })
    ]
  }

License

MIT

Keywords

git

FAQs

Package last updated on 11 Jun 2019

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