create-sea-app v1.0.3
Create Sea App
A command-line tool for quickly setting up a new project with Sea JS using Vite.
Features
- Quickly create a new project with a predefined setup.
- Automatically generates
package.jsonwith the latest versions ofsea-js-ui-coreandvite. - Includes a customizable template for initial project setup.
Installation
Using npx
You can use the CLI without installing it globally by running:
npx create-sea-app <project-name>Global Installation
To install the CLI globally:
npm install -g create-sea-appUsage
After installation, you can use the CLI to create a new project:
create-sea-app <project-name>Replace <project-name> with the desired name of your project. This command will:
- Create a new directory named
<project-name>. - Copy the template files into the new directory.
- Generate a
package.jsonfile with the latest versions ofsea-js-ui-coreandvite.
Example
To create a project named my-app, run:
create-sea-app my-appNavigate to the project directory and install the dependencies:
cd my-app
npm installStart the development server:
npm startConfiguration
The CLI generates a basic project setup with the following configuration:
package.json: Includes scripts for starting, building, and serving the app.- Vite as the build tool.
sea-js-ui-coreas a core dependency.
Template Customization
The CLI uses a default template located in the templates directory. You can customize this template as needed.
Development
To develop or contribute to the CLI:
Clone the repository:
git clone <repository-url>Navigate to the project directory:
cd create-sea-appInstall dependencies:
npm installMake changes to the source code in the
srcdirectory.Link the CLI globally for testing:
npm linkTest the CLI:
create-sea-app <project-name>
Contributing
Contributions are welcome! Please open an issue or submit a pull request with your changes.
License
This CLI is licensed under the MIT License.
Acknowledgements
- Vite - The build tool used in this project.