Skip to content

Commit

Permalink
deleted wrong script
Browse files Browse the repository at this point in the history
  • Loading branch information
shaharzil committed Mar 18, 2024
1 parent 409809c commit e34dca7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/storybook-blocks/scripts/copy-mixins-to-dist.sh
Original file line number Diff line number Diff line change
@@ -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."

0 comments on commit e34dca7

Please sign in to comment.