If you find a bug in the source code or a mistake in the documentation, you can help by submitting an issue to the Marathon GitHub Repository.
Before you submit your issue search the archive, maybe your question was already answered.
IMPORTANT: please use the label gui
when submitting issues related to the
marathon-ui
.
-
Install NPM
-
Install dev dependencies
npm install npm install -g broccoli-cli
-
Run development environment
npm run serve
-
Build the assets
npm run dist
-
Check it in.
git add dist/main.js dist/main.css img/*
If you want to add a new npm package to 'node_modules':
-
Install the new package
npm install [your package] --save
will install and save to dependencies in package.json and
npm install [your package] --save-dev
will add it to devDependencies.
-
Create a synced npm-shrinkwrap.json with devDependencies included
npm shrinkwrap --dev
There is an .editorconfig
-file to apply editor settings on various editors.
- Add the following to your Sublime Text User Settings:
{
...
"rulers": [80], // lines no longer than 80 chars
"tab_size": 2, // use two spaces for indentation
"translate_tabs_to_spaces": true, // use spaces for indentation
"ensure_newline_at_eof_on_save": true, // add newline on save
"trim_trailing_white_space_on_save": true, // trim trailing white space on save
"default_line_ending": "unix"
}
-
Add Sublime-linter with eslint:
-
Installing SublimeLinter is straightforward using Sublime Package Manager, see instructions
-
Follow the instructions for SublimeLinter-eslint
Before you submit your pull request consider the following guidelines:
-
Search GitHub for an open or closed Pull Request that relates to your submission. You don't want to duplicate effort.
-
Make your changes in a new git branch:
git checkout -b my-fix-branch master
-
Create your patch, including appropriate test cases
-
Follow our Coding Guidelines
-
Commit your changes using a descriptive commit message
-
Build your changes locally to ensure all the tests pass:
npm run dist
-
Push your branch to GitHub:
git push origin my-fix-branch
-
In GitHub, send a pull request to
marathon-ui:master
. -
If we suggest changes then:
-
Make the required updates.
-
Re-run the test suite to ensure tests are still passing.
-
If necessary, rebase your branch and force push to your GitHub repository (this will update your Pull Request):
git rebase master -i git push origin my-fix-branch -f
-
That's it! Thank you for your contribution!
Use the BDD style of testing. Tests should be organised around scenarios rather than rigidly around class structure and method names, for example "Creating an application" rather than "Application#initialize". Test for correct error handling as well as correct behaviour. Mock where necessary, but not as a matter of course.
Keep tests short, clean, and descriptive. Aim for high code coverage, but don't worry about achieving 100% coverage. Try to keep tests flexible. Test the interface, not the implementation.
Aim to ensure that tests run quickly to keep the feedback loop tight.