@unistylus/cli v0.0.12
@unistylus/cli
Tools for the Unistylus framework.
Getting started
- Install & init
npx @unistylus/cli new- Install globally:
npm install -g @unistylus/cliCreate a project:
unistylus newAdd your own collection src/, edit the .unistylusrc.json.
Generate distribution:
unistylus generateNext, see the homepage: https://unistylus.lamnhan.com
Tools for the Unistylus framework.
unistylus add|a <name>unistylus build|b --out [value] --apiunistylus clean|del|d <path>unistylus copy|c [items...] --src [value] --out [value] --cleanunistylus generate|gunistylus install|i <name>unistylus jsunistylus new|n <name> [description] --skip-install --skip-gitunistylus remove|r <name>unistylus serve|s --out [value]unistylus uninstall|un <name>unistylus use|u <name>unistylus helpunistylus *
Add a skin or a part.
Usage:
unistylus add <name>
unistylus a <name>Parameters:
<name>: Name of the skin or part
Build web.
Usage:
unistylus build --out [value] --api
unistylus b --out [value] --apiOptions:
-o, --out [value]: Custom output folder.-a, --api: Output the API.
Clean a folder.
Usage:
unistylus clean <path>
unistylus del <path>
unistylus d <path>Parameters:
<path>: The<path>parameter.
Copy resources
Usage:
unistylus copy [items...] --src [value] --out [value] --clean
unistylus c [items...] --src [value] --out [value] --cleanParameters:
[items...]: List of items
Options:
-s, --src [value]: Source of items.-o, --out [value]: Copy destination.-c, --clean: Clean the output first.
Generate content.
Usage:
unistylus generate
unistylus gInstall a collection.
Usage:
unistylus install <name>
unistylus i <name>Parameters:
<name>: Name of the collection to be added
Build js package.
Usage:
unistylus jsCreate a new collection.
Usage:
unistylus new <name> [description] --skip-install --skip-git
unistylus n <name> [description] --skip-install --skip-gitParameters:
<name>: The collection name[description]: The description
Options:
-i, --skip-install: Do not install dependency packages.-g, --skip-git: Do not initialize a git repository.
Remove a skin or a part.
Usage:
unistylus remove <name>
unistylus r <name>Parameters:
<name>: Name of the skin or part
Serve the collection for development.
Usage:
unistylus serve --out [value]
unistylus s --out [value]Options:
-o, --out [value]: Custom output folder.
Install a collection.
Usage:
unistylus uninstall <name>
unistylus un <name>Parameters:
<name>: Name of the collection to be removed
Use a collection.
Usage:
unistylus use <name>
unistylus u <name>Parameters:
<name>: Name of the collection to changed to
Display help.
Usage:
unistylus helpAny other command is not suppoted.
Usage:
unistylus <cmd>License
@unistylus/cli is released under the MIT license.