- Do not commit on
master
ordevelopment
orgh-pages
branches. - Branch
development
is where our base code resides and will allow us to beta test. - Branch
master
is where we can find Hustle UI Library compiled assets. You should never push directly to this branch. - Branch
gh-pages
contains only public files that handle demo site. You should never push directly to this branch.
- Create a new branch from
development
branch using a descriptive name, for example:new/modal-box
for new features.enhance/modal-box
for improvements.fix/modal-box
for bugfixing.
- Make your commits and push to the new branch you created.
- Edit
README.md
file and list your changes. Push to the new branch you created. - File the new pull request agains
development
branch. - Assign someone to review your code.
- Once the PR is approved, the assigned reviewer will merge your changes in
development
branch. - Delete your branch locally and make sure it does not exist remote.
Remember: It is a good idea to create a Pull Request as soon as possible so everybody knows what's going on with the project from the PRs screen in Bitbucket.
- Install node. It's recommended to install
nvm
to switch between node versions. - Execute
npm install
in root project folder to install all necessary packages. - Execute
npm run start
to watch css and js changes. The demo file will then automatically be served up by Browsersync. All changes made will automatically be watched and the page live reloaded when changes are made.
Requirements:
- Must be a developer member of the WPMU DEV Organization.
- Must be on
development
branch with a clean working directory.
Note: The following commands handle all aspects of releasing the next version. Once ran, they will build all necessary files that corresponds to the semver version, commit them and publish to the correct branch.
npm run deploy:hustle
npm run deploy:demo
Important: Remember to always run both commands since we need showcase synced with the same latest assets from the library.