Skip to content

Commit 5762302

Browse files
committed
Revert "fix/copy-configure-stubs"
This reverts commit 77fcca1.
1 parent 77fcca1 commit 5762302

File tree

2 files changed

+8
-15
lines changed

2 files changed

+8
-15
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ phpstan.neon
99
testbench.yaml
1010
vendor
1111
node_modules
12-
.DS_Store

configure.php

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88
$authorEmail = ask('Author email', $gitEmail);
99

1010
$usernameGuess = explode(':', run('git config remote.origin.url'))[1];
11-
if ($usernameGuess) {
12-
$usernameGuess = dirname($usernameGuess);
13-
$usernameGuess = basename($usernameGuess);
14-
}
11+
$usernameGuess = dirname($usernameGuess);
12+
$usernameGuess = basename($usernameGuess);
1513
$authorUsername = ask('Author username', $usernameGuess);
1614

1715
$vendorName = ask('Vendor name', $authorUsername);
@@ -85,6 +83,9 @@
8583
]);
8684
} else {
8785
if ($isTheme) {
86+
copy(__DIR__.'/configure-stubs/theme/package.json', __DIR__.'/package.json');
87+
copy(__DIR__.'/configure-stubs/theme/plugin.css', __DIR__.'/resources/css/plugin.css');
88+
copy(__DIR__.'/configure-stubs/theme/tailwind.config.js', __DIR__.'/tailwind.config.js');
8889
safeUnlink(__DIR__.'/src/SkeletonServiceProvider.php');
8990
safeUnlink(__DIR__.'/src/Skeleton.php');
9091
removeDirectory(__DIR__.'/config');
@@ -98,6 +99,9 @@
9899
removeDirectory(__DIR__.'/src/Testing');
99100
} else {
100101
safeUnlink(__DIR__.'/src/SkeletonTheme.php');
102+
copy(__DIR__.'/configure-stubs/package/package.json', __DIR__.'/package.json');
103+
copy(__DIR__.'/configure-stubs/package/plugin.css', __DIR__.'/resources/css/plugin.css');
104+
copy(__DIR__.'/configure-stubs/package/tailwind.config.js', __DIR__.'/tailwind.config.js');
101105
}
102106

103107
remove_composer_filament_deps([
@@ -106,16 +110,6 @@
106110
]);
107111
}
108112

109-
if ($isTheme) {
110-
copy(__DIR__.'/configure-stubs/theme/package.json', __DIR__.'/package.json');
111-
copy(__DIR__.'/configure-stubs/theme/plugin.css', __DIR__.'/resources/css/plugin.css');
112-
copy(__DIR__.'/configure-stubs/theme/tailwind.config.js', __DIR__.'/tailwind.config.js');
113-
} else {
114-
copy(__DIR__.'/configure-stubs/admin/package.json', __DIR__.'/package.json');
115-
copy(__DIR__.'/configure-stubs/admin/plugin.css', __DIR__.'/resources/css/plugin.css');
116-
copy(__DIR__.'/configure-stubs/admin/tailwind.config.js', __DIR__.'/tailwind.config.js');
117-
}
118-
119113
$files = (str_starts_with(strtoupper(PHP_OS), 'WIN') ? replaceForWindows() : replaceForAllOtherOSes());
120114

121115
foreach ($files as $file) {

0 commit comments

Comments
 (0)