-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Development | ||
|
||
## Update schema | ||
1. Run `npm run update:schema` to generate schema and format it | ||
|
||
## Building | ||
1. Run `rm -rf dist` to remove `dist` directory (if exists). | ||
2. Run `npm run pre-build` to run TS check, linter and formatter. | ||
3. Run `npm run build` to build. | ||
|
||
To use this local package, install it with `npm i path/to/this/dir`. | ||
|
||
## Publishing | ||
1. Update version in `package.json` and `package-lock.json`. | ||
Alternatively, use `npm version {VERSION}` to make version commit. | ||
2. Run `npm run publish --dry-run` to check before publishing. | ||
3. Run `npm run publish` to publish package. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,13 @@ | |
], | ||
"scripts": { | ||
"build": "tsc", | ||
"pre-build": "npm run ts-check && npm run lint && npm run format", | ||
"ts-check": "tsc --noEmit", | ||
"lint": "eslint --max-warnings 0 --ext .ts lib", | ||
"format": "prettier --log-level warn --write lib", | ||
"generate-schema": "openapi-typescript https://api.artifactsmmo.com/openapi.json -o lib/api/types/api-schema.types.ts" | ||
"update:schema": "npm run generate:schema && npm run format:schema", | ||
"format:schema": "prettier --log-level warn --write lib/api/types/api-schema.types.ts", | ||
"generate:schema": "openapi-typescript https://api.artifactsmmo.com/openapi.json -o lib/api/types/api-schema.types.ts" | ||
}, | ||
"author": "Kirill Gerasimenko <[email protected]>", | ||
"license": "MIT", | ||
|