Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
d36e98d
test commit
dlucenario Jan 25, 2022
bb203f1
init gatsby vanilla
dlucenario Jan 25, 2022
0c43d78
plop configuration // cd plop && plop
dlucenario Jan 26, 2022
66d34a5
layout and subcomponents
dlucenario Feb 1, 2022
50a4286
forgot to add actual layout components
dlucenario Feb 2, 2022
e1ab0d4
search
dlucenario Feb 3, 2022
b5ae600
initial work on homepage
dlucenario Feb 11, 2022
610c483
clearing warnings
dlucenario Feb 11, 2022
ce6dcb4
adding static folder
dlucenario Feb 11, 2022
d20e22a
homepage done
dlucenario Feb 11, 2022
825b684
resolving ash comments
dlucenario Feb 14, 2022
0e59583
plp initial work
dlucenario Feb 14, 2022
faa4bc1
filters and clearing warnings
dlucenario Feb 16, 2022
bfdac74
plp version 2 done
dlucenario Feb 16, 2022
0ad615e
initial work on pdp
dlucenario Feb 17, 2022
44ddf92
adding pictures
dlucenario Feb 17, 2022
18a519a
mini cart and bag preview
dlucenario Feb 18, 2022
df8b314
build fix
dlucenario Feb 18, 2022
dd58d75
cart and about page initial work
dlucenario Feb 21, 2022
01fc222
support page
dlucenario Feb 23, 2022
8096b98
handling responsiveness
dlucenario Feb 23, 2022
f5700f1
responsiveness issues
dlucenario Feb 24, 2022
52bc0a8
more responsiveness issues with product grid
dlucenario Feb 24, 2022
116dfd9
pdp mobile support
dlucenario Feb 27, 2022
c735283
main navigation responsiveness
dlucenario Feb 28, 2022
4917f8b
font adjustments for mobile homepage
dlucenario Feb 28, 2022
038fe5f
modifying main navigation
dlucenario Feb 28, 2022
3d8ed4b
responsiveness for plp
dlucenario Feb 28, 2022
94e09ee
auth pages and qas
dlucenario Mar 2, 2022
9f92236
account pages
dlucenario Mar 3, 2022
cf82542
build fix
dlucenario Mar 4, 2022
3ddda4d
cart responsiveness and favorites
dlucenario Mar 4, 2022
738d7c5
about page responsiveness
dlucenario Mar 4, 2022
169f815
static pages and blog
dlucenario Mar 7, 2022
d0eefe9
static pages
dlucenario Mar 8, 2022
c59cc2b
account pages and qas
dlucenario Mar 10, 2022
53f324c
test push
dlucenario Mar 15, 2022
792132f
qa items. added responsiveness. cart notification.
dlucenario Mar 15, 2022
2b903c7
qa font size
dlucenario Mar 17, 2022
f3c5beb
Add How to use page, footer link and various minor updates throughout
Ash-Matter May 9, 2022
d52fedf
Text update on how to
Ash-Matter May 10, 2022
ac445cd
Copy layout change on how to page
Ash-Matter May 10, 2022
ed4c3ed
Logo update and link amendment
Ash-Matter May 10, 2022
ba92923
Label update
Ash-Matter May 10, 2022
4ea8ef5
Footer updates
Ash-Matter May 10, 2022
e68e22e
Add images to how to page
Ash-Matter May 11, 2022
dbffda5
Manage image size
Ash-Matter May 11, 2022
5a9e1a6
Add favicon
Ash-Matter May 11, 2022
97bc76b
Update Readme from default
Ash-Matter May 12, 2022
7eca5aa
sets up netlify project
tzmanics May 12, 2022
b339b47
chore: Remove blog sample from the footer
maxcell May 17, 2022
df7562e
Test commit
maxcell May 17, 2022
b051d84
changes link route from blogs to blog
tzmanics May 18, 2022
d4c5277
bug (#6): changes link route from blogs to blog
tzmanics May 18, 2022
7603624
chore (#3): Remove blog sample from the footer
tzmanics May 18, 2022
ccabac8
Removes nested nav from side journal link (#10)
tzmanics May 18, 2022
55452fc
Modifies icons to use appropriate HTML button or anchor (#8)
maxcell May 18, 2022
91f5a2b
changes # links to /shop
tzmanics May 18, 2022
0474b3e
documentation (#14): adds Matter + Netlify banner
tzmanics May 18, 2022
99841da
bug (#11): adds shop links to all shop nav items
tzmanics May 19, 2022
465452b
documentation (#14): adds Matter + Netlify banner
tzmanics May 19, 2022
352c50e
Adds standard black to header icons (#22)
maxcell May 19, 2022
1690b88
Makes blog list title anchors and increase touch target (#13)
maxcell May 19, 2022
2246907
adds getting started section (#23)
taty2010 May 19, 2022
e3bde98
adds prettier and runs it on write
tzmanics May 21, 2022
752b190
removes unused var
tzmanics May 21, 2022
35b3a16
chore (#16): adds formatting
tzmanics May 24, 2022
7258881
comments out double trouble maker
tzmanics May 24, 2022
69a6a18
fix: Move notification card out of cart button
maxcell May 24, 2022
1d54452
lint
maxcell May 24, 2022
c5650af
bug (#30): fixes double rendering
tzmanics May 24, 2022
5b5d9b8
chore: Adds project structure details and next steps (#24)
maxcell May 24, 2022
be786d1
Adding Deployment Steps (#25)
taty2010 May 24, 2022
f8932df
adds screenshots
tzmanics May 24, 2022
dc27f83
adds anatomy words
tzmanics May 24, 2022
427a340
documentation (#17): adds project anatomy
tzmanics May 24, 2022
54c9f2e
adds gatsby plugin to toml
tzmanics May 24, 2022
a746878
installs ntl plugin and adds to config
tzmanics May 24, 2022
a8f2e90
fixes netlify plugin name and refs
tzmanics May 24, 2022
c1052fc
chore (#28): adds gatsby plugin
tzmanics May 24, 2022
72ae8fd
adds live link to the readme
tzmanics May 25, 2022
7c7df61
Updates project info
tzmanics May 25, 2022
02f5f08
fixes dtn link
tzmanics May 25, 2022
aaab318
fixes formatting issue in config
tzmanics May 25, 2022
8da0113
chore (#28): fix eslint errors (#35)
tzmanics May 25, 2022
e9a7bea
Add renovate.json (#37)
renovate[bot] Jun 8, 2022
4d57e8b
Update dependency @netlify/plugin-gatsby to ^3.2.1
renovate-bot Jun 8, 2022
3b44d7f
adds cypress and config
tzmanics Jun 10, 2022
f76c649
adds and configs cypress netlify plugin
tzmanics Jun 10, 2022
d118770
adds readme ToC and testing updates
tzmanics Jun 10, 2022
852479c
adds test description
tzmanics Jun 11, 2022
ad91a01
chore (#36): adds maintenance tooling
tzmanics Jun 11, 2022
74a17c0
Update dependency cypress to v10.1.0
renovate-bot Jun 13, 2022
9d6004a
Update dependency plop to v3.1.0
renovate-bot Jun 13, 2022
a19c35a
Update dependency @netlify/plugin-gatsby to ^3.2.2
renovate-bot Jun 13, 2022
7ef2d8d
Update dependency plop to v3.1.1
renovate[bot] Jun 20, 2022
c360c29
Update dependency prettier to v2.7.1
renovate[bot] Jun 20, 2022
c22205b
Update dependency @netlify/plugin-gatsby to ^3.2.3
renovate[bot] Jun 23, 2022
0e7d1a4
Update dependency @netlify/plugin-gatsby to ^3.2.4
renovate[bot] Jun 24, 2022
e6d4d53
Update dependency cypress to v10.2.0
renovate[bot] Jun 27, 2022
1de8f40
Update dependency react-slick to ^0.29.0
renovate[bot] Jun 27, 2022
167f503
Update dependency cypress to v10.3.0
renovate[bot] Jul 4, 2022
d19d67a
Update gatsby monorepo to v4.18.0
renovate[bot] Jul 5, 2022
fec86f5
Update dependency @netlify/plugin-gatsby to ^3.2.5
renovate[bot] Jul 11, 2022
da6ed3c
Update dependency @netlify/plugin-gatsby to ^3.3.0
renovate[bot] Jul 13, 2022
e22774c
Update dependency @netlify/plugin-gatsby to ^3.3.1
renovate[bot] Jul 15, 2022
0dd42cb
Update gatsby monorepo
renovate[bot] Jul 18, 2022
412c5dc
Update dependency cypress to v10.3.1
renovate[bot] Jul 25, 2022
fcfd665
Update gatsby monorepo
renovate[bot] Jul 25, 2022
1fd4b9f
Update dependency @netlify/plugin-gatsby to ^3.4.0
renovate[bot] Jul 25, 2022
7f4dab3
Update dependency @netlify/plugin-gatsby to ^3.4.1
renovate[bot] Aug 2, 2022
6b5b2f4
Update dependency cypress to v10.4.0
renovate[bot] Aug 8, 2022
486f911
Update gatsby monorepo to v4.20.0
renovate[bot] Aug 8, 2022
f3a2b09
Update dependency gatsby-plugin-netlify to v5 (#53)
renovate[bot] Aug 9, 2022
f00676c
Update react monorepo to v18 (#54)
renovate[bot] Aug 9, 2022
7b7034e
Update dependency @netlify/plugin-gatsby to ^3.4.2
renovate[bot] Aug 15, 2022
9d30ee3
Update dependency @netlify/plugin-gatsby to ^3.4.3
renovate[bot] Aug 17, 2022
d76e23d
Update dependency cypress to v10.6.0
renovate[bot] Aug 22, 2022
6ef45df
Update gatsby monorepo
renovate[bot] Aug 22, 2022
7714550
Update dependency @netlify/plugin-gatsby to ^3.4.4
renovate[bot] Aug 27, 2022
3d695fb
Update dependency cypress to v10.7.0
renovate[bot] Sep 5, 2022
f6e0dc6
Update gatsby monorepo to v4.22.0
renovate[bot] Sep 5, 2022
d62e6bd
Update dependency @netlify/plugin-gatsby to ^3.4.5
renovate[bot] Sep 5, 2022
715388e
Update dependency gatsby to v4.22.1
renovate[bot] Sep 8, 2022
b110469
Update dependency @netlify/plugin-gatsby to ^3.4.6
renovate[bot] Sep 10, 2022
73c5086
Update dependency cypress to v10.8.0
renovate[bot] Sep 19, 2022
6f3b9df
Update gatsby monorepo to v4.23.0
renovate[bot] Sep 19, 2022
657e022
Update dependency @netlify/plugin-gatsby to ^3.4.7
renovate[bot] Sep 19, 2022
7f28122
Update dependency cypress to v10.9.0
renovate[bot] Oct 3, 2022
56d1b86
Update gatsby monorepo
renovate[bot] Oct 3, 2022
3ca2eeb
Update dependency @netlify/plugin-gatsby to ^3.4.8
renovate[bot] Oct 5, 2022
7ce4719
Update dependency gatsby to v4.24.3
renovate[bot] Oct 10, 2022
084550c
Update dependency gatsby to v4.24.4
renovate[bot] Oct 17, 2022
53d81a5
Update dependency cypress to v10.10.0
renovate[bot] Oct 17, 2022
910a07b
Update dependency gatsby to v4.24.7
renovate[bot] Nov 7, 2022
15979a7
Update dependency cypress to v10.11.0
renovate[bot] Nov 7, 2022
735b02e
Update dependency gatsby to v4.24.8
renovate[bot] Nov 21, 2022
2832d27
Update dependency prettier to v2.8.0
renovate[bot] Nov 28, 2022
ead19cc
Update dependency gatsby-plugin-netlify to v5.1.0
renovate[bot] Dec 5, 2022
450d81a
Update dependency prettier to v2.8.1
renovate[bot] Dec 12, 2022
72fb694
Update gatsby monorepo to v4.25.0
renovate[bot] Dec 12, 2022
93d71dd
Update dependency @netlify/plugin-gatsby to ^3.5.0
renovate[bot] Dec 16, 2022
a082d3f
Update dependency gatsby to v4.25.1
renovate[bot] Jan 2, 2023
9e7b04a
Update dependency gatsby to v4.25.2
renovate[bot] Jan 9, 2023
8a835cb
Update dependency prettier to v2.8.2
renovate[bot] Jan 9, 2023
3e77492
Update dependency gatsby to v4.25.4
renovate[bot] Jan 23, 2023
5dc72f9
Update dependency prettier to v2.8.3
renovate[bot] Jan 23, 2023
d8bbc50
Update dependency @netlify/plugin-gatsby to ^3.5.1
renovate[bot] Jan 23, 2023
e651aaa
Update dependency plop to v3.1.2
renovate[bot] Feb 13, 2023
2710c64
Update dependency prettier to v2.8.4
renovate[bot] Feb 13, 2023
7a9d887
Update dependency gatsby to v4.25.5
renovate[bot] Feb 27, 2023
f893d32
Update dependency @netlify/plugin-gatsby to ^3.5.2
renovate[bot] Feb 27, 2023
29e72b5
updated banner
taty2010 Mar 8, 2023
6026b5c
Update dependency @netlify/plugin-gatsby to ^3.6.0
renovate[bot] Mar 13, 2023
5757d44
Update dependency prettier to v2.8.7
renovate[bot] Mar 27, 2023
bd9a56e
Update dependency gatsby to v4.25.6
renovate[bot] Apr 3, 2023
ecf772d
Update dependency @netlify/plugin-gatsby to ^3.6.1
renovate[bot] Apr 12, 2023
fa4435b
Update dependency @netlify/plugin-gatsby to ^3.6.2
renovate[bot] Apr 20, 2023
41727d2
Update dependency prettier to v2.8.8
renovate[bot] May 1, 2023
9f4a866
Update dependency gatsby to v4.25.7
renovate[bot] May 15, 2023
54110b8
Update dependency @netlify/plugin-gatsby to ^3.6.3
renovate[bot] Jul 17, 2023
8237072
Update dependency @netlify/plugin-gatsby to ^3.7.0
renovate[bot] Jul 19, 2023
9ce7203
Update dependency @netlify/plugin-gatsby to ^3.7.1
renovate[bot] Aug 7, 2023
148339c
Manually merge with template/main
gmacario Aug 9, 2023
2cbe576
Merge branch 'main' into feat/apply-gatsby-template
gmacario Aug 9, 2023
3fcf6f4
README.md: Add section: Copyright and license
gmacario Aug 9, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
.DS_Store
.cache/
public

# Local Netlify folder
.netlify
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"singleQuote": true,
"semi": true,
"tabWidth": 2,
}
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,24 @@
# baroloteam.online
Sources for site https://baroloteam.online

Sources for site <https://baroloteam.online>.

Based on template [gatsby-ecommerce-theme](https://github.com/netlify-templates/gatsby-ecommerce-theme).

## Copyright and license

Copyright (C) 2021-2023, [B-AROL-O Team](https://github.com/B-AROL-O), all rights reserved.

### Source code license

The source code contained in this repository and the executable distributions are licensed under the terms of the MIT license as detailed in the [LICENSE](LICENSE) file.

Please refer to [README_template.md](README_template.md) for the template documentation and license details.

### Documentation license

![CC BY-SA 4.0](https://i.creativecommons.org/l/by-sa/4.0/88x31.png)

Please note that your contribution to the B-AROL-O Team Documentation is licensed under a Creative Commons Attribution-Share Alike 4.0 License.
See <https://creativecommons.org/licenses/by-sa/4.0/> for details.

<!-- EOF -->
215 changes: 215 additions & 0 deletions README_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
![Gatsby E-commerce theme designed by Matter](https://user-images.githubusercontent.com/43764894/223762927-2e463570-b09a-4d51-ab81-2e0fa8aa2c70.png)

This beautiful theme from the [Matter Design Team](https://matterdesign.com.au/) gives you the styling and scaffolding for your next e-commerce site. You can customize to your heart's content and add the tooling for cart, transactions, product, and more. This theme uses:

- [Gatsby](https://www.gatsbyjs.com/)
- [CSS Modules](https://github.com/css-modules/css-modules)
- [Prettier](https://prettier.io/)
- [React Helmet](https://github.com/nfl/react-helmet)

Take a look at the screenshot below or preview the live site here: https://gatsby-ecommerce-theme.netlify.app/!
![full page screenshot](https://res.cloudinary.com/dzkoxrsdj/image/upload/v1653371030/CleanShot_2022-05-24_at_01.11.52_2x_bspa8c.jpg)

> 🧐 Please be aware that some aspects of this theme are not fully functional and will need to be integrated with the recommended tooling mentioned at the end of the [README](#next-steps-with-this-theme).

## Table of Contents:

- [Table of Contents:](#table-of-contents)
- [Quick Setup + Deploy Option](#quick-setup--deploy-option)
- [Regular Setup](#regular-setup)
- [Cloning + Installing Packages](#cloning--installing-packages)
- [Deploying](#deploying)
- [Project Structure](#project-structure)
- [Making changes to the Hero component](#making-changes-to-the-hero-component)
- [Making content changes to the Header or Footer](#making-content-changes-to-the-header-or-footer)
- [Testing](#testing)
- [Included Default Testing](#included-default-testing)
- [Removing Renovate](#removing-renovate)
- [Removing Cypress](#removing-cypress)
- [Next Steps with this theme](#next-steps-with-this-theme)

## Quick Setup + Deploy Option

Click the button below and it will help you create a new repo, create a new Netlify project, and deploy this Theme!

[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/netlify-templates/gatsby-ecommerce-theme&utm_source=github&utm_medium=matter-design-theme-repo&utm_campaign=template-team)

## Regular Setup

### Cloning + Installing Packages

- Clone this repo with one of these options:

- Click the 'Use this template' button at the top of the page
- Via the command line:
```shell
git clone https://github.com/netlify-templates/gatsby-ecommerce-theme/
```
- Or you can clone the theme straight from the Netlify CLI, using the `netlify sites:create-template` command in your terminal ([learn more about this command here](https://www.netlify.com/blog/create-a-site-from-a-template-using-the-netlify-cli)) to do the entire flow for you.

From there, you can install the project's dependencies by running:

```shell
npm install or yarn install
```

Finally, you can run your project locally with:

```shell
cd gatsby-sydney-ecommerce-theme/
npm start or yarn start
```

or, run it using the Netlify CLI with:

```shell
netlify run dev
```

Open your browser and visit <http://localhost:5000>, your project should now be running!

## Deploying

After installing and customizing your new e-commerce theme it's now time to deploy!

- You can Deploy using the [Netlify CLI](https://cli.netlify.com/):

```bash
netlify init # initialize a new Netlify project & deploy
```

It will use the information from the included Netlify configuration file, [`netlify.toml`](./netlify.toml), to set up the build command as `gatsby build` to create a static project and locate the build project in the `public` directory.

The `init` process will also set up continuous deployment for your project so that a new build will be triggered & deployed when you push code to the repo (you can change this from your project dashboard: Site Settings/Build & deploy/Continuous Deployment).

You can also use `netlify deploy (--prod)` to manually deploy and `netlify open` to open your project dashboard.

> πŸ’‘ we only have so many keystrokes to give, use `ntl` shorthand for `netlify` or make [an alias of your own](https://www.netlify.com/blog/2020/04/12/speed-up-productivity-with-terminal-aliases/) to save hours...of accumulated milliseconds

- You can deploy within the Netlify site by connecting to git, this [video](https://www.youtube.com/watch?v=4h8B080Mv4U&t=107s) will walk you through that process.
- Or, you can use the Deploy to Netlify button which will walk you through the process of spinning up a repo, creating a new project in Netlify, AND deploying it :)

[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/netlify-templates/gatsby-ecommerce-theme&utm_source=github&utm_medium=matter-design-theme-repo&utm_campaign=template-team)

## Project Structure

Here is a bit of an overview of the directory structure of the project:

| Directory | Description |
| :---- | :---- |
| `src/components/` | Stores reusable elements across the site. (e.g. BlogPreview element) |
| `src/pages/` | Stores routes for a user to go to based on each `.js` file and nested folder (e.g. `src/pages/about.js` creates a route `/about` in the web app) |
| `src/helpers` | Stores mock data for the blog or product list and general utility functions. |

### Making changes to the Hero component

On the homepage of the website and a few other places, there is a full-width image component. We refer to this as the `<Hero/>` component. Here is a bit of an overview of what its API looks like:

```jsx
<Hero
maxWidth='500px' // how big the image's maxumim should be
image={'/banner1.png'} // the source location for the image
title={'Essentials for a cold winter'} // the main text displayed
subtitle={'Discover Autumn Winter 2021'} // text found below the main text
ctaText={'shop now'} // the presented text for a user to click on
ctaAction={goToShop} // the location the call-to-action text directs users
/>
```

You can see it in action under [`src/pages/index.js`](./src/pages/index.js) or see the component in [`src/components/Hero/Hero.js`](./src/components/Hero/Hero.js).

### Making content changes to the Header or Footer

The project contains a file named `src/config.json`. Inside of this file describes the content of the header links (`headerLinks`) as well as the footer links (`footerLinks`). For the header, each element in the array has a base structure of:

```json
{
"menuLabel": "The label that is given to a user",
"menuLink": "The URL that this should take a user to"
}
```

If you want the menu item to have a dropdown, you can also add a `category` key with the value being an array of the categories and their containing elements, here's what the base could look like:

```json
{
"menuLabel": "The label that is given to a user",
"menuLink": "The URL that this should take a user to",
"category": [
{
"categoryLabel": "Label you want the category to have",
"submenu": [
{
"menuLabel": "A label underneath the category",
"menuLink": "The associated link to this label"
}
]
}
]
}
```

The footer works in a similar way. It assumes each element in the array has a heading and an array of associated links to direct folks to:

```json
"footerLinks": [
{
"subTitle": "Label of the column in the footer",
"links": [
{
"text": "Text to display to the user",
"link": "URL of where to take the user to when clicked"
},
]
}
]
```

## Testing

### Included Default Testing

We’ve included some tooling that helps us maintain these templates. This template currently uses:

- [Renovate](https://www.mend.io/free-developer-tools/renovate/) - to regularly update our dependencies
- [Cypress](https://www.cypress.io/) - to run tests against how the template runs in the browser
- [Cypress Netlify Build Plugin](https://github.com/cypress-io/netlify-plugin-cypress) - to run our tests during our build process

If your team is not interested in this tooling, you can remove them with ease!

### Removing Renovate

In order to keep our project up-to-date with dependencies we use a tool called [Renovate](https://github.com/marketplace/renovate). If you’re not interested in this tooling, delete the `renovate.json` file and commit that onto your main branch.

### Removing Cypress

For our testing, we use [Cypress](https://www.cypress.io/) for end-to-end testing. This makes sure that we can validate that our templates are rendering and displaying as we’d expect. By default, we have Cypress not generate deploy links if our tests don’t pass. If you’d like to keep Cypress and still generate the deploy links, go into your `netlify.toml` and delete the plugin configuration lines:

```diff
[[plugins]]
package = "netlify-plugin-cypress"
- [plugins.inputs.postBuild]
- enable = true
-
- [plugins.inputs]
- enable = false
```

If you’d like to remove the `netlify-plugin-cypress` build plugin entirely, you’d need to delete the entire block above instead. And then make sure sure to remove the package from the dependencies using:

```bash
npm uninstall -D netlify-plugin-cypress
```

And lastly if you’d like to remove Cypress entirely, delete the entire `cypress` folder and the `cypress.config.ts` file. Then remove the dependency using:

```bash
npm uninstall cypress
```

## Next Steps with this theme

This project is intended to be extended by you! We wanted to make possible to replace parts of it with your own tools and data sources. If you're interested on a direction, you can refer to Matter's [how to use section](https://gatsby-ecommerce-theme.netlify.app/how-to-use/) in this project or you may want to consider using [Matter's toolset with their JAMM framework](https://matterdesign.com.au/service/headless-commerce-with-jamm/) which includes some projects like:
- [BigCommerce](https://bigcommerce.zfrcsk.net/c/2429593/854992/2941) for a headless e-commerce solution
- [Builder](https://www.builder.io) as a CMS for the blog articles or other content creation
- [Klaviyo](https://www.klaviyo.com/) for any email or SMS marketing automation
8 changes: 8 additions & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const { defineConfig } = require("cypress");

module.exports = defineConfig({
e2e: {
baseUrl: 'http://localhost:8888',
supportFile: false,
},
});
10 changes: 10 additions & 0 deletions cypress/e2e/basic.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
describe('sample render test', () => {
beforeEach(() => {
cy.visit('/')
})

it('displays the title text', () => {
cy.get('h2')
.contains('Essentials for a cold winter');
})
})
7 changes: 7 additions & 0 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from 'react';

import { NotificationProvider } from './src/context/AddItemNotificationProvider';

export const wrapRootElement = ({ element }) => (
<NotificationProvider>{element}</NotificationProvider>
);
21 changes: 21 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
siteMetadata: {
title: `Gatsby Sydney Ecommerce Theme`,
siteUrl: `https://jamm.matter.design`,
},
plugins: [
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Gatsby Sydney Ecommerce Theme`,
short_name: `Sydney`,
start_url: `/`,
background_color: `#000000`,
theme_color: `#ffffff`,
display: `standalone`,
icon: 'src/assets/favicon.png',
},
},
'gatsby-plugin-netlify',
],
};
14 changes: 14 additions & 0 deletions gatsby-node.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// https://stackoverflow.com/questions/63124432/how-do-i-configure-mini-css-extract-plugin-in-gatsby
exports.onCreateWebpackConfig = (helper) => {
const { stage, actions, getConfig } = helper;
if (stage === 'develop' || stage === 'build-javascript') {
const config = getConfig();
const miniCssExtractPlugin = config.plugins.find(
(plugin) => plugin.constructor.name === 'MiniCssExtractPlugin'
);
if (miniCssExtractPlugin) {
miniCssExtractPlugin.options.ignoreOrder = true;
}
actions.replaceWebpackConfig(config);
}
};
16 changes: 16 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[build]
command = "gatsby build"
functions = "netlify/functions"
publish = "public"

[[plugins]]
package = "@netlify/plugin-gatsby"

[[plugins]]
package = "netlify-plugin-cypress"

[plugins.inputs.postBuild]
enable = true

[plugins.inputs]
enable = false
Loading