cssx-framework-cli
v0.1.12
Published
A CLI tool to handle building and running CSSX projects.
Downloads
30
Readme
Overview
Commands
cssx
- runs project from within the current directorycssx build
- builds the cssx files into static html assets, placing them into the output directory specified in the configuration file
Configuration
Using a cssx.json
configuration file in the root directory can override the default configuration.
port
(default: 3000): The port number for serving local siterouteDir
(default: "./routes"): The relative directory path to where the site's route pages can be locateddefaultRoute
(default: "/home"): The default route for the application. N.B.: this needs to match to one of the existing page routes in the site'srouteDir
assetsDir
(default: undefined): Controls whether to serve assets such as images to the app, by providing the directory in which those assets can be foundoutputDir
(default: "./dist"): The output directory where built files will be placed via the build command
Example
{
"port": 3000,
"routeDir": "./routes",
"defaultRoute": "/home",
"assetsDir": "assets",
"outputDir": "./dist"
}
ToDo
- Handle common CLI args for building project, and running from another directory, etc.