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:
@@ -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)
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user