@@ -485,6 +485,19 @@ tasks:
485485 cmds :
486486 - task : tsunami:scaffold:internal
487487
488+ tsunami:scaffold:packagejson :
489+ desc : Create package.json for tsunami scaffold using npm commands
490+ dir : tsunami/frontend/scaffold
491+ cmds :
492+ - cmd : " {{.RM}} package.json"
493+ ignore_error : true
494+ - npm --no-workspaces init -y --init-license Apache-2.0
495+ - npm pkg set name=tsunami-scaffold
496+ - npm pkg delete author
497+ - npm pkg set author.name="Command Line Inc"
498+ - npm pkg set author.email="info@commandline.dev"
499+ - npm --no-workspaces install tailwindcss@4.1.13 @tailwindcss/cli@4.1.13
500+
488501 tsunami:scaffold:internal :
489502 desc : Internal task to create scaffold directory structure
490503 dir : tsunami/frontend
@@ -493,12 +506,8 @@ tasks:
493506 - cmd : " {{.RMRF}} scaffold"
494507 ignore_error : true
495508 - mkdir scaffold
496- - cd scaffold && npm --no-workspaces init -y --init-license Apache-2.0
497- - cd scaffold && npm pkg set name=tsunami-scaffold
498- - cd scaffold && npm pkg delete author
499- - cd scaffold && npm pkg set author.name="Command Line Inc"
500- - cd scaffold && npm pkg set author.email="info@commandline.dev"
501- - cd scaffold && npm --no-workspaces install tailwindcss@4.1.13 @tailwindcss/cli@4.1.13
509+ - cp ../templates/package.json.tmpl scaffold/package.json
510+ - cd scaffold && npm install
502511 - cp -r dist scaffold/
503512 - cp ../templates/app-main.go.tmpl scaffold/app-main.go
504513 - cp ../templates/tailwind.css scaffold/
0 commit comments