Skip to content

Commit

Permalink
Build scripts: serve using netlify dev
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed Oct 18, 2021
1 parent a1e6b14 commit b5999af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
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

0 comments on commit b5999af

Please sign in to comment.