Coder Social home page Coder Social logo

zhouzebin200 / all24 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from truher/all24

0.0 0.0 0.0 51.98 MB

Monorepo for 2024

License: Other

Shell 0.01% C++ 6.90% Python 1.27% C 71.90% Java 19.50% Assembly 0.11% MATLAB 0.04% Makefile 0.01% HTML 0.01% CMake 0.02% Jupyter Notebook 0.24%

all24's Introduction

all24

CI CI CI

all24 contains all the Team 100 code for 2024. There's just one repository, so that sharing library code across projects is easier.

This style of code management is sometimes called a "monorepo" if you want to read more about it.

Here is the directory layout:

  • lib: evergreen library code
  • comp: competition code for 2024
    • swerve100: roborio code
    • vision: raspberry pi code
  • studies: small independent projects
    • your project
    • another project
    • etc ...

VS Code

When you open the swerve100 project, VS Code should show a message in the bottom-right corner suggesting that you open the "workspace" instead, which includes lib:

When you have VS Code correctly set up, the Explorer view should contain two top-level folders: "swerve100" and "lib":

Setup

To include "lib" in your own "study" workspace, you need to do two things:

  • Add a workspace file, to make vscode features work with lib code
  • Edit build.gradle, so gradle builds include lib code
  • Copy the lib vendordeps to your project.

Workspace

To make a workspace file, in your project in vscode, click "add folder to workspace" choosing the lib folder, and then "save workspace to file," choosing your project directory as the location to save it.

This should result in a file at the root level of your project (next to build.gradle) that looks like this:

{
  "folders": [
    {
      "path": "."
    },
    {
      "path": "../../lib"
    }
  ],
    "settings": {
      "java.configuration.updateBuildConfiguration": "automatic",
      "java.server.launchMode": "Standard"
    }
}

Build.gradle

In your build.gradle file, add this clause just after the "plugins" clause (near the top).

sourceSets {
    main {
        java {
            srcDir "../../lib/src/main/java"
        }
    }
}

You also need to add some dependencies. So inside the "dependencies" section, add these:

    implementation 'org.msgpack:jackson-dataformat-msgpack:0.9.3'
    implementation "org.ejml:ejml-simple:0.43.1"

Vendordeps

To copy the vendordeps files, find the vendordeps directory in lib, highlight one, say, "NavX.json", and click "copy."

Then find the vendordeps directory in your project (it should contain WPILibNewCommands.json and nothing else).

Highlight the directory name ("vendordeps") and click "paste."

Repeat this process for each of the other two vendordeps files.

all24's People

Contributors

truher avatar coolearthsky avatar anorakthegreat avatar 812405 avatar matteehew avatar prithvipradhan avatar 819651 avatar manouserres 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.