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

gridsome-plugin-copy-build

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

gridsome-plugin-copy-build

A plugin for your Gridsome project that lets you copy the files from the dist directory to another directory of your choosing after running a build.

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

Gridsome Plugin Copy Build

A plugin for your Gridsome project that lets you copy the files from the dist directory to another directory of your choosing after running a build.

NPM version Known Vulnerabilities npm NPM downloads issues license Gitter

Why?

While updating by blog powered by Gridsome, I found myself constantly having to copy over the files from the build folder over to another folder that contained by site.github.io project. To solve this problem, I created this plugin so that the files would automatically get copied over after running a build.

Installation

To install this plugin, use:

$ npm install gridsome-plugin-copy-build

Usage

To use this plugin in your Gridsome project, simply go to your gridsome.config.js file and under the plugins section add:

plugins: [
  {
    use: 'gridsome-plugin-copy-build',
    options: {
      targetDir: path.resolve(__dirname, '/path/to/copy/target'),
      verbose: true
    }
  }
]

Options

paramtypedescriptiondefault
optionsObject
options.targetDirstringThe directory to copy the build files to.
options.verbosebooleanIndicates whether info logs should be output to the console or not.false

Tests

To run the tests for this plugin, use:

$ npm run test

License

MIT

Keywords

copy

FAQs

Package last updated on 19 Apr 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