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

deployignore

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deployignore

[![npm version](https://badge.fury.io/js/deployignore.svg)](https://badge.fury.io/js/deployignore)

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

deployignore

npm version

What is deployignore?

Deployignore is a package that uses one command, deployignore, to delete a list of files or folders that you specify in a file called deployignore.json. Keep deployignore.json at the root of your project and commit it to source control. When you're ready to deploy your project, simply run the deployignore command in your project directory as part of your CI or other deployment script. This will delete the files and folders in your deployignore.json file.

Getting Started

To install Deployignore:

Install Node and npm if you haven't already.

Install Deployignore via npm: npm install -g deployignore

Create a deployignore.json file: touch deployignore.json

See the example deployignore.json file below to see what goes in that file.

Running deployignore in your project directory with an empty deployignore.json file should return an exit code of 0.

Documentation

Here's an example deployignore.json file:

[
"file1.txt",
"subdir/subsubdir/file2.txt",
"file3.txt",
"subdir/byebyedir"
]

You can run Deployignore anywhere in your project:

~/my-project $ deployignore

~/my-project/bin/models $ deployignore

(both of these work)

Verbose mode gives extra information:

~/my-project $ deployignore --verbose

FAQs

Package last updated on 12 Dec 2017

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