-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[Improvement] Makefile for Development #1729
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
Conversation
Added Makefile Added .gitignore line for LANGS.md.bak
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do wonder why you bother with a LANGS.md.bak
file. The original is in git so you can revert it.
Another thing to consider is changing the path to LANGS.md. https://honkit.netlify.app/config.html says there's structure.languages
. However, other than changing book.json
I'm not sure you can easily pass an override to honkit serve
.
@ekohl Regarding The whole idea behind this script when I begun making it was based on one thought "Why am I waiting for all the languages to build each time I run a build or serve command, while I only dealing with english?" Using this methods, the build time is decreased by 90%. Without using the script, it take 90s-100s. WIth this script, it takes only 7s-8s. Which means that I got around 12 times faster in my development process (ideal case). This is my philosphy. I have checked the |
Considering all previous converstion, I have made some tweaking is the whole structure and many targets. Not fully tested. New Commands Added
|
### New Commands Added - dev - Initialise and start the development server with debugging enabled. ( Previously init ) - build-dev - Build the honkit project with debug log. - pdf - Generate PDF version of DjangoGirls tutorial. - epub - Generate EPUB version of DjangoGirls tutorial. - mobi - Generate MOBI version of DjangoGirls tutorial. - mode - Shows the development mode status. - exit - Reset the project and exit development mode. ( Previously reset )
Added Makefile Added .gitignore line for LANGS.md.bak
@ekohl I have squashed the commits and pushed it. Let me know you thoughts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets take the scenario where npm modules are already installed. npm will have to run again before start serving when make serve is ran. But it is possible since it live reload server. Personally, I dont prefer this method incase I have network problem and my local server will not running. This is waste of time. But if your method is more acceptable generally, i can change that. Let me know your thoughts on my point of view.
I generally agree with that, so another option can be to make the node_modules
target fail with a message "you need to run npx install
. Also note that I think should be a regular target, not a PHONY
. That way, if the directory exists, make will be happy and not run anything.
I'll try that out and get back to you. Thanks for the reply. |
|
@das-g Anymore changes required? |
Sorry, also swamped with work. |
As I doubt that this can break anything already existing, I'll merge now. If needed, we can improve upon that later on. |
Features
LANGS.md
file.exit
command is available for restoring the LANGS.md file after the development for deployment or commit.Make
#1728 Completed