-
-
Notifications
You must be signed in to change notification settings - Fork 219
Tweak npm scripts #1186
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
Tweak npm scripts #1186
Conversation
✅ Deploy Preview for pihole-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
package.json
Outdated
@@ -17,8 +17,9 @@ | |||
"homepage": "https://docs.pi-hole.net/", | |||
"scripts": { | |||
"build": "mkdocs build --clean", | |||
"build:strict": "npm run build -- --strict", |
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.
We could also just move --strict
in the build
script and remove the new one.
752dc88
to
b3438e7
Compare
I see you force pushing today twice - is this PR ready for review? |
Now CI runs build once. Signed-off-by: XhmikosR <[email protected]>
b3438e7
to
e7cf217
Compare
Now it should be :) I was in the middle about using the npm script in CI, but better keep things simple and organized in npm scripts. I also added a |
"test": "npm run markdownlint && npm run linkinator", | ||
"serve": "mkdocs serve --dev-addr 0.0.0.0:8000" | ||
"serve": "mkdocs serve --dev-addr 0.0.0.0:8000", | ||
"start": "npm run serve" |
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 also added a npm start script to start the server as a shortcut.
I'm a bit undecided about this. There is not much difference in npm run start
vs npm run serve
. Or is npm run start
something 'common' one should have (best practice?)
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.
The difference is that one can do npm start
and it works, while serve
needs npm run serve
. So, it's better to follow the standard here and make everyone's lives easier :)
Accidentally deleted the branch and I cannot reopen it seems. |
@@ -41,7 +41,7 @@ jobs: | |||
run: npm ci | |||
|
|||
- name: Build docs | |||
run: mkdocs build --strict | |||
run: npm run build |
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.
Personally, I'd like to keep this the same as Netlify. So, let's wait after #1194 is done.
Now CI runs build once.
Thank you for your contribution to the Pi-hole Community!
Please read the comments below to help us consider your Pull Request.
We are all volunteers and completing the process outlined will help us review your commits quicker.
Please make sure you
What does this PR aim to accomplish?:
How does this PR accomplish the above?:
Link documentation PRs if any are needed to support this PR:
By submitting this pull request, I confirm the following:
git rebase
)