@jayvee-digital-labs/scripts
v1.2.7
Published
Helper Scripts that help deploy to other random stuff
Readme
JVDL Scripts
This repository contains a collection of useful scripts to automate various tasks.
Installation
To install the @jayvee-digital-labs/scripts package, run the following command:
npm install -g @jayvee-digital-labs/scriptsScripts
jvdl-local-publish
The jvdl-local-publish script is designed to streamline the process of publishing your project locally. It performs the following tasks:
- Runs tests.
- Updates the version based on the commit message.
- Creates a git tag.
- Pushes changes to the main branch.
- Builds the Storybook static files.
- Deploys to Firebase hosting.
- Publishes to NPM.
This script is intended to be used locally as a temporary CI/CD process or if your CI/CD pipeline is broken.
For more detailed information on how to use the local-publish script, please refer to the local-publish README.
jvdl-standardize-repo
The jvdl-standardize-repo script helps to standardize a repository by installing required packages, setting up Husky hooks, copying configuration files, merging JSON files, building a Docker image, and more. It performs the following tasks:
- Installs necessary npm packages such as
rimraf,husky,cypress,commitizen,prettier, and others. - Creates a
.huskydirectory and adds pre-commit and pre-push hooks. - Copies various configuration files and directories to the root of the repository.
- Merges
package.jsonandtsconfig.jsonwith the existing ones in the repository. - Builds a Docker image for Cypress visual regression tests.
This script should only be used on web applications with TypeScript enabled. If any step fails, the script will automatically rollback the changes.
For more detailed information on how to use the standardize-repo script, please refer to the standardize-repo README.
License
This project is licensed under the MIT License.
