Skip to content

Commit 53a1345

Browse files
committed
wip
1 parent 7ee6a71 commit 53a1345

3 files changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## General
2+
3+
- All documentation for Tempest can be found in vendor/tempest/framework/docs
4+
- Use `php tempest make:` commands to create framework-specific classes.
5+
6+
## Frontend
7+
8+
- Use TailwindCSS
9+
- Use Tempest view components where it makes sense

src/Tempest/Framework/Installers/FrameworkInstaller.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,16 @@ public function install(): void
4444
},
4545
);
4646

47+
$this->publish(
48+
source: __DIR__ . '/AGENTS.md',
49+
destination: root_path('AGENTS.md'),
50+
callback: function (string $_, string $destination): void {
51+
$claude = root_path('CLAUDE.md');
52+
53+
exec("ln -s {$destination} {$claude}");
54+
},
55+
);
56+
4757
$this->updateComposer();
4858

4959
$this->console->call('discovery:generate');

tests/Integration/Core/FrameworkInstallerTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ public function test_it_can_force_install(): void
5656
path: '.env',
5757
content: file_get_contents(__DIR__ . '/../../../.env.example'),
5858
)
59+
->assertFileExists(
60+
path: 'AGENTS.md',
61+
content: file_get_contents(__DIR__ . '/../../../src/Tempest/Framework/Installers/AGENTS.md'),
62+
)
63+
->assertFileExists(
64+
path: 'CLAUDE.md',
65+
content: file_get_contents(__DIR__ . '/../../../src/Tempest/Framework/Installers/AGENTS.md'),
66+
)
5967
->assertCommandExecuted('composer up');
6068

6169
if (PHP_OS_FAMILY !== 'Windows') {

0 commit comments

Comments
 (0)