Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
radix
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
radix
Commits
d5742448
Commit
d5742448
authored
1 year ago
by
Sohail Lajevardi
Browse files
Options
Downloads
Patches
Plain Diff
Add automatic cleanup of StarterKit.php after subtheme creation
parent
68b5b0b5
No related branches found
Branches containing commit
Tags
6.0.0-beta7
Tags containing commit
No related merge requests found
Pipeline
#70007
passed with warnings
1 year ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/kits/radix_starterkit/src/StarterKit.php
+8
-0
8 additions, 0 deletions
src/kits/radix_starterkit/src/StarterKit.php
with
8 additions
and
0 deletions
src/kits/radix_starterkit/src/StarterKit.php
+
8
−
0
View file @
d5742448
...
...
@@ -14,6 +14,7 @@ final class StarterKit implements StarterKitInterface {
self
::
renameFunctionsInIncludes
(
$working_dir
,
$machine_name
);
self
::
updatePackageJson
(
$working_dir
,
$machine_name
);
self
::
renameConfigFiles
(
$working_dir
,
$machine_name
);
self
::
cleanup
(
$working_dir
);
}
private
static
function
updateInfoFile
(
string
$working_dir
,
string
$machine_name
)
{
...
...
@@ -77,4 +78,11 @@ final class StarterKit implements StarterKitInterface {
}
}
}
private
static
function
cleanup
(
string
$working_dir
):
void
{
$starterKitFilePath
=
$working_dir
.
'/src/StarterKit.php'
;
if
(
file_exists
(
$starterKitFilePath
))
{
unlink
(
$starterKitFilePath
);
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment