0.11.1 • Published 7 years ago

pyarn v0.11.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

pyarn

pyarn is a super-powered wrapper around Yarn and npm that provides you with useful commands for working with your projects. The hope in the future is that a lot of these ideas will make it back into Yarn and/or npm.

Installation

First be sure that you have Node/npm and Yarn installed. Then run the following command:

yarn global add pyarn

Commands

Note: pyarn is under active development and some of these commands have not yet been implemented.

CommandDescription
pyarn(Defaults to pyarn install)
pyarn [unknown command](Defaults to pyarn run [unknown command])
pyarn helpView pyarn's help content
pyarn help [command]View pyarn's help content for a single command
pyarn initCreate a new pyarn package in the current directory
pyarn init --yesSkip the prompts and use defaults
pyarn installInstall all the dependencies for a project
pyarn add [dependency]Add a dependency
pyarn upgrade [dependency]Upgrade a dependency
pyarn versionUpdates the version of your package(s)
pyarn publishPublish new version(s) of your package(s) to npm
pyarn publish-lockLock your package(s) on the npm registry
pyarn publish-unlockUnlock your package(s) on the npm registry
pyarn run [script]Run a script in a package
pyarn buildBuild your package(s) (Default: Babel)
pyarn testTest your package(s) (Default: Jest)
pyarn format/fmtFormat the files in your package(s) (Default: Prettier)
pyarn lintLint your package(s) (Default: ESLint)
pyarn docGenerate docs (Default: Documentation.js)
pyarn checkType check your package(s) (Default: Flow)
pyarn workspaces/wsRun the following commands across all workspaces:
pyarn ws run [script]Run a script in every package
pyarn ws upgrade [dependency]Upgrade a dependency from every package that depends on it
pyarn ws remove [dependency]Remove a dependency from every package that depends on it
pyarn ws ... --only [name glob]Filter workspaces by name
pyarn ws ... --ignore [name glob]Filter out workspaces by name
pyarn ws ... --only-fs [file glob]Filter workspaces by file path
pyarn ws ... --ignore-fs [file glob]Filter out workspaces by file path
pyarn workspace/w [name]Run the following commands on a single workspace:
pyarn w [name] run [script]Run a script in a single workspace
pyarn w [name] add [dependency]Add a dependency to a single workspace
pyarn w [name] upgrade [dependency]Upgrade a dependency in a single workspace
pyarn project/pRun the following commands on your project package:
pyarn p run [script]Run a script on the project package
pyarn p add [dependency]Add a dependency to the project package
pyarn p remove [dependency]Remove a dependency from the project package
pyarn p upgrade [dependency]Upgrade a dependency on the project package
pyarn generate/g [generator]Create files in your package using a generator:
pyarn g license [license]Create a LICENSE file in your package (Default: MIT)