CLI - cynchro/OldSchoolFrontFrame GitHub Wiki
OLS ships with a Node.js CLI for scaffolding new modules and starter projects.
Requirements: Node.js (only needed for the CLI, not for running the app)
Generates a new module folder inside the example/ app:
node cli/ols.js create module <name>Example:
node cli/ols.js create module clientesCreates:
example/modules/clientes/
├── clientes.html
├── clientes.js
└── clientes.css
After generating, register the module in your app.js:
initApp({
routes: {
clientes: 'clientes', // ← add this
},
});Generates a self-contained starter app in a new folder:
node cli/ols.js create starter <project-name>Example:
node cli/ols.js create starter myappCreates:
myapp/
├── framework/ # OLS core (full copy)
├── modules/
│ └── home/
│ ├── home.html
│ ├── home.js
│ └── home.css
├── config/
│ └── app.yaml
├── index.html
└── app.js
The generated project is completely standalone. Copy it anywhere and serve it with any static HTTP server:
cd myapp
python3 -m http.server 8080node cli/ols.js --helpUsage:
node cli/ols.js create module <name> Create a module in example/
node cli/ols.js create starter <name> Create a standalone starter project