The Mental Model: Global vs Local
[workspace-root]
squeditor
my-project
another-project
squeditor/ directory contains zero template content. Templates contain zero framework logic. Templates reference the framework only via config.framework: '../squeditor' in their config file. Never manually edit files inside the squeditor/ core folder while building a site.
A Look Inside a Project
When you scaffold a new template, your working environment (my-project/) handles data, uncompiled SCSS/PHP, and bundled output securely.
Workspace Breakdown
[workspace-root]
squeditor-framework
scripts
utils
build-components.js
snapshot.js
dev.js
uikit-manifest.json
my-project
squeditor.config.js
src
dist
The src vs dist Relationship
Everything you code happens in the src/ directory.
- You write
.phpfiles insrc/pages/. - You write
.scssfiles insrc/assets/scss/.
npm run build), the framework:
- Compiles the SCSS to Tailwind.
- Boots up a local server.
- Visits every
.phppage you created. - Downloads the output as flat
.htmlfiles. - Saves them perfectly structured inside
dist/.