Last active
March 24, 2023 20:56
-
-
Save brettjrea/ff4b85bf98ccb8f3134b13943d5aff1c to your computer and use it in GitHub Desktop.
This is a bash script that sets up a Gatsby project on a system by upgrading, updating, and removing unnecessary packages, installing Yarn, Git, and dependencies like typescript and gatsby-cli. It creates a new Gatsby project, adds dependencies like styled-components, gatsby-plugin-styled-components, babel-plugin-styled-components, gatsby-plugin…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Upgrade, update and remove unnecessary packages | |
sudo apt upgrade -y && sudo apt update -y && sudo apt autoremove -y | |
# Install Yarn and Git | |
npm install --global yarn | |
sudo apt install git -y | |
# Install dependencies | |
yarn global add typescript | |
yarn global add gatsby-cli | |
gatsby options set package-manager yarn | |
# Create new Gatsby project and add dependencies | |
gatsby new my-frontend https://github.com/brettjrea/gatsby_typescript_styled_components | |
cd my-frontend | |
yarn add styled-components gatsby-plugin-styled-components babel-plugin-styled-components | |
yarn add -D @types/styled-components | |
yarn add gatsby-plugin-react-helmet-async react-helmet-async | |
yarn add gatsby-source-strapi | |
yarn add gatsby-source-graphql | |
yarn add gatsby-source-custom-api |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment