create-package
The create-package
command creates a new Frontity package in a project. Launch this command from the root of the Frontity project
Arguments
[package-name]
[package-name]
This argument sets the name of your Frontity package. The create-package
command will create a folder named [package-name]
under packages
. It will also add the proper dependency in the package.json
of your Frontity project
[options]
[options]
Option
Description
--namespace <value>
--no-prompt
--open
Output usage information
Examples
Create a custom theme package named
my-custom-project
Environment Variables
FRONTITY_CREATE_PACKAGE_NAME
FRONTITY_CREATE_PACKAGE_NAME
If the CLI cannot find a FRONTITY_CREATE_PACKAGE_NAME
environmental variable, it will prompt for the name of the package
Example:
Last updated
Was this helpful?