We welcome and truly appreciate contribution in all forms - issues, pull requests, questions, or fancy examples of apps/elements build on to of your elements.
Our team heavily uses Github for all of our software management. We use Github issues to track all bugs and features.
If you find an issue, please do file it on the repository.
We love examples for addressing issues - issues with a Plunkr, jsFiddle, or jsBin will be much easier for us to work on quickly. You can start with this jsbin which sets up the basics to demonstrate a Juicy element.
Occasionally we'll close issues if they appear stale or are too vague - please don't take this personally! Please feel free to re-open issues we've closed if there's something we've missed and they still need to be addressed.
If you would like to start to fiddle with element's code, here is the flow we use.
- Make a local clone of this repo:
git clone [email protected]:Juicy/slot-all.git
In order to develop it locally we suggest to use polyserve tool to handle bower paths gently.
- Go to the repo's directory:
cd slot-all
- Install bower & polyserve:
$ npm install -g bower polyserve
- Install local dependencies:
$ bower install
- Start development server
$ polyserve -p 8000
- Open the demo/preview: http://localhost:8000/components/slot-all/
- Open the test suite: http://localhost:8000/components/slot-all/test/
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Open corresponding issue if needed
- Submit a pull request :D
.jscs.json
/.jscsrc
/package.json
to be linked
All Juicy custom elements projects use web-component-tester
for unit tests.
The polyserve
utility is helpful for running tests in the browser.
To run the element unit tests from CLI, you need to:
- Install
web-component-tester
globally:npm install -g web-component-tester
- Clone the element repo.
- Install the dependencies.
bower install
- Run the tests:
wct
By default, web-component-tester
runs tests on all installed browsers. You can configure it
to run tests on a subset of available browsers, or to run tests remotely using Sauce Labs.
See the web-component-tester
README for
information on configuring the tool.
The release is done from master
branch.
- Make sure that the browser tests pass in Chrome, Firefox, Edge and IE. This can be done manually or using
npm run test
(see instructions above). - Call
git status
to verify that there are no uncommited files in the directory - Call
grunt bump:patch
,grunt bump:minor
orgrunt bump:major
. This command:
- increments the version number in the relevant files
- commits changes to Git with the version number as the commit message
- creates a Git tag wit the version
- Call
git push
to push the changes toorigin master
- Call
git push --tags
to push the tag toorigin master
- Explain the changes (at least an summary of the commit log) in GitHub Releases.