-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Description
Description
Implement logic to apply a template to an app repo creation process.
Steps
- Copy default repo
- Remove:
- Expand globs in
remove - Delete files/folders
- Expand globs in
- Copy:
- Copy
<template>/<contentPath>β app root - Overwrite existing files
- Copy
- update appmetadata
steps 1 and 2 handled by template apply engine
Safety
- Never delete outside app root
- Reject path traversal
- No-op if remove matches nothing
Acceptance criteria
-
Directories and files are removed correctly.
-
Copy overwrites existing files.
-
Safety checks prevent deleting outside root.
-
Logs removed + copied files.
-
Unit tests cover all behaviors.
-
Apply template during app initialization
-
If no templateId β use default behavior
-
API accepts optional
templateId -
Unknown templateId β 400 error
-
Template applied in correct order
-
Integration test covers create-app with template
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status
Status
No status