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:
@@ -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*"),
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user