1
0
mirror of https://github.com/siderolabs/kres.git synced 2026-02-05 09:45:35 +01:00

chore: update kres to include .gitignore and .storybook

Update kres to include .gitignore and .storybook for linting use

Signed-off-by: Edward Sammut Alessi <edward.sammutalessi@siderolabs.com>
This commit is contained in:
Edward Sammut Alessi
2025-09-30 18:36:10 +02:00
parent 301c24dcd8
commit bc281a97f2
2 changed files with 3 additions and 1 deletions

View File

@@ -34,7 +34,7 @@ func (builder *builder) DetectJS() (bool, error) {
return false, err
}
for _, path := range []string{"src", "public", "msw"} {
for _, path := range []string{"src", "public", "msw", ".storybook"} {
d := filepath.Join(srcDir, path)
if exists {
@@ -50,6 +50,7 @@ func (builder *builder) DetectJS() (bool, error) {
filepath.Join(srcDir, "*.html"),
filepath.Join(srcDir, ".npmrc"),
filepath.Join(srcDir, ".editorconfig"),
filepath.Join(srcDir, ".gitignore"),
filepath.Join(srcDir, ".prettier*"),
)
}

View File

@@ -139,6 +139,7 @@ func (toolchain *Toolchain) CompileDockerfile(output *dockerfile.Output) error {
Step(step.Copy(filepath.Join(toolchain.sourceDir, "*.html"), "./")).
Step(step.Copy(filepath.Join(toolchain.sourceDir, ".npmrc"), "./")).
Step(step.Copy(filepath.Join(toolchain.sourceDir, ".editorconfig"), "./")).
Step(step.Copy(filepath.Join(toolchain.sourceDir, ".gitignore"), "./")).
Step(step.Copy(filepath.Join(toolchain.sourceDir, ".prettier*"), "./"))
for _, directory := range toolchain.meta.JSDirectories {