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

Build scripts: serve using netlify dev #838

Merged
merged 1 commit into from
Oct 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Run `npm install`
* Run `npm run serve`
* If you are on OS X and see an error like `too many open files` or `pipe failed`, you may need to increase the file descriptor limit. See [this Hugo GitHub issue](https://github.com/gohugoio/hugo/issues/6109).
* To view the locally generated site, visit [localhost:30000][localhost].
* To view the locally generated site, visit [localhost:8888][localhost].

A few notes to be aware of:

Expand Down Expand Up @@ -52,4 +52,4 @@ changes.
> Site administrators can access the admin interface
> [here](https://app.netlify.com/sites/opentelemetry/overview).
[localhost]: http://localhost:30000
[localhost]: http://localhost:8888
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"scripts": {
"_build": "hugo --cleanDestinationDir -e dev -DFE",
"_check-links": "make check-links",
"_serve": "hugo serve -p 30000 -DFE",
"_serve": "netlify dev -c \"hugo serve -DFE --minify\"",
"_serve:hugo": "hugo serve -DFE --minify",
"build:preview": "hugo --cleanDestinationDir -DFE --minify --baseURL \"${DEPLOY_PRIME_URL:-/}\"",
"build:production": "hugo --cleanDestinationDir --minify",
"build": "npm run _build",
Expand All @@ -17,8 +18,10 @@
"precheck-links": "npm run build",
"preinstall": "npm run submodule:get",
"preserve": "npm run submodule:get",
"preserve:hugo": "npm run submodule:get",
"schemas:update": "npm run submodule:update content-modules/opentelemetry-specification",
"serve": "npm run _serve",
"serve:hugo": "npm run _serve:hugo",
"submodule:get": "git submodule update --init --recursive --depth 1",
"submodule:update": "git submodule update --remote --recursive --depth 1",
"test": "npm run check-links"
Expand All @@ -28,6 +31,7 @@
"autoprefixer": "^10.3.1",
"esm": "^3.2.25",
"hugo-extended": "0.88.1-patch1",
"netlify-cli": "^6.13.2",
"node-fetch": "^2.6.1",
"postcss": "^8.3.6",
"postcss-cli": "^9.0.0",
Expand Down