Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.
/ scripts Public archive

DEPRECATED: Update dependency version, audit fix and release script

License

Notifications You must be signed in to change notification settings

nodeshift-archived/scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED

This repository contains scripts to help to update and release the examples.

Since each example has more than one branch, these scripts help automate simple tasks.

Audit-fix script

The audit-fix.sh script goes through all examples applying npm install and npm audit fix.

This is useful to automate dependency remediation to remove vulnerability warnings.

This script is good to use when we start to notice a good amount of warnings reported by npm audit.

How to use

$ git clone [email protected]:nodeshift-starters/scripts.git
$ cd scripts
$ ./audit-fix.sh

WARNING: Please be sure you are running this script
inside an empty directory. This script will try to 
remove the 'repositories' directory before to start 
the process.

Continue (y/n)? y

Wait until finish.

Update script

The update.sh script goes through all examples changing the package.json with the respective version of dependency informed inside the script.

This is useful to:

  1. Automate dependency updates.
  2. Have a central point to configure the same version of foo dependency across the examples.
  3. Avoid to have different examples using different versions of foo dependency.

This script is good to use when greenkeeper send a pull request to update a specific version to specific example on master branch and/or when we know a dependency needs to be updated for some reason. The script will update all the examples and branches to keep them consistent.

Some dependencies are not covered by this script like standard-version and xo, because both has extra configuration inside package.json.

How to use

$ git clone [email protected]:nodeshift-starters/scripts.git
$ cd scripts

Edit the script by changing only the numbers of the dependency you want, then commit and push the changes using the following message pattern:

$ chore: update to nodeshift 3.1.1

Run the script:

$ ./update.sh

WARNING: Please be sure you are running this script
inside an empty directory. This script will try to 
remove the 'repositories' directory before to start 
the process.

Continue (y/n)? y

Wait until finish.

About

DEPRECATED: Update dependency version, audit fix and release script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages