feat: initial release of Strata framework v0.1.0

- Static compiler with STRC pattern (Static Template Resolution with
   Compartmentalized Layers)
   - Template syntax: { } interpolation, { s-for }, { s-if/s-elif/s-else
    }
   - File types: .strata, .compiler.sts, .service.sts, .api.sts, .sts,
   .scss
   - CLI tools: strata-compile dev, strata-compile build, strata-compile
    g (generators)
   - create-strata-compile scaffolding CLI with Pokemon API example
   - Dev server with WebSocket HMR (Hot Module Replacement)
   - Documentation: README, ARCHITECTURE, CHANGELOG, CONTRIBUTING,
   LICENSE
This commit is contained in:
2026-01-16 09:13:14 -05:00
parent 9e451469f5
commit a63a758cc5
19 changed files with 160 additions and 161 deletions

View File

@@ -126,7 +126,7 @@ This installs:
```bash
# Create a new Strata project
npx create-strata my-app
npx create-strata-compile my-app
# Navigate to project
cd my-app
@@ -156,13 +156,13 @@ Output is in the `dist/` folder - pure static HTML ready for any hosting.
```bash
# Development server with HMR
strata dev [--port 3000] [--open]
strata-compile dev [--port 3000] [--open]
# Production build
strata build [--output dist]
strata-compile build [--output dist]
# Preview production build
strata preview [--port 4000]
strata-compile preview [--port 4000]
```
### Generator Commands
@@ -171,7 +171,7 @@ Generate new files with the correct structure:
```bash
# Generate a component
strata g component Button
strata-compile gcomponent Button
# Creates: src/components/Button/
# ├── Button.strata
# ├── Button.compiler.sts
@@ -179,7 +179,7 @@ strata g component Button
# └── Button.scss
# Generate a page
strata g page about
strata-compile gpage about
# Creates: src/pages/about/
# ├── about.strata
# ├── about.compiler.sts
@@ -187,30 +187,30 @@ strata g page about
# └── about.scss
# Generate a service
strata g service auth
strata-compile gservice auth
# Creates: src/services/auth.service.sts
# Generate an API contract
strata g api users
strata-compile gapi users
# Creates: src/api/users.api.sts
# Generate a utility
strata g util format
strata-compile gutil format
# Creates: src/utils/format.sts
# Generate a store
strata g store cart
strata-compile gstore cart
# Creates: src/stores/cart.store.sts
```
### Shorthand Commands
```bash
strata g c Button # component
strata g p about # page
strata g s auth # service
strata g a users # api
strata g u format # util
strata-compile gc Button # component
strata-compile gp about # page
strata-compile gs auth # service
strata-compile ga users # api
strata-compile gu format # util
```
---