๐ Storage for Activities located at our Activity Library.
PreMiD Activities
This repository contains the source code of all Activities that are available in PreMiD's Store. Activities enhance your Discord presence by showing what you're doing on various websites.
Getting Started
Want to create your own Activity or modify an existing one? Great! Follow these simple steps:
- Set up your development environment
git clone https://github.com/PreMiD/Activities.git
- Navigate to the project directory: cd Activities
- Install dependencies: npm install
- Learn the basics
- Start creating/editing
CLI Commands
The repository includes a command-line tool (pmd) to help you create and develop Activities easily.
Creating a New Activity
To create a new Activity with all the necessary files and structure:
npx pmd new my-activity-name
This will guide you through a setup process, asking for basic information to generate the Activity structure.
Developing an Activity
Once you've created an Activity, you can develop it with live-reload functionality:
npx pmd dev my-activity-name
This command will:
- Start a development server
- Watch for changes in your Activity files
- Automatically rebuild when you make changes
- Validate your Activity against PreMiD standards
--validate: Run additional validation checks for metadata, images, etc.
Testing Your Activity
To test your Activity:
- Install the PreMiD Extension in your browser
- Enable "Activity Developer Mode" in the extension settings:
- Run the development command:
npx pmd dev my-activity-name
- The
pmdtool will automatically send your Activity to the extension while in development mode - Navigate to the website your Activity supports to see it in action
- Changes you make will be automatically picked up and sent to the extension
Submitting Your Activity
When your Activity is ready:
- Make sure it passes all validation checks
- Create a Pull Request to this repository
- Wait for a review from our maintainers
Committing
This repository strictly enforces the use of commitlint. For more information read the Commit Convention guide