README
@lamnhan/unistylus-tools
Tools for the Unistylus framework.
Getting started
- Install & init
npx @lamnhan/unistylus-tools init
- Install globally:
npm install -g @lamnhan/unistylus-tools
Add to a project:
unistylus init
Add your own soul src/
, edit the .unistylusrc.json
.
Generate distribution:
unistylus generate
Next, see the homepage: https://unistylus.lamnhan.com
Command overview
Tools for the Unistylus framework.
unistylus clean|del|d <path>
unistylus copy|c [items...] --src [value] --out [value] --clean
unistylus generate|g [path] --api
unistylus init|i [path]
unistylus help
unistylus *
Command reference
clean
clean
Clean a folder.
Usage:
unistylus clean <path>
unistylus del <path>
unistylus d <path>
Parameters:
<path>
: The<path>
parameter.
copy
copy
Copy resources
Usage:
unistylus copy [items...] --src [value] --out [value] --clean
unistylus c [items...] --src [value] --out [value] --clean
Parameters:
[items...]
: List of items
Options:
-s, --src [value]
: Source of items.-o, --out [value]
: Copy destination.-c, --clean
: Clean the output first.
generate
generate
Generate content.
Usage:
unistylus generate [path] --api
unistylus g [path] --api
Parameters:
[path]
: Custom path to the project
Options:
-a, --api
: Output the API.
init
init
Add Unistylus tools to a project.
Usage:
unistylus init [path]
unistylus i [path]
Parameters:
[path]
: Custom path to the project
help
help
Display help.
Usage:
unistylus help
*
*
Any other command is not suppoted.
Usage:
unistylus <cmd>
License
@lamnhan/unistylus-tools is released under the MIT license.