diff --git a/.gitignore b/.gitignore index 86c95ef..5f47da7 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,6 @@ hugo.linux # Temporary lock file while building /.hugo_build.lock + +/node_modules/ +package-lock.json diff --git a/README.md b/README.md index 71a11f4..42c9af4 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,15 @@ git clone https://git.0x90.space/0x90/quellcode.0x90.space cd quellcode.0x90.space/ -hugo server +npm install + +npm run start ``` +This opens a server at http://localhost:1313/, +where you can preview the website. +It refreshes automatically. + ## Deployment Assuming you are in the root directory of this repository, and you have cloned @@ -19,7 +25,7 @@ deploy the website with: ``` # build website -hugo +npm run build cd ../0x90-ansible/ # create ssh_config (only necessary once) ansible-playbook -i inventory -t init site.yml diff --git a/package.json b/package.json new file mode 100644 index 0000000..3c256d0 --- /dev/null +++ b/package.json @@ -0,0 +1,10 @@ +{ + "dependencies": { + "hugo-extended": "^0.147.9" + }, + "scripts": { + "build": "hugo", + "build:preview": "hugo --baseURL \"${DEPLOY_PRIME_URL:-/}\" --buildDrafts --buildFuture", + "start": "hugo server" + } +}