From 88081d955e38264b6c7cd2be522ea6040a35d62c Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Mon, 25 Apr 2022 23:33:18 +0200 Subject: Add server command --- .gitignore | 5 ++++- exampleSite/.gitignore | 3 --- package.json | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) delete mode 100644 exampleSite/.gitignore diff --git a/.gitignore b/.gitignore index 03b817f..4e15b73 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,7 @@ # Directories to ignore (do not add trailing '/'s, they skip symlinks). /node_modules/ -/exampleSite/resources/ +resources/ +public/ + +.hugo_build.lock diff --git a/exampleSite/.gitignore b/exampleSite/.gitignore deleted file mode 100644 index 332ee17..0000000 --- a/exampleSite/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -/public/ - -.hugo_build.lock diff --git a/package.json b/package.json index f7e522c..a351ada 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,8 @@ "url": "git+https://github.com/sergeyklay/gohugo-theme-ed.git" }, "scripts": { - "deploy": " cd exampleSite; hugo;", + "deploy": "cd exampleSite; hugo;", + "server": "cd exampleSite; hugo server -D --disableFastRender", "lint:editorconfig": "editorconfig-checker", "lint:js": "eslint static/js/*.js", "lint": "npm run lint:js && npm run lint:editorconfig" -- cgit v1.2.3