@czudisk/models
v1.0.65
Published
This repository contains database schemas, separated from the ČZU Disk repository in order to make the schemas available to other repositories (Discord bot).
Downloads
53
Readme
Database schemas
This repository contains database schemas, separated from the ČZU Disk repository in order to make the schemas available to other repositories (Discord bot).
Schemas and types are then imported to various apps.
import { accountSchema } from "@czudisk/models";
import type { Account } from "@czudisk/models";
How to
- Clone the repository
- Run
npm install
- Make needed changes in
src
folder mainly - Run
npx tsc
ornpm run compile
in order to compile thesrc
folder todist
folder - Compiling will transfer TypeScript files to JavaScript files
- Increase version in
package.json
according to https://semver.org/lang/cs/ if possible - Run
git add .
- Run
git commit -m "Commit message"
- Run
git push
- Create release on GitHub
- Automatic deploy to NPM sohuld start
Not needed due to auto deploy to NPM
- Run
npm login
if not logged in - Run
npm publish
(only a package owner or developer in organization can do that)` - If the package is correctly published to npm run
git add .
to add your changes to git