feat: starting to add a small app-next folder with some things

Signed-off-by: benjdlambert <ben@blam.sh>
This commit is contained in:
benjdlambert
2025-07-21 10:00:08 +02:00
parent 95fb225b9a
commit cd317e31da
19 changed files with 217 additions and 15 deletions
+1 -15
View File
@@ -267,7 +267,7 @@ describe('tasks', () => {
});
describe('templatingTask', () => {
it('should generate a project and populate context parameters', async () => {
it('should generate a project populating context parameters', async () => {
const templateDir = resolvePath(__dirname, '../../templates/default-app');
const destinationDir = 'templatedApp';
const context = {
@@ -291,20 +291,6 @@ describe('tasks', () => {
fs.readFile('templatedApp/packages/backend/package.json', 'utf-8'),
).resolves.toContain('sqlite3"');
});
it('should generate a project and skip excluded directories', async () => {
const templateDir = resolvePath(__dirname, '../../templates/default-app');
const destinationDir = 'templatedApp';
const context = { name: 'Backstage', dbTypeSqlite: true };
const excludedDirs = ['packages/app-next'];
await templatingTask(templateDir, destinationDir, context, excludedDirs);
expect(fs.existsSync('templatedApp/packages/app/package.json')).toBe(
true,
);
expect(fs.existsSync('templatedApp/packages/app-next/package.json')).toBe(
false,
);
});
});
describe('readGitConfig', () => {