1.1.1 • Published 5 years ago
@webdevstudios/npm-scripts v1.1.1
WebDevStudios NPM Scripts
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-buildRuns:
wp-scripts buildWhy
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-devExample
"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
Release Process
npm version PATCH|MINOR|MAJORnpm run pack- Create Release on Github
- Attach
webdevstudios-npm-scripts-{version}.tgzto release npm publish