Code Monkey home page Code Monkey logo

codeforlife-package-javascript's Introduction

codeforlife-package-javascript

This repo hosts Code for Life's Node.js package. This package contains all reusable frontend code, meant to be installed across CFL's various frontend services.

LICENCE

In accordance with the Terms of Use of the Code for Life website, all copyright, trademarks, and other intellectual property rights in and relating to Code for Life (including all content of the Code for Life website, the Rapid Router application, the Kurono application, related software (including any drawn and/or animated avatars, whether or not such avatars have any modifications) and any other games, applications or any other content that we make available from time to time) are owned by Ocado Innovation Limited.

The source code of the Code for Life portal, the Rapid Router application and the Kurono/aimmo application are licensed under the GNU Affero General Public License. All other assets including images, logos, sounds etc., are not covered by this licence and no-one may copy, modify, distribute, show in public or create any derivative work from these assets.

Installation

To install this package, do one of the following options.

Remember to replace the version number ("0.0.0") with your desired version.

Option 1: Run yarn install command:

yarn install git+https://github.com/ocadotechnology/codeforlife-package-javascript.git#v0.0.0

Option 2: add the following to package.json:

{
  "dependencies": {
    "codeforlife": "github:ocadotechnology/codeforlife-package-javascript#v0.0.0"
  }
}

Making Changes

To make changes, you must:

  1. Branch off of main.
  2. Push your changes on your branch.
  3. Ensure the pipeline runs successfully on your branch.
  4. Have your changes reviewed and approved by a peer.
  5. Merge your branch into the main branch.
  6. Manually trigger the Main pipeline for the main branch.

Installing your branch

You may wish to install and integrate your changes into a CFL frontend before it's been peer-reviewed.

Remember to replace the branch name ("my-branch") with your branch.

{
  "dependencies": {
    "codeforlife": "github:ocadotechnology/codeforlife-package-javascript#my-branch"
  }
}

Pipeline

When pushing to any branch, the pipeline will:

  1. Check the code for linting errors.
  2. Run tests on the React components.
  3. Build the package.
  4. Save the build to the lib directory.

When merging to the main branch, the pipeline will:

  1. Update the package version in package.json.
  2. Update CHANGELOG.md with latest commit messages.
  3. Determine the next version number from the commit messages using semantic versioning.
  4. Release a new version on GitHub.

codeforlife-package-javascript's People

Contributors

cewei8483 avatar cfl-bot avatar faucomte97 avatar kamilpawel avatar semantic-release-bot avatar skairinos avatar

Watchers

 avatar  avatar  avatar

codeforlife-package-javascript's Issues

The automated release is failing 🚨

🚨 The automated release from the main branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can fix this πŸ’ͺ.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the main branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here are some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


Cannot push to the Git repository.

semantic-release cannot push the version tag to the branch main on the remote Git repository with URL https://[secure]@github.com/ocadotechnology/codeforlife-package-javascript.git.

This can be caused by:


Good luck with your project ✨

Your semantic-release bot πŸ“¦πŸš€

Page agnostic features

  • session timeout popup
  • screentime warning popup
  • contact us 3rd party form
  • Cookie swipeable drawer
  • Django messages banner? Unless it would make more sense to have in the repos that inherit this package

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.