Install dependencies It is recommended that you use Yarn for deterministic installs.
yarn install # Install project dependencies
yarn test # Run test cases
yarn run dev # Launch and watch server
(npm
will also work if you really want)
Dev server with Hot Module Replacement should run at http://localhost:3000
You can bundle the app in dist/
folder
This will also run linter and tests.
yarn run build
Now you just have to serve the dist/
folder with node (yarn run start
) or with an nginx.
-
Fork the repository and clone it locally.
-
Create a branch
git checkout -b <branch-name>
-
Make sure you follow the instructions in the Development setup section
-
Connect your local to the original “upstream” repository by adding it as a remote.
git remote add upstream [email protected]:kubeless/kubeless-ui.git
- Pull in changes from “upstream” often so that you stay up to date so that when you submit your pull request, merge conflicts will be less likely.
git fetch upstream
- To make our local copy of master fetch latest changes from the upstream repository
git branch --set-upstream-to=upstream/master
Now your local copy will be tracking the changes made on the upstream/master branch
-
When you make your changes, look at things formatting, comment styles, test cases so that the format of your changes matches that of the repo you are contributing to. It makes the merging process much simpler.
-
When you are ready to commit your changes,
git add .
git commit -m <message-of-commit>
git push origin <branch-name-created-above>
- Create Pull Request to merge your recently pushed branch to the kubeless-ui/master branch
- Reference any relevant issues or supporting documentation in your PR (ex. “Closes #37.”)