hugo/commands
Bjørn Erik Pedersen 9f5a92078a
Add Hugo Modules
This commit implements Hugo Modules.

This is a broad subject, but some keywords include:

* A new `module` configuration section where you can import almost anything. You can configure both your own file mounts nd the file mounts of the modules you import. This is the new recommended way of configuring what you earlier put in `configDir`, `staticDir` etc. And it also allows you to mount folders in non-Hugo-projects, e.g. the `SCSS` folder in the Bootstrap GitHub project.
* A module consists of a set of mounts to the standard 7 component types in Hugo: `static`, `content`, `layouts`, `data`, `assets`, `i18n`, and `archetypes`. Yes, Theme Components can now include content, which should be very useful, especially in bigger multilingual projects.
* Modules not in your local file cache will be downloaded automatically and even "hot replaced" while the server is running.
* Hugo Modules supports and encourages semver versioned modules, and uses the minimal version selection algorithm to resolve versions.
* A new set of CLI commands are provided to manage all of this: `hugo mod init`,  `hugo mod get`,  `hugo mod graph`,  `hugo mod tidy`, and  `hugo mod vendor`.

All of the above is backed by Go Modules.

Fixes #5973
Fixes #5996
Fixes #6010
Fixes #5911
Fixes #5940
Fixes #6074
Fixes #6082
Fixes #6092
2019-07-24 09:35:53 +02:00
..
check.go commands: Make the limit command work again 2018-04-11 09:50:19 +02:00
check_darwin.go commands: Make the limit command work again 2018-04-11 09:50:19 +02:00
commandeer.go Add Hugo Modules 2019-07-24 09:35:53 +02:00
commands.go Add Hugo Modules 2019-07-24 09:35:53 +02:00
commands_test.go Make Page an interface 2019-03-23 18:51:22 +01:00
config.go Add support for theme composition and inheritance 2018-06-10 23:55:20 +02:00
convert.go Add Hugo Modules 2019-07-24 09:35:53 +02:00
deploy.go deploy: Default --target to the first deployment target 2019-06-08 00:41:59 +02:00
env.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
gen.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
genautocomplete.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
genchromastyles.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
gendoc.go commands: Add basic server test 2018-04-11 09:51:07 +02:00
gendocshelper.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
genman.go Add tpl/site and tpl/hugo 2018-12-06 14:37:25 +01:00
helpers.go commands: Only show Ansi escape codes if in a terminal 2018-10-26 14:33:44 +02:00
hugo.go Add Hugo Modules 2019-07-24 09:35:53 +02:00
hugo_test.go commands: Add test for --configDir 2019-02-01 08:40:53 +01:00
hugo_windows.go Update hugo_windows.go 2018-07-22 00:09:46 +02:00
import_jekyll.go Add Hugo Modules 2019-07-24 09:35:53 +02:00
import_jekyll_test.go importer: fix jekyll import highlight options 2018-12-12 19:12:12 +01:00
limit_darwin.go Adjust rlimit logic 2019-04-07 00:53:55 +02:00
limit_others.go commands: Make the limit command work again 2018-04-11 09:50:19 +02:00
list.go commands: Create new 'hugo list all' command 2019-05-25 00:09:51 +02:00
list_test.go Add Hugo Modules 2019-07-24 09:35:53 +02:00
mod.go Add Hugo Modules 2019-07-24 09:35:53 +02:00
new.go Add Hugo Modules 2019-07-24 09:35:53 +02:00
new_content_test.go Make Page an interface 2019-03-23 18:51:22 +01:00
new_site.go commands: Remove comma after URL in new site output 2019-06-19 23:03:30 +02:00
new_theme.go Create missing head.html partial on new theme generation 2018-06-25 12:06:45 -06:00
release.go commands: Re-add the missing releaser command 2018-04-16 08:23:32 +02:00
release_noop.go commands: Re-add the missing releaser command 2018-04-16 08:23:32 +02:00
server.go Add Hugo Modules 2019-07-24 09:35:53 +02:00
server_errors.go commands: Fix recently broken error template 2018-11-03 16:55:45 +01:00
server_test.go commands: Add test for --configDir 2019-02-01 08:40:53 +01:00
static_syncer.go Add Hugo Modules 2019-07-24 09:35:53 +02:00
version.go Add tpl/site and tpl/hugo 2018-12-06 14:37:25 +01:00