netlify-templates / gatsby-ecommerce-theme Goto Github PK
View Code? Open in Web Editor NEWA Gatsby-based starter theme with e-commerce styled components
Home Page: https://gatsby-ecommerce-theme.netlify.app/
A Gatsby-based starter theme with e-commerce styled components
Home Page: https://gatsby-ecommerce-theme.netlify.app/
currently some links link to shop and some don't
we've decided to just add it everywhere for consistency
if the link is /shop and user is currently on the /shop page nothing will happen
we'll clarify this in the readme
We want to make sure our formatting is consistent so we like to add a nice little tooling for us. Previously in other projects we've opted for Prettier and and ESLint. We don't have a significant amount of opinions but we try to optimize for the project/framework's own opinions.
Maybe something like this, https://www.gatsbyjs.com/docs/how-to/custom-configuration/eslint/, could be helpful for building a base eslint configuration for a Gatsby site. I think the prettier file is just including a .prettierrc
file. See this document on installing it
Currently running into an issue where on certain pages we are seeing double footer and page only on the Deployed site and not locally.
[![Deploy to Netlify Button](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/netlify-templates/gatsby-ecommerce-theme)
these eslint a11y errors came up because of more instances of using divs instead of buttons. we shuold make these anchors or buttons instead.
/gatsby-ecommerce-theme/src/components/BlogPreview/BlogPreview.js
14:5 warning Visible, non-interactive elements with click handlers must have at least one keyboard listener jsx-a11y/click-events-have-key-events
14:5 warning Static HTML elements with event handlers require a role jsx-a11y/no-static-element-interactions
gatsby-ecommerce-theme/src/components/Swatch/Swatch.js
8:5 warning Visible, non-interactive elements with click handlers must have at least one keyboard listener jsx-a11y/click-events-have-key-events
8:5 warning Static HTML elements with event handlers require a role jsx-a11y/no-static-element-interactions```
I was verifying that the buttons and things were working on smaller devices and found these interesting visual defects. My suspicion is that they illuminated themselves when I modified these elements into buttons instead of divs.
Tablet | Phone |
---|---|
![]() |
![]() |
I couldn't see these on a desktop even in the visual responsive modes so I am glad that I have test devices to verify any new behavior.
The iconography in the navigation needs to be accessible and reachable for users. Right now they do not communicate the appropriate behavior even though they work for mouse users. I think optimizing them for semantic HTML will be ideal.
Currently everything in this except for the lefthand navigation is considered a div
netlify dev
To make sure that our project stays up to date we'd like to add some tools:
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"local>netlify-templates/renovate-config"
]
}
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
gatsby
, gatsby-plugin-manifest
)package.json
@netlify/plugin-gatsby ^3.8.0
cypress ^10.0.3
gatsby ^4.5.4
gatsby-plugin-manifest ^4.14.0
react ^18.0.0
react-dom ^18.0.0
react-helmet ^6.1.0
react-slick ^0.30.0
gatsby-plugin-netlify ^5.0.0
netlify-plugin-cypress ~2.2.0
plop ^3.0.5
prettier ^2.6.2
Jdhduh
netlify.toml
(https://docs.netlify.com/integrations/build-plugins/#configure-settings)guide to
Deeper into the workings
config.json
changes, header, footer, and homepage changes)feel free to use https://github.com/netlify-templates/nextjs-blog-theme as a guide
Ghdbgf
After cloning and running 'npm i', I did npm start and I got the following error
[email protected] start
gatsby develop -p 5000
internal/modules/cjs/loader.js:491
throw new ERR_PACKAGE_PATH_NOT_EXPORTED(basePath, mappingKey);
^
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './is-truthy' is not defined by "exports" in /Applications/gatsby-ecommerce-theme/node_modules/gatsby-core-utils/package.json
at applyExports (internal/modules/cjs/loader.js:491:9)
at resolveExports (internal/modules/cjs/loader.js:507:23)
at Function.Module._findPath (internal/modules/cjs/loader.js:635:31)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:953:27)
at Function.Module._load (internal/modules/cjs/loader.js:842:27)
at Module.require (internal/modules/cjs/loader.js:1026:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (/Applications/gatsby-ecommerce-theme/node_modules/gatsby-cli/lib/reporter/reporter.js:34:17)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
When running gatsby build
/usr/local/lib/node_modules/gatsby-cli/lib/reporter/reporter.js:41
let isVerbose = (0, _isTruthy.isTruthy)(process.env.GATSBY_REPORTER_ISVERBOSE);
^
ReferenceError: _isTruthy is not defined
at Object. (/usr/local/lib/node_modules/gatsby-cli/lib/reporter/reporter.js:41:17)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Module.require (internal/modules/cjs/loader.js:1026:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (/usr/local/lib/node_modules/gatsby-cli/lib/reporter/catch-exit-signals.js:16:17)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.