From 6927753671da8d87e2d42f17f2ad914d7e32dadf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Wed, 5 Jun 2024 11:49:17 +0200 Subject: [PATCH 1/2] Implement command 'text:lint:fix' --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 406270c..cc40c76 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,9 @@ "scripts": { "build": "vuepress build docs", "dev": "vuepress dev docs", - "test": "textlint \"*.md\" \"docs/**/*.md\"" + "test": "npm run test:lint", + "test:lint": "textlint \"*.md\" \"docs/**/*.md\"", + "test:lint:fix": "textlint \"*.md\" \"docs/**/*.md\" --fix" }, "repository": { "type": "git", From dfb2aa469f8ee2c348a30773847c8ed0c283425c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Wed, 5 Jun 2024 14:41:37 +0200 Subject: [PATCH 2/2] Add global Readme.md --- README.md | 110 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..c7d05a6 --- /dev/null +++ b/README.md @@ -0,0 +1,110 @@ +# ocelot.social Website + +This repository contains the Website utilizing `vuepress` to generate it. + +## Software requirements + +This package requires: + +- [nodejs](https://github.com/nodejs/node) +- [npm](https://github.com/npm/cli) + +## Techstack + +This package uses: + +- [vuepress](https://github.com/vuejs/vuepress) +- [vuepress-theme-hope](https://github.com/vuepress-theme-hope/vuepress-theme-hope) + + +## Usage + +How to use this package. + +### Build + +Build the static files of the website which then can be found under `docs/.vuepress/dist/`. + +```bash +npm run build +``` + +### Dev + +Bring up a development environment with hot reloading which can be reached under : + +```bash +npm run dev +``` + +### Test + +Run the tests to ensure everything is working as expected: + +```bash +# general tests +$ npm test +# test linting +$ npm test:lint +# fix linting +$ npm test:lint:fix +``` + +