0.6.5 • Published 4 months ago

coralite v0.6.5

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
4 months ago

Coralite

coralite is a static site generator library built around the emerging HTML modules proposal.

Installation

Before using the Coralite CLI, ensure that it's installed on your system. You can install it globally using npm:

npm install -g coralite
# or
yarn global add coralite
# or
pnpm add -g coralite

You can also install coralite as a development dependency:

npm install --save-dev coralite
# or
yarn add -D coralite
# or
pnpm add -D coralite

Basic Syntax

Coralite is executed using the following command:

coralite [options]

Replace [options] with the desired flags and arguments.

Required Options

To generate a website using Coralite, you must provide three essential options:

  • -t or --templates: The path to your templates directory containing reusable UI elements (e.g., -c ./src/templates).
  • -p or --pages: The path to your pages directory where static HTML files reside (e.g., -p ./src/pages).
  • --output or -o: The output directory for the generated site (e.g., --output ./dist).

Here's an example of how these options might look:

coralite --templates ./path/to/templates --pages ./path/to/pages --output ./dist

Optional Options

-d or --dry-run

Run the CLI in dry-run mode to preview the actions that would be performed without actually generating the website. This is useful for debugging or when you want to check potential issues before committing changes:

coralite --templates ./path/to/templates --pages ./path/to/pages --output ./dist --dry-run

Troubleshooting

Coralite uses ECMAScript Modules which requires to run Node.js with the --experimental-vm-modules option enabled.

node --experimental-vm-modules node_modules/coralite/bin/coralite.js [options]

or using NODE_OPTIONS

NODE_OPTIONS=--experimental-vm-modules coralite [options]
0.6.5

4 months ago

0.6.4

4 months ago

0.6.3

5 months ago

0.6.2

5 months ago

0.6.1

5 months ago

0.6.0

5 months ago

0.5.1

5 months ago

0.5.0

5 months ago

0.4.2

5 months ago

0.3.0

6 months ago

0.4.1

6 months ago

0.4.0

6 months ago

0.2.1

6 months ago

0.2.0

6 months ago

0.0.0-development

6 months ago

0.1.1

6 months ago

0.1.0

6 months ago