1.0.2-dev • Published 4 years ago
create-lucid-app v1.0.2-dev
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-appArguments
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 thenamefield 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:3000Server
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