The issue tracker is for bug reports and enhancement suggestions only. If you have a question ask it in Discord DM instead. Discord Tag: moony#6815.
If you wish to contribute to DJS-Button-Pages codebase, feel free to fork and submit a pull request.
ESLint is used to unify code style, so it'll be great for you to set it up in your editor.
To get ready to work on the codebase it is enough to:
npm install
,npm run build
(It is needed because "Presets" package depends on the main package).npm run lint
.If you want to test changes locally, follow this comprehensive guide:
npm link --workspaces
in project's folder.npm init
.npm link --save djs-button-pages @djs-button-pages/presets
. You should write here only those packages that you want to test. If you don't need @djs-button-pages/presets
, use: npm link --save djs-button-pages
, etc.npm install discord.js
.Pacakges are using TypeScript to be built. After any change that you'd like to test build packages again.
If you'd like to make new package under the @djs-button-pages
tag use following:
npm init -w ./packages/<package-name>
This will add new package folder under packages/
with package.json.