0.2.8 ā€¢ Published 5 months ago

create-spin-app-v1 v0.2.8

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago

Create Spin App šŸŒ€

Create Spin App is a command-line interface (CLI) tool that is based on the Atro CLI. It allows you to easily generate a new application using different templates:

ā—‹ Standalone webapp, powered by Astro ā—‹ Astro Frontend app (Astro / React) ā—‹ Micro-frontend app (React) ā—‹ Micro-frontend app (VanillaJS) ā—‹ Micro-frontend app (Shell) ā—‹ Next Frontend app ( Next SSG ) ā—‹ Next Frontend app ( Next SSR ) ā—‹ Remix Frontend app ( Remix js SSR ) ā—‹ Astro Frontend app (Astro / React SSR) ā—‹ Static website (with Caddy) ā—‹ Static website (with nginx)

Usage

To use Create Spin App, you need to have Node.js and npm (Node Package Manager) installed on your machine.

To create a new application using Create Spin App, you can run the following command:

npx create-spin
  • This will launch the CLI and prompt you to choose a template for your application. Simply select the desired template and follow the instructions to generate your new application.

  • create spin runs in interactive mode by default, but it also provides the option to specify additional templates from a remote repository by passing the URL

    npx create-spin -- --additionnalTemplate https://github.com/mdn/html-examples

Design

ź©œ Spin is a common platform for developing, delivering and hosting frontends.

Templates / Starter kits

  • Create Spin App provides a set of templates that are designed to enhance the developer experience (DX) by providing a ready-to-use project structure with essential configurations.

  • By leveraging these templates, developers can quickly set up their projects with essential tools and configurations, allowing them to focus on building their applications.

Check out the full list of example templates, available on GitHub.

npm.io npm.io npm.io npm.io npm.io npm.io npm.io

Implementation

We try to bring this codebase to some high standards.

ā„¹ļø Spin development key criteria are: functional, performant & elegant.

Part of the codebase structure and code has been borrowed from the amazing Astro project.

CLI Flags

May be provided in place of prompts

NameDescription
--additionnalTemplateSpecify url of remote repository.
--template <name>Specify your template.
--install / --no-installInstall dependencies (or not).
--git / --no-gitInitialize git repo (or not).
--yes (-y)Skip all prompt by accepting defaults.
--no (-n)Skip all prompt by declining defaults.
--dry-runWalk through steps without executing.
--skip-houstonSkip Houston animation.
--typescript <option>TypeScript option: strict / strictest / relaxed.