1. @percy/cli
[![Test](https://github.com/percy/cli/workflows/Test/badge.svg)](https://github.com/percy/cli/actions)
@percy/cli
Package: @percy/cli
Created by: percy
Last modified: Fri, 26 Apr 2024 09:08:17 GMT
Version: 1.28.5
License: MIT
Downloads: 1,722,462
Repository: https://github.com/percy/cli

Install

npm install @percy/cli
yarn add @percy/cli

Percy CLI

Test

The Percy CLI is used to interact with, and upload snapshots to, percy.io via
the command line.

Installation

$ npm install --save-dev @percy/cli

Command Topics

Advanced

In addition to the CLI packages, this repo contains core libraries responsible for Percy's CI/CD
integrations, Percy API communication, DOM serialization, asset discovery, etc.

Issues

For problems directly related to the CLI, add an issue on
GitHub
.

For other issues, open a support
request
.

Developing

This project is built with lerna. The core libaries and CLI plugins are
located in ./packages. Run yarn to install dependencies after cloning the repo and
use the following scripts for various development tasks:

  • yarn build - build all packages

  • yarn build:watch - build and watch all packages in parallel

  • yarn clean - clean up build and coverage output

  • yarn lint - lint all packages

  • yarn readme - generate cli commands readme usage

  • yarn test - run all tests, one package after another

  • yarn test:coverage - run all tests with coverage, one package after another

  • yarn global:link - links all packages being developed as global.

    • requires yarn build to be run before consuming.
    • we can then consume this package using
      yarn link @percy/[core|cli..]
    • Note: linking is only required once, subsequent changes for development requires running build command.
  • yarn global:unlink - unlinks all packages globally

Individual package scripts can be invoked using yarn's
workspace command. For example:

$ yarn workspace @percy/core test

How to update Chromium revision?

check in Core Package's readme here.

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin