GithubHelp home page GithubHelp logo

jh-pages's Introduction

jh-pages

jh-pages ./folder/ username repo

should push the ./folder to username.github.io/repo github pages. (creating the repo and the branch if needed, and keeping the git history)

The flow to implement:

  • ✔️ check if repo exist, if not create it -> need github lib https://github.com/quarkiverse/quarkus-github-api
    • ✔️ creating the repo
  • check if gh-pages activated in repo and if not ... create it. -> not needed?
  • ✔️ generate the git url to clone
  • ✔️ check if gh-pages branch exist
  • ✔️ clone the project with only gh-pages
    • clone the project
    • if gh-pages branch doesn't exist -> give a try with git CLI to see what we could do when the repo empty.
  • ✔️ remove content
  • ✔️ copy content
  • ✔️ add, commit push

This project is under development as part of the Happy Live Coding in Twitch. See https://twitter.com/__sunix_/status/1377887535565799425.

Every Friday 6pm CEST.

Live stream: https://www.twitch.tv/happylivecoding Replay: https://www.youtube.com/playlist?list=PLAtUK_ilLV_0sutSI_rDW8_fmD1k2lux_

TODO next:

  • testing wiremock
  • record github interactions
    • write the unit tests that will interact for real with github
      • testing create repo if needed
      • test gh-pages branch creation
      • test push new content
      • WIP test push changes on existing content should override existing gh-pages
      • test pull existing content in a folder.
    • making sure that it works
    • record the interactions
    • mock it in our unit tests

jh-pages's People

Contributors

sunix avatar

Watchers

Rohan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.