Update package.json

This commit is contained in:
nitrohorse 2019-08-03 13:58:01 -07:00
parent 9b4f84d96c
commit c9f9cf255b
No known key found for this signature in database
GPG Key ID: 6F3175557E766CBF
2 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -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": {