@lamnhan/unistylus-toolsdeprecated

Tools for the Unistylus framework.

Usage no npm install needed!

<script type="module">
  import lamnhanUnistylusTools from 'https://cdn.skypack.dev/@lamnhan/unistylus-tools';
</script>

README

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.

Command reference

clean

Clean a folder.

Usage:

unistylus clean <path>
unistylus del <path>
unistylus d <path>

Parameters:

  • <path>: The <path> parameter.

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 content.

Usage:

unistylus generate [path] --api
unistylus g [path] --api

Parameters:

  • [path]: Custom path to the project

Options:

  • -a, --api: Output the API.

init

Add Unistylus tools to a project.

Usage:

unistylus init [path]
unistylus i [path]

Parameters:

  • [path]: Custom path to the project

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.