houkiboshi-fabric dataset
- Node.js
- See .node-version
- Yarn
- Git
- to get timestamps from git history
git clone git@github.com:houkiboshi-fabric/contents.git
cd contents/
cp .env.example .env
code .env # Edit and save required environment variables on your editor
nodenv update-version-defs && nodenv install # <-- optional
yarn install
- Add timestamps
- import from under
src/
, export intodist/
- timestamps from git commit history
created_at
modified_at
- import from under
- Join entities to id and ids references
- Add relative paths for Web pages
yarn build
- Build new JSON Schema files locally
- All properties of schemas named
*_id
or*_ids
have enum that are ids collected from actual dataset. So you can use auto-complete with ids in your editor like Visual Studio Code. - Generate default snippets from examples for Visual Studio Code
- All properties of schemas named
yarn build-schemas
- Check assets updates and sync
yarn update-assets
- Validate json files using Ajv
src/**/*.json
yarn validate
- Format
.{js,json,md}
files using prettier - Sort properties of json according to schema properties
yarn format
- Run
update-assets
once at the first - Watch file changing continually and run tasks below
build-schemas
validate
lint
- watch target pattern
src/**/*.{json,md}
yarn watch
// or
yarn start
- Run lint to
src/**/*.{json,md}
- json
description
property - Markdown body contents
- json
yarn lint
- Run lint to
src/**/*.{json,md}
and fix automatically if possible
yarn fix
yarn lint-js
- Run JavaScript test using Jest
yarn test
// or
yarn test:watch
yarn build
& commit files underdist/
and push them togh-pages
branch- You don't need to run this task manually in most cases since this task will be run automatically on CI.
yarn deploy