You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
9 months ago | |
|---|---|---|
| .github | 1 year ago | |
| Community | 10 months ago | |
| FlowPlugins | 9 months ago | |
| FlowPluginsTs | 9 months ago | |
| examples | 2 years ago | |
| methods | 2 years ago | |
| tests | 10 months ago | |
| .eslintrc.json | 2 years ago | |
| .gitattributes | 2 years ago | |
| .gitignore | 2 years ago | |
| LICENSE | 6 years ago | |
| README.md | 9 months ago | |
| package-lock.json | 2 years ago | |
| package.json | 2 years ago | |
| tsconfig.eslint.json | 2 years ago | |
| tsconfig.json | 2 years ago | |
README.md
Tdarr_Plugins
Visit the docs for more info: https://docs.tdarr.io/docs/plugins/basics
Development
Make sure NodeJS v16 is installed
Install dependencies:
npm install
Run ESLint:
npm run lint:fix
Check plugins using some extra custom rules:
npm run checkPlugins
Run tests:
npm run test
Steps to write a Tdarr Flow plugin:
- Clone this repo
- Set env variable
pluginsDirto the location of the plugins repo and run Tdarr Server and Node. E.g.export pluginsDir=C:/Tdarr_Plugins - Browse the typescript plugins here https://github.com/HaveAGitGat/Tdarr_Plugins/tree/master/FlowPluginsTs/CommunityFlowPlugins and make edits locally or create a new one locally:
- Make sure typescript is intalled with
npm i -g typescriptthen runtscto compile the changes. - Refresh the browser and Tdarr will pick up the changes
Note, pluginsDir directories that contain a .git folder (such as when cloning this repo) will cause Tdarr to skip plugin updates to prevent overwriting development changes.