Skip to content
This repository was archived by the owner on Apr 18, 2021. It is now read-only.

WebDevStudios/npm-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebDevStudios NPM Scripts

WebDevStudios. WordPress for big brands.


This package is DEPRECATED and no longer in use at WebDevStudios and will no longer be maintained.


This package, when installed, exposes wds-* scripts that can be run from your package.json's scripts.

Most of the commands simply run their @wordpress/scripts variant, e.g.:

wds-build

Runs:

wp-scripts build

Why

The reason we do this is by having this layer in between your package.json and @wordpress/scripts is we can control, ultimately, what your scripts should do.

For instance, for wds-lint-js we don't use @wordpress/scripts's prettier command, and instead do eslint --fix because that's what WebDevStudio's does.

Install

npm install @webdevstudios/npm-scripts --save-dev

Example

"scripts": {
    "build": "wds-build",
    "lint": "run-s lint:js lint:style",
    "lint:js": "wds-format-js && wds-lint-js",
    "lint:style": "wds-format-styles && wds-lint-style",
    "packages-update": "wds-packages-update",
    "start": "wds-start"
}

Changelog

See Releases on Github

Release Process

  1. On master, run npm version PATCH|MINOR|MAJOR to bump version
  2. git push --tags
  3. npm run pack
  4. Create Release on Github
  5. Attach webdevstudios-npm-scripts-{version}.tgz to release
  6. npm publish

About

Scripts you can run in your package.json scripts.

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages