mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-22 21:41:37 +00:00
Update TODO.txt and init.rs to manage atlas-project.mdc
- Added a new entry in TODO.txt to remove atlas-project.mdc from shared agent rules and migrate it to manual cloning for new projects. - Updated init.rs to include atlas-project.mdc in the project initialization process, ensuring it is created in the appropriate rules directory.
This commit is contained in:
parent
8645e4f1b5
commit
cf31e9b914
2 changed files with 8 additions and 0 deletions
3
TODO.txt
3
TODO.txt
|
|
@ -99,3 +99,6 @@ we will probably have to start dynamically generating the x.project.json5 rather
|
||||||
|
|
||||||
[syncback]
|
[syncback]
|
||||||
optimize syncback like we did serve.
|
optimize syncback like we did serve.
|
||||||
|
|
||||||
|
[atlas-project.mdc]
|
||||||
|
we need to remove atlas-project.mdc from the main shared agent rules and migrate it to being manually cloned into newly created projects.....
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ use super::resolve_path;
|
||||||
const GIT_IGNORE_PLACEHOLDER: &str = "gitignore.txt";
|
const GIT_IGNORE_PLACEHOLDER: &str = "gitignore.txt";
|
||||||
|
|
||||||
static TEMPLATE_BINCODE: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/templates.bincode"));
|
static TEMPLATE_BINCODE: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/templates.bincode"));
|
||||||
|
static ATLAS_PROJECT_MDC: &str = include_str!("../../.cursor/rules/atlas-project.mdc");
|
||||||
|
|
||||||
/// Initializes a new Rojo project.
|
/// Initializes a new Rojo project.
|
||||||
///
|
///
|
||||||
|
|
@ -117,6 +118,10 @@ impl InitCommand {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let rules_dir = base_path.join(".cursor/rules");
|
||||||
|
fs::create_dir_all(&rules_dir)?;
|
||||||
|
write_if_not_exists(&rules_dir.join("atlas-project.mdc"), ATLAS_PROJECT_MDC)?;
|
||||||
|
|
||||||
let did_git_init = if !self.skip_git && crate::git::git_repo_root(&base_path).is_none() {
|
let did_git_init = if !self.skip_git && crate::git::git_repo_root(&base_path).is_none() {
|
||||||
log::debug!("Initializing Git repository...");
|
log::debug!("Initializing Git repository...");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue