From e34dca7fefe770548aaa441267102d7dc1147062 Mon Sep 17 00:00:00 2001 From: shaharzil Date: Mon, 18 Mar 2024 15:05:07 +0200 Subject: [PATCH] deleted wrong script --- .../scripts/copy-mixins-to-dist.sh | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/packages/storybook-blocks/scripts/copy-mixins-to-dist.sh b/packages/storybook-blocks/scripts/copy-mixins-to-dist.sh index e69de29bb2..d53b88919c 100644 --- a/packages/storybook-blocks/scripts/copy-mixins-to-dist.sh +++ b/packages/storybook-blocks/scripts/copy-mixins-to-dist.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# Define the source and destination paths +source_folder="./src/styles/mixins" +destination_folder="./dist/styles" + +# Create folder if doesn't exist +if [ ! -d "$destination_folder" ]; then + mkdir -p "$destination_folder" +fi + +# Copy the styles folder and its contents +cp -r "$source_folder" "$destination_folder" + +# Create index file in the dist root +echo "@import './styles/mixins';" >> "./dist/_mixins.scss" + +# Display success message +echo "File ./dist/_mixins.scss successfully created." +echo "Folder $source_folder successfully copied to $destination_folder." \ No newline at end of file