Skip to content

Commit e2aa49f

Browse files
committed
just keep package.json for scaffold as a template...
1 parent cd10f88 commit e2aa49f

2 files changed

Lines changed: 31 additions & 6 deletions

File tree

Taskfile.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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/
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "tsunami-scaffold",
3+
"version": "1.0.0",
4+
"main": "index.js",
5+
"keywords": [],
6+
"license": "Apache-2.0",
7+
"description": "",
8+
"author": {
9+
"name": "Command Line Inc",
10+
"email": "info@commandline.dev"
11+
},
12+
"dependencies": {
13+
"@tailwindcss/cli": "^4.1.13",
14+
"tailwindcss": "^4.1.13"
15+
}
16+
}

0 commit comments

Comments
 (0)