@essex/scripts
A set of scripts to make a essex javascript engineer's life easier
Last updated 20 days ago by darthtrevino .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @essex/scripts 
SYNC missed versions from official npm registry.

@essex/scripts

This package provides scripts for common build tooling for the essex team. The philosophy of these scripts are to provide a recommended configuration while allowing for escape-hatching.

Setup

Add the following configuration to your package.json. If you're in a monorepo, this should be defined at the top level:

{
	"devDependencies": {
		"@essex/scripts": "<latest version>"
	},
	"prettier": "@essex/prettier-config",
	"husky": {
		"hooks": {
			"pre-commit": "essex pre-commit",
			"commit-msg": "essex commit-msg"
		}
	}
}

The prettier section allows for pretty-quick (used by our build system) and Visual Studio Code to detect the active prettier configuration.
The husky section wires our scripts into the husky hooks.

Additional build tooling is wired in via invoking essex. Check out the available scripts and recipes below.

Scripts

Scripts are invoked via the essex CLI tool. Commands are in the form essex <commmand> <options>.
To view detailed options, run essex <command> --help or essex --help

Recipes

{
	"name": "monorepo-root",
	"private": true,
	"scripts": {
		/* orchestrate child packages */
		"clean": "lerna run clean --stream --parallel",
		"build": "lerna run build --stream",
		"build:ci": "lerna run build --stream -- --docs",
		"bundle": "lerna run bundle --stream",

		/* use @essex/scripts for top-level checks */
		"lint": "essex lint",
		"lint:ci": "essex lint --docs",
		"test": "essex test",
		"test:ci": "essex test --coverage",

		/* hook for CI builds */
		"ci": "run-s lint:ci build:ci bundle test:ci"
	}
}
{
	"name": "library-package",
	"version": "1.0",
	"main": "dist/cjs/index.js",
	"module": "dist/esm/index.js",
	"types": "dist/types/index.d.ts",
	"scripts": {
		"build": "essex build",
		"clean": "essex clean",
		"start": "essex watch"
	}
}
{
	"name": "webpack-app",
	"private": true,
	"scripts": {
		"bundle": "essex bundle",
		"clean": "essex clean build",
		"start": "essex serve"
	}
}
{
	"name": "storybook-app",
	"private": true,
	"scripts": {
		"clean": "essex clean storybook-static",
		"start": "essex start-storybook",
		"bundle": "essex build-storybook"
	}
}

Current Tags

  • 12.0.1                                ...           latest (20 days ago)

85 Versions

  • 12.0.1                                ...           20 days ago
  • 12.0.0                                ...           a month ago
  • 11.0.1                                ...           a month ago
  • 11.0.0                                ...           a month ago
  • 10.0.1                                ...           a month ago
  • 10.0.0                                ...           3 months ago
  • 9.2.3                                ...           3 months ago
  • 9.2.2                                ...           3 months ago
  • 9.2.1                                ...           3 months ago
  • 9.2.0                                ...           3 months ago
  • 9.1.2                                ...           4 months ago
  • 9.1.1                                ...           4 months ago
  • 9.1.0                                ...           4 months ago
  • 9.0.3                                ...           4 months ago
  • 9.0.2                                ...           4 months ago
  • 9.0.1                                ...           4 months ago
  • 9.0.0                                ...           4 months ago
  • 8.0.16                                ...           4 months ago
  • 8.0.8                                ...           4 months ago
  • 8.0.15                                ...           4 months ago
  • 8.0.14                                ...           4 months ago
  • 8.0.13                                ...           4 months ago
  • 8.0.12                                ...           4 months ago
  • 8.0.11                                ...           4 months ago
  • 8.0.10                                ...           4 months ago
  • 8.0.9                                ...           4 months ago
  • 8.0.7                                ...           4 months ago
  • 8.0.6                                ...           4 months ago
  • 8.0.5                                ...           4 months ago
  • 8.0.4                                ...           4 months ago
  • 8.0.3                                ...           4 months ago
  • 8.0.2                                ...           4 months ago
  • 8.0.1                                ...           4 months ago
  • 8.0.0                                ...           4 months ago
  • 8.0.0-alpha.38                                ...           4 months ago
  • 8.0.0-alpha.37                                ...           4 months ago
  • 8.0.0-alpha.36                                ...           4 months ago
  • 8.0.0-alpha.35                                ...           4 months ago
  • 8.0.0-alpha.34                                ...           4 months ago
  • 8.0.0-alpha.33                                ...           4 months ago
  • 8.0.0-alpha.32                                ...           4 months ago
  • 8.0.0-alpha.31                                ...           4 months ago
  • 8.0.0-alpha.30                                ...           4 months ago
  • 8.0.0-alpha.29                                ...           4 months ago
  • 8.0.0-alpha.28                                ...           4 months ago
  • 8.0.0-alpha.27                                ...           4 months ago
  • 8.0.0-alpha.26                                ...           4 months ago
  • 8.0.0-alpha.25                                ...           4 months ago
  • 8.0.0-alpha.24                                ...           4 months ago
  • 8.0.0-alpha.23                                ...           4 months ago
  • 8.0.0-alpha.22                                ...           4 months ago
  • 8.0.0-alpha.21                                ...           4 months ago
  • 8.0.0-alpha.20                                ...           4 months ago
  • 8.0.0-y.0 [deprecated]           ...           4 months ago
  • 8.0.0-alpha.18                                ...           4 months ago
  • 8.0.0-alpha.17                                ...           4 months ago
  • 8.0.0-alpha.16                                ...           4 months ago
  • 8.0.0-alpha.15                                ...           4 months ago
  • 8.0.0-alpha.14                                ...           4 months ago
  • 8.0.0-alpha.13                                ...           4 months ago
  • 8.0.0-alpha.12                                ...           4 months ago
  • 8.0.0-alpha.11                                ...           5 months ago
  • 8.0.0-alpha.10                                ...           5 months ago
  • 8.0.0-alpha.9                                ...           5 months ago
  • 8.0.0-alpha.8                                ...           5 months ago
  • 8.0.0-alpha.7                                ...           5 months ago
  • 8.0.0-alpha.6                                ...           5 months ago
  • 8.0.0-alpha.5                                ...           5 months ago
  • 8.0.0-alpha.4                                ...           5 months ago
  • 8.0.0-alpha.3                                ...           5 months ago
  • 8.0.0-alpha.2                                ...           5 months ago
  • 8.0.0-alpha.1                                ...           5 months ago
  • 8.0.0-alpha.0                                ...           5 months ago
  • 7.4.0                                ...           5 months ago
  • 7.4.0-alpha.3                                ...           5 months ago
  • 7.4.0-alpha.2                                ...           5 months ago
  • 7.4.0-alpha.1                                ...           5 months ago
  • 7.3.2                                ...           5 months ago
  • 7.3.1                                ...           5 months ago
  • 7.3.0                                ...           5 months ago
  • 7.2.0                                ...           5 months ago
  • 7.1.0                                ...           6 months ago
  • 7.0.4                                ...           6 months ago
  • 7.0.3                                ...           6 months ago
  • 7.0.2                                ...           6 months ago
Downloads
Today 0
This Week 1
This Month 0
Last Day 1
Last Week 0
Last Month 104
Dev Dependencies (11)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |