1.0.2-dev • Published 3 years ago

create-lucid-app v1.0.2-dev

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

create-lucid-app

A package to create a scaffold for a new Lucid.js app.

It unpacks the scaffold files and installs the http-server package as a dev-dependency.

Usage

npx create-lucid-app
cd lucid-app

Arguments

Valid arguments are:

  • <app-name> - the name for your app (default: "lucid-app"). This will form the name of the directory created to host your app. It will not populate the name field in your package.json. You can set that to whatever you want manually.
  • -scf - set up Lucid to use a single file for all components, rather than the default of having each component in its own, separate file (default: false).
  • -psr - set up Lucid to use push-state-based routes rather than hash-based routes (default: false).
  • -p:<port> - specify a different port for the server to run on (default: 8080)

For example, to begin a new Lucid app called 'my-app', running on port 3000, run:

npx create-lucid-app my-app -p:3000

Server

The server will automatically start after installation, and your app will be accessible on localhost:8080. To restart the server later you can run:

npm run server
#or
yarn server