@wpackio/cli
v6.4.0
Published
Commandline tool to quickly bootstrap wpackio-scripts to your project.
Maintainers
Readme
@wpackio/cli
A cli tooling intended to be used with npx to quickly add needed dependencies
to your WordPress theme/plugin project.
For more information, check our website wpack.io.
Installation
If using yarn
yarn global add @wpackio/clior with npm
npm i -g @wpackio/cliIt creates a wpackio-cli binary to your system. Run it with
wpackio-cli --client yarnNOTE: This is not intended to be used locally, rather globally or with
npx. See usage instruction below.
Usage
To add @wpackio/scripts dependency to your project, run this tool.
npx @wpackio/cliOptions
`-c, --client [npm|yarn]
Specify which npm client you want to use, yarn or npm.
It tries to detect automatically, if yarn.lock file is present in the directory.
But it can be overridden with -c.
npx @wpackio/cli --client yarnDevelopment
This package has the same npm scripts as this monorepo. These should be run
using lerna run <script>. More information can be found under CONTRIBUTION.md.
build: Use babel to build for nodejs 8.6+. Files insidesrcare compiled and put underlib. All type definitions are stripped and individual type declaration files are created.prepare: Runbuildafteryarnand beforepublish.lint: Lint all files using eslint.test: Run tests on files using jest.
