Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support --config with Config File #12

Closed
DukeManh opened this issue Oct 6, 2021 · 2 comments · Fixed by #13
Closed

Support --config with Config File #12

DukeManh opened this issue Oct 6, 2021 · 2 comments · Fixed by #13

Comments

@DukeManh
Copy link
Contributor

DukeManh commented Oct 6, 2021

Users want to be able to specify all of their SSG options in a JSON formatted configuration file instead of having to pass them all as command line arguments every time. For example, consider the following config file, ./ssg-config.json:

{
  "input": "./site",
  "output": "./build",
  "stylesheet": "https://cdn.jsdelivr.net/npm/water.css@2/out/water.css",
  "lang": "fr"
}

A user could run the SSG by doing the following:

ssg --config ./ssg-config.json

The config file option means we can have a much shorter command, and instead store our options in a file.

@tpmai22
Copy link
Owner

tpmai22 commented Oct 6, 2021

Hi Duke,
It is my honor to get your brilliant help on my project. I would love to do the same thing on your repo if you allowed me to ?

@DukeManh
Copy link
Contributor Author

DukeManh commented Oct 7, 2021

Please go ahead. Thank you James.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants