@beyond-js/scaffolding
is a command-line tool that helps you generate the basic structure for packages and modules
within the BeyondJS framework. It provides an interactive way to create packages and modules, allowing you to quickly
set up your applications, websites, functions, or modules.
You can install @beyond-js/scaffold
globally using npm:
npm install -g @beyond-js/scaffold
To create a new package, run the following command and follow the interactive prompts:
beyond add package
This command will guide you through creating a new package, specifying its name and desired configuration.
To create a new module within an existing package, run the following command and follow the interactive prompts:
beyond add module
This command will prompt you to select the package and module type, such as start
, ts
, page
, widget
, layout
,
or code
. You can also define your own custom module types.
The following are the default module types provided by @beyond-js/scaffold
:
start
: Represents the entry point or starting module for the package.ts
: TypeScript module.page
: Represents a page module.widget
: Represents a web component or widget module.layout
: Represents a layout module.code
: Represents a generic code module.
You can create modules of these types or define your own custom module types based on your specific needs.
Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request on the GitHub repository.
This project is licensed under the MIT License. See the LICENSE file for more information.