https://github.com/thenewdynamic/gethugo
Bash Script to load Hugo locally in a project
https://github.com/thenewdynamic/gethugo
Last synced: about 1 month ago
JSON representation
Bash Script to load Hugo locally in a project
- Host: GitHub
- URL: https://github.com/thenewdynamic/gethugo
- Owner: theNewDynamic
- License: mit
- Created: 2020-01-31T18:42:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-18T14:02:07.000Z (almost 6 years ago)
- Last Synced: 2025-03-02T21:28:28.975Z (over 1 year ago)
- Language: Shell
- Size: 16.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gethugo
Bash Script to load Hugo locally in a project
## To Use
To Use
- Add the `get-hugo.sh` file to the root of your repo
- add the following to your package.json file:
```
"hugo": {
"version": "0.63.1",
"extended": "true"
}
```
Extended is optional. The script will use the extended version of Hugo unless `"extended": "false"` or `"extended": false` is set.
- Run `bash get-hugo.sh` or add `"gethugo": "bash get-hugo.sh",` to your package.json and run it from there.
- Without package.json use positional parameter as the version:
```
bash get-hugo.sh 0.63.1
```
## To Do
- [ ] Clean up (can maybe be less verbose)
- [ ] Fail better if Hugo is not in package.json at all.
- [ ] Maybe use a different method than requiring node to get package.json (what we have is simple though)
- [ ] If Hugo version (package.json.hugo.version) not present in package.json get the latest Hugo version.
- [ ] Make a CLI