Skip to content

Latest commit

 

History

History
 
 

preset-next

@solana-developers/preset-next

This library is a preset for create-solana-dapp that adds Next.js support to your project.

Supported generators

next-application

>  NX   generate @solana-developers/preset-next:next-application [name] [options,...]

From:  @solana-developers/preset-next (v0.0.1)
Name:  next-application (aliases: application, preset)

  Generate a Next.js application

Options:
    --name          Name of the application                             [string]
    --anchor        Anchor template to use            [string] [choices: "none",
                                                       "counter", "hello-world"]
                                                            [default: "counter"]
    --anchorName    Anchor project name             [string] [default: "anchor"]
    --port          Port to run the application on      [number] [default: 3000]
    --ui            The UI library to use             [string] [choices: "none",
                                                           "tailwind"] [default:
                                                                     "tailwind"]
    --webName       Name of the web application                         [string]
                    (overrides name)
    --skipFormat    Skip formatting files                              [boolean]

next-template

>  NX   generate @solana-developers/preset-next:next-template [name] [options,...]

From:  @solana-developers/preset-next (v0.0.1)
Name:  next-template (aliases: template)

  Generate a Next.js template

Options:
    --directory                                                         [string]
    --name                                                              [string]
    --npmScope      The npm scope to use                                [string]
    --template      The template to use               [string] [choices: "base",
                                                             "none", "tailwind"]
    --webName       Name of the web application                         [string]
                    (overrides name)
    --anchor        Anchor template to use            [string] [choices: "none",
                                                       "counter", "hello-world"]
                                                               [default: "none"]
    --anchorName    Anchor project name             [string] [default: "anchor"]

More information