create-lucid-app
v1.0.2-dev
Published
A package to create a scaffold for a new [Lucid.js](https:mitya.uk/projects/lucid) app.
Downloads
2
Readme
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 thename
field in yourpackage.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