Socket
Book a DemoInstallSign in
Socket

es-scripts

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es-scripts

A toolbox of common scripts for managing frontend projects

latest
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

About

es-scripts is a set of scripts that manages tooling so you can focus on your application and not on configuration of tooling dependencies. These scripts were inspired by react-scripts to bring a set of standards to be used across frontend projects.

Getting started

Install es-scripts into your project:

npm install --save-dev es-scripts

In your package.json file, es-scripts can be invoked in the scripts section:

{
  "name": "my-package",
  "scripts": {
    "test": "es-scripts test",
    "lint": "es-scripts lint",
    "prettify": "es-scripts format"
  }
}

The Scripts

test

This script invokes the jest test runner using mostly defaults. Use es-scripts test --watch to invoke the test runner in watch mode. Including options in the "jest" section within the package.json allows those options to be merged with the default options that are included in this package.

Options

--watch - run Jest in watch mode

--cover - run Jest with a coverage reporter

--report - run Jest with the jest-teamcity-reporter

lint

This script invokes eslint. ESLint is configured to use the recommended rules from the following packages:

eslint:recommended

eslint-plugin-react

es-lint-plugin-jsx-a11y

format

This script invokes prettier to format your source code. It will automatically fix any formatting issues it finds. There is one override to enforce a single quotes on all strings. Take a look at the prettier configuration options to get a better idea of what rules prettier enforces.

FAQs

Package last updated on 28 Nov 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