Skip to content

Commit

Permalink
Add "make init"
Browse files Browse the repository at this point in the history
  • Loading branch information
leomorpho committed Sep 17, 2024
1 parent c1e3e60 commit 6ebae52
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,14 @@ reset: ## Rebuild Docker containers to wipe all data



.PHONY: init
init: ## Set up the repo and run a fully working version of GoShip
make reset
make build-js
make build-css
make seed
make watch

.PHONY: build-js
build-js: ## Build JS/Svelte assets
npm run build
Expand All @@ -172,6 +180,9 @@ watch-js: ## Build JS/Svelte assets (auto reload changes)
npm install
npm run watch

build-css: ## Build CSS assets (auto reload changes)
npx tailwindcss -i ./styles/styles.css -o ./static/styles_bundle.css

watch-css: ## Build CSS assets (auto reload changes)
npx tailwindcss -i ./styles/styles.css -o ./static/styles_bundle.css --watch

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ To get up and running with GoShip:
```bash
make up
make seed

# NOTE: the static assets (JS/CSS) are only generated on first run, so if you go to `localhost:8000` after only
# running `make watch`, you will
make watch
```

Expand Down

0 comments on commit 6ebae52

Please sign in to comment.