Skip to content

Commit

Permalink
MeepMeep local flipping support
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinfrei committed Oct 12, 2024
1 parent 73f1691 commit 812df1c
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,4 @@ lint/tmp/
node_modules/**
TechnoLib
tsconfig.tsbuildinfo
MeepMeep
3 changes: 2 additions & 1 deletion MeepMeepTesting/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,6 @@ makeMeepMeep16750Java.mustRunAfter cleanMeepMeep
makeMeepMeep20403Java.mustRunAfter cleanMeepMeep

dependencies {
implementation 'com.github.NoahBres:MeepMeep:2.0.2'
// implementation 'com.github.NoahBres:MeepMeep:2.0.3' // FLIP: MeepMeepLocal
implementation project(':MeepMeep') // FLIP: MeepMeepLocal
}
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ allprojects {
Since we work with different items in parallel and some are exploratory/test, we keep our work in branches.
Create a new branch for new work, at the end of the meet push your changes (don't keep them just in your computer!)


## Advanced: Using local library

Instead of pulling libraries from Maven, you can clone repositories:
* [TechnoLib](https://github.com/technototes/TechnLib)
* [MeepMeep](https://github.com/NoahBres/MeepMeep)

Once you have them cloned, you can use these commands to switch between Maven and the local library:

* `bun libflip` for TechnoLib
* `bun meepflip` for MeepMeep

# FIRST
What follos is what is present in the IntoTheDeep2024 repo, reproduced verbatim
## NOTICE
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
"- // e-": "",
"- // e": "Disable/enable 'all' bots & subbuilds",
"botflip": "bun run scripts/flip.ts bot",
"- // ef-": "",
"- // ef": "This will toggle using MeepMeep locally or from Maven",
"meepflip": "bun run scripts/flip.ts meepmeep",
"- // f-": "",
"- // f ": "Stuff for connecting/disconnecting from the bot",
"- // f+": "",
Expand Down
10 changes: 10 additions & 0 deletions scripts/flip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ const fileList = new Map<string, FileList>([
'bot',
{ name: 'BUILD ALL BOTS', files: ['settings.gradle', 'build.gradle'] },
],
[
'meepmeep',
{
name: 'MeepMeepLocal',
files: [
'MeepMeepTesting/build.gradle',
'settings.gradle',
]
}
]
]);

// For any line that ends with '// FLIP: id',
Expand Down
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ include ':FtcRobotController'
// include 'Vision' // FLIP: TechnoLibLocal
// project(':Vision').projectDir = new File('TechnoLib/Vision') // FLIP: TechnoLibLocal

include 'MeepMeep' // FLIP: MeepMeepLocal
project(':MeepMeep').projectDir = new File('MeepMeep') // FLIP: MeepMeepLocal

include ':Sixteen750'
include ':Twenty403'
Expand Down

0 comments on commit 812df1c

Please sign in to comment.