From c9f9cf255b02819b8d3bd80a829bab3519bcc1d6 Mon Sep 17 00:00:00 2001 From: nitrohorse <1514352+nitrohorse@users.noreply.github.com> Date: Sat, 3 Aug 2019 13:58:01 -0700 Subject: [PATCH] Update package.json --- README.md | 7 +++++-- package.json | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a1c77d14..d0d2ebd9 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,11 @@ You can submit your suggestions here on GitHub [(Issues)](https://github.com/pri 1. Install [Ruby](https://www.ruby-lang.org/en/documentation/installation/) 1. Install [bundler](https://bundler.io/) by running `gem install bundler`. -1. Run `bundle install` to install the required dependencies. -1. Use `bundle exec jekyll build` to build the website. The output can be found in the `_site` directory. Live preview is also possible by running `bundle exec jekyll serve` +1. Install [Node.js](https://nodejs.org/). +1. Run `npm install && bundle install` to install the required dependencies. +1. Use `npm run build` to build the website. The output can be found in the `_site` directory. +1. Use `npm run serve` for a live preview of the website. +1. Use `npm run html-beautify` to format the HTML source code. # Support privacytools.io diff --git a/package.json b/package.json index 5f8a1998..ec742590 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,10 @@ "js-beautify": "1.10.1" }, "scripts": { - "html-beautify": "node_modules/.bin/html-beautify --editorconfig .editorconfig -r '**/*.html'" + "build": "bundle exec jekyll build", + "serve": "bundle exec jekyll serve", + "html-beautify": "node_modules/.bin/html-beautify --editorconfig .editorconfig -r '**/*.html'", + "beautify-and-build": "npm run html-beautify && npm run build" }, "husky": { "hooks": {