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 +``` + + 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",