Our aim is to make Astrum as versatile as possible and if you’d like to contribute to the project please take a moment to review this document.
The issue tracker is our preferred channel for bug reports, features requests and submitting pull requests.
When creating a bug issue please apply the red “bug” label.
A bug is a reproducible issue that is caused by the code in the repository.
Note: Astrum applies your projects CSS and JavaScript to render component examples, please ensure that any suspected “bugs” aren’t being caused by an adverse issue in your own project code.
Guidelines for bug reports:
-
Use the GitHub issue search — check if the issue has already been reported.
-
Check if the issue has been fixed — try to reproduce it using the latest
master
or development branch in the repository. -
Isolate the problem — ideally create a reduced test case and a live example.
Please try to be as detailed as possible in your report, in particular what steps will reproduce the issue and what browser(s) and OS you are experience it on? Screenshots are also useful. All these details will help us resolve any potential bugs more quickly.
When creating a feature request please apply the green “feature request” label.
We’re open to ideas and will consider any strong case for additional features to incorporate into Astrum. Please consider the wider user base when making a feature request. Will this the new feature benefit everyone?
Example use cases and scenarios for why the new feature is being requested are always helpful.
Thanks for taking the time and endeavouring to help make Astrum better.
Pull requests are a great help. Please ensure they remain focused in scope and commit messages conform to these git message guidelines.
Please ask first before developing any new features, otherwise you risk spending a lot of time working on something that we might not want to merge into Astrum.
The following process is the best way to get your work included:
-
Fork the project, clone your fork, and configure the remotes:
# Clone your fork of the repo into the current directory $ git clone https://github.com/<your-username>/astrum.git
# Navigate to the newly cloned directory $ cd astrum
# Assign the original repo to a remote called "upstream" $ git remote add upstream https://github.com/nodivide/astrum.git
# Create a globally-installed symbolic link to your local # development copy of Astrum $ npm link
-
If you cloned a while ago, get the latest changes from upstream:
git checkout master git pull upstream master
-
Create a new local branch (off the main develop branch) and prefix it with the type of PR you’re submitting, feature/, change/, or fix/ followed by a short description e.g. fix/heading-alignment:
git checkout -b <prefix/description>
-
Commit your changes.
-
Locally merge the upstream develop branch into your local branch to ensure you’re PR contains any changes that have occurred since you started:
git pull upstream master
-
Push your local branch up to your fork:
git push origin <prefix/description>
-
Open a Pull Request with a clear title and description.
IMPORTANT: By submitting a pull request, you agree to allow us to license your work under the terms of the MIT License.