Skip to content

Latest commit

 

History

History
95 lines (64 loc) · 2.97 KB

CONTRIBUTING.md

File metadata and controls

95 lines (64 loc) · 2.97 KB

Contributing to My Hand Translator

Welcome and thanks for your interest!
Before submitting a pull request, please take a moment to review these guidelines.

Reporting Issues

Found a problem? Want a new feature?

Remember, a bug is a demonstrable problem caused by our code.

Submitting Pull Requests

Pull requests are the greatest contributions, so be sure they are focused in scope and avoid unrelated commits.

  1. To begin: fork this project, clone your fork, and add our upstream.

    # Clone your fork of the repo into the current directory
    https://github.com/[username]/my-hand-translator-frontend.git
    
    # Navigate to the newly cloned directory
    cd my-hand-translator-frontend
    
    # Assign the original repo to a remote called "upstream"
    git remote add upstream https://github.com/my-hand-translator/my-hand-translator-frontend.git
    
    # Install the tools necessary for testing
    npm install
    
    # Build source codes to make dist folder
    npm run build

Testing your extension after building your project

screenshot-1

  • Go to chrome://extensions/ (Please make sure you should use Chrome Browser!)
  • Turn on Developer Mode(개발자 모드)

screenshot-1

  • Click top left Load unpacked same as 압축해제된 확장 프로그램을 로드합니다.

screenshot-2

  • Select dist directory of your my-hand-translator-frontend directory
  • And yes, you can show your chrome extension in chrome://extensions/!
  1. Create a branch for your feature or fix:

    # Move into a new branch for your feature
    git checkout -b feature/thing
    # Move into a new branch for your fix
    git checkout -b fix/something
  2. If your code passes all the tests, then push your feature branch:

    # Test current code
    npm test
    
    # Build current code
    npm run build

    Note: ensure your version of Node is 14 or higher to run scripts

    # Push the branch for your new feature
    git push origin feature/thing
    # Or, push the branch for your update
    git push origin update/something

That’s it! Now open a pull request with a clear title and description.