Installation
tip
The following instruction will use yarn
as default pacakge manager, you can use npm
or pnpm
instead.
Install locally
better-scripts
is recommend to be installed as a dev dependency.
- Yarn
- Npm
- Pnpm
yarn add better-scripts -D
npm install better-scripts --save-dev
pnpm add better-scripts -D
Install globally
- Yarn
- Npm
- Pnpm
yarn global add better-scripts
npm install better-scripts -g
pnpm global add better-scripts
Add a simplified script in package.json
package.json
{
"scripts": {
...
"scripts": "better-scripts"
}
}
Run
yarn scripts