-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from nilotpaul/cli
Introduced new customisable stack options and overall performance upgrade
- Loading branch information
Showing
17 changed files
with
369 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,20 @@ | ||
{{- if .UI.HasTailwind -}} | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
{{- else -}} | ||
h1 { | ||
color: red; | ||
text-align: center; | ||
} | ||
|
||
@layer base { | ||
h1 { | ||
@apply text-4xl my-6; | ||
} | ||
.container { | ||
max-width: 48rem; | ||
margin: 0 auto; | ||
display: flex; | ||
flex-direction: column; | ||
text-align: center; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,20 @@ | ||
start: | ||
@npx tailwindcss -i ./web/styles/globals.css -o ./public/bundle/styles.css --minify | ||
@node ./esbuild.config.js | ||
@ENVIRONMENT=PRODUCTION go build -tags '!dev' -o bin/build | ||
@ENVIRONMENT=PRODUCTION ./bin/build | ||
|
||
dev: build | ||
@ENVIRONMENT=DEVELOPMENT ./bin/build | ||
|
||
build: | ||
@npx tailwindcss -i ./web/styles/globals.css -o ./public/bundle/styles.css | ||
@node ./esbuild.config.js | ||
@ENVIRONMENT=DEVELOPMENT go build -tags 'dev' -o bin/build | ||
|
||
watch: | ||
dev: | ||
@wgo \ | ||
-exit \ | ||
-file=.go \ | ||
-file=.html \ | ||
node ./esbuild.config.js \ | ||
:: npx tailwindcss -i ./web/styles/globals.css -o ./public/bundle/styles.css \ | ||
:: ENVIRONMENT=DEVELOPMENT go build -tags 'dev' -o bin/build main.go \ | ||
-file=.css \ | ||
-xdir=public \ | ||
ENVIRONMENT=DEVELOPMENT go build -tags 'dev' -o bin/build main.go \ | ||
:: ENVIRONMENT=DEVELOPMENT ./bin/build \ | ||
:: wgo -debounce 30ms -dir=public npx livereload public | ||
:: wgo -dir=web node ./esbuild.config.js \ | ||
:: wgo -dir=node_modules npx livereload -w 1000 web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
{ | ||
"devDependencies": { | ||
"esbuild": "^0.24.0"{{ if .Extras.HasHTMX }}, | ||
"htmx.org": "^1.9.12"{{ end }}, | ||
"livereload": "^0.9.3"{{ if .UI.HasPreline }}, | ||
"preline": "^2.5.1"{{ end }}{{ if .UI.HasTailwind }}, | ||
"esbuild-plugin-tailwindcss": "^1.2.1", | ||
"@tailwindcss/forms": "^0.5.9", | ||
"@tailwindcss/typography": "^0.5.15", | ||
"esbuild": "^0.24.0", | ||
"htmx.org": "^1.9.12", | ||
"livereload": "^0.9.3", | ||
"preline": "^2.5.1", | ||
"tailwindcss": "^3.4.15" | ||
"tailwindcss": "^3.4.15"{{ end }} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.