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

@@ -6,7 +6,7 @@ import (
"os"
"path/filepath"
"github.com/CarGDev/strata/internal/generator"
"github.com/CarGDev/strata-compile/internal/generator"
)
func runBuild(analyze bool, watch bool) {
@@ -89,7 +89,7 @@ func startPreviewServer(port int) {
distDir := filepath.Join(cwd, "dist")
if _, err := os.Stat(distDir); os.IsNotExist(err) {
log.Fatal("No build found. Run 'strata build' first.")
log.Fatal("No build found. Run 'strata-compile build' first.")
}
fmt.Printf("\n Preview server running at http://localhost:%d\n", port)

View File

@@ -8,8 +8,8 @@ import (
"path/filepath"
"runtime"
"github.com/CarGDev/strata/internal/server"
"github.com/CarGDev/strata/internal/watcher"
"github.com/CarGDev/strata-compile/internal/server"
"github.com/CarGDev/strata-compile/internal/watcher"
)
func startDevServer(port int, open bool) {

View File

@@ -11,7 +11,7 @@ var version = "0.1.0"
func main() {
rootCmd := &cobra.Command{
Use: "strata",
Use: "strata-compile",
Short: "Strata - Static Template Rendering Architecture",
Version: version,
}

View File

@@ -1,4 +1,4 @@
module github.com/CarGDev/strata
module github.com/CarGDev/strata-compile
go 1.22

View File

@@ -11,8 +11,8 @@ import (
"strings"
"time"
"github.com/CarGDev/strata/internal/ast"
"github.com/CarGDev/strata/internal/parser"
"github.com/CarGDev/strata-compile/internal/ast"
"github.com/CarGDev/strata-compile/internal/parser"
)
// StaticCompiler compiles .strata files to pure HTML at build time

View File

@@ -4,7 +4,7 @@ import (
"regexp"
"strings"
"github.com/CarGDev/strata/internal/ast"
"github.com/CarGDev/strata-compile/internal/ast"
)
// StrataParser parses .strata files

View File

@@ -11,9 +11,9 @@ import (
"sync"
"time"
"github.com/CarGDev/strata/internal/ast"
"github.com/CarGDev/strata/internal/compiler"
"github.com/CarGDev/strata/internal/parser"
"github.com/CarGDev/strata-compile/internal/ast"
"github.com/CarGDev/strata-compile/internal/compiler"
"github.com/CarGDev/strata-compile/internal/parser"
"github.com/gorilla/websocket"
)