0.8.1 • Published 3 years ago

@tinloof/remix-cli v0.8.1

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
3 years ago

@tinloof/remix-cli

CLI for creating and updating Remix projects created by Tinloof.

Getting started

Start with npm install -g @tinloof/remix-cli@latest to have the CLI available globally.

šŸ’” You should re-run the install command above whenever there's a new version of the CLI.

Then, you can run tinloof-remix from a terminal for a list of the available commands. Each action is self-documented & guided through prompts.

Architecture

We're using inquirer as the CLI library for prompting users for the input required for the different commands available.

In src/index.ts, we start by checking what is the user's target action and running the appropriate command. Currently, the CLI has the following commands:

  • new: duplicates the template folder into the user's target directory, injecting configuration values like the site's name and the Sanity project ID.
  • build: generates routing-related files. Should be ran before the front-end's build so Remix can access these routes properly.
  • dev: watches your project folder and (1) submits singletons to Sanity, (2) auto-generates routing-related files
  • createBlock: guides you through setting up a new block type in Sanity and the front-end
  • createDocument: similar to createBlock, but for documents
0.8.1

3 years ago

0.8.0

3 years ago

0.7.4

3 years ago

0.7.3

3 years ago

0.7.2

3 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.6.9

3 years ago

0.6.8

3 years ago

0.6.7

3 years ago

0.6.6

3 years ago

0.6.5

3 years ago

0.6.4

3 years ago

0.6.3

3 years ago

0.6.2

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.1

3 years ago

0.5.0

3 years ago

0.4.3

3 years ago

0.4.2

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.2

3 years ago