I found it a little easier to use the compiled binary from github rather than compiling using go. I ran into a couple of issues with the dependencies there, and I wasn't sure how to proceed as a non-go-user.
Replace this:
- name: build game
run: |
go get github.com/tmedwards/tweego
export PATH=$PATH:$(go env GOPATH)/bin
tweego YOUR_TWEE_FILE.twee -o dist/index.html
for extra credit, I also managed my build scripts in a package.json. This lets the build server and my local dev environment use the same scripts. You still have to install tweego for yourself (this file is easiest)
"scripts": {
"twee": "tweego --output src/pages/game.html twine",
"dev:twee": "npm run twee -- --watch",
}
If not included in tweego, remember to include your chosen storyformat in the repo in .storyformat/formatname-1
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Heya people,
I found it a little easier to use the compiled binary from github rather than compiling using go. I ran into a couple of issues with the dependencies there, and I wasn't sure how to proceed as a non-go-user.
Replace this:
with this:
for extra credit, I also managed my build scripts in a package.json. This lets the build server and my local dev environment use the same scripts. You still have to install tweego for yourself (this file is easiest)
If not included in tweego, remember to include your chosen storyformat in the repo in
.storyformat/formatname-1