0.3.1 • Published 3 years ago

wksp v0.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

wksp

yarn workspaces extension

Table of Contents:

  1. Requirements
  2. Running
  3. Examples

Requirements

yarn

node.js

Running

Install

npm i -g wksp

then

wksp <cmd>

shorthand for: yarn workspace \

wksp will detect the package name automatically (if run inside the project folder)

if your current directory is the workspace root you can specify the name

wksp -n my-app <cmd>

shorthand for: yarn workspace \ \

Variadic arguments

Variadic arguments are supported, (any arguments for the command)

wksp add react react-dom react-router
# cli cmd args...

Passing options

Options that are specific to yarn, require an -- --options

wksp add tailwindcss postcss autoprefixer -- --dev
# cli cmd args...                         -- yarn options

this applies when running scripts

wksp start -- --port 3002 --watch
# cli cmd -- script options

Examples

root

cwd: .../monorepo/

projects/
    /client/
    /server/
    /ui-lib/
wksp start -n client

--name

project

cwd: .../monorepo/projects/server

wksp start

wksp will detect the package name related with this folder and run the start script defined in package.json


Have a great idea how we can extend yarn workspaces features ? suggest here

0.3.0

3 years ago

0.3.0-dev.4

3 years ago

0.3.0-dev.3

3 years ago

0.3.0-dev.6

3 years ago

0.3.0-dev.5

3 years ago

0.3.1

3 years ago

0.3.0-dev.2

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.0.1

3 years ago