🌠🌠🌠 Let's make beautiful pixels together! 🌠🌠🌠
- 🔍 Check our Issues page to see if your idea or bug report is already there.
- 💡 If not, feel free to create a new issue.
- 🍴 Fork the hyper-light-card repository.
- 🌿 Create a branch with a descriptive name:
git checkout -b add-new-effect-selector
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/hyper-light-card.git
- Navigate to the project directory:
cd hyper-light-card
- Install dependencies:
npm install
We use several npm scripts to streamline development:
npm run dev
: Starts the development server and watches for changes.npm run build:dev
: Builds the project in development mode.npm run lint
: Checks code style and identifies issues.npm test
: Runs the test suite.
- Ensure your
config.js
file is set up with your Home Assistant configuration path. - Start the development server:
npm run dev
- Make your changes to the code.
- The development server will automatically rebuild and copy files to your Home Assistant config directory.
- Refresh your Home Assistant dashboard to see your changes.
Before submitting your changes:
- 🧪 Run the test suite:
npm test
- 🔍 Check for style issues:
npm run lint
- 🔧 If there are fixable lint errors, run:
npm run lint:fix
To create a production build:
npm run build
This will generate optimized files in the dist
directory.
- Sync your fork with the main repository:
git remote add upstream [email protected]:hyperb1iss/hyper-light-card.git git checkout master git pull upstream master
- Update your feature branch:
git checkout add-new-effect-selector git rebase master git push --set-upstream origin add-new-effect-selector
- Go to GitHub and create a Pull Request.
If asked to rebase your PR, update your branch like this:
git checkout add-new-effect-selector
git pull --rebase upstream master
git push --force-with-lease add-new-effect-selector
- 📚 Update documentation for user-facing changes.
- ✨ Add tests for new features or bug fixes.
- 🎯 Keep pull requests focused on a single feature or bug fix.