mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 01:54:18 -08:00
* Add public engagement page - modifies sitemap config - creates PublicEvent component - adds SVGs for dates - all copy is in intl * Add Public Engagement button to each page - create new PublicEng component - add to each page - update snapshots - modify CEJST and Meth page to give button more space * Make mobile compliant and fix DOM validation error - transform each <p>'s descendent into a <CollectionDescription> - fix a mobile rendering issue with <Collection> library - format registration links so they render on mobile - update snapshots * Add spacing to descriptions and fix links * Add Gherkin tests for testing links - all zoom links should be functional - ensure all legacy tests, test the new page - add data-cy tag for cypress - update snapshots * Refactor to pass accessibility on all pages - update snapshots * Correct registration links * Make registration links into buttons * Make new tag bold * Update copy based on feedback from Corey
108 lines
2.7 KiB
JavaScript
108 lines
2.7 KiB
JavaScript
require('dotenv').config({
|
|
// NODE_ENV is automatically set to
|
|
// 'development' when the app is launched via 'npm start' or 'npm develop'
|
|
// 'production' when the app is launched via 'npm build'
|
|
|
|
// Depending on the node environment, the app will then use
|
|
// .env.production or .env.development for application
|
|
// env variables.
|
|
path: `.env.${process.env.NODE_ENV}`,
|
|
});
|
|
|
|
module.exports = {
|
|
siteMetadata: {
|
|
title: 'Justice40',
|
|
image: '/static/favicon.ico',
|
|
siteUrl: process.env.SITE_URL || 'http://localhost:8000',
|
|
},
|
|
pathPrefix: process.env.PATH_PREFIX || '',
|
|
plugins: [
|
|
{
|
|
resolve: 'gatsby-plugin-sass',
|
|
options: {
|
|
sassOptions: {
|
|
includePaths: [
|
|
'./node_modules/uswds',
|
|
],
|
|
},
|
|
cssLoaderOptions: {
|
|
modules: {
|
|
exportLocalsConvention: 'camelCaseOnly',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
resolve: 'gatsby-plugin-intl',
|
|
options: {
|
|
// language JSON resource path
|
|
path: `${__dirname}/src/intl`,
|
|
// supported language
|
|
languages: [`en`, `es`],
|
|
// language file path
|
|
defaultLanguage: `en`,
|
|
// option to redirect to `/en` when connecting `/`
|
|
redirect: true,
|
|
},
|
|
},
|
|
{
|
|
resolve: 'gatsby-plugin-prettier-eslint',
|
|
options: {
|
|
prettier: {
|
|
patterns: [
|
|
// The pattern "**/*.{js,jsx,ts,tsx}" is
|
|
// not used because we will rely on `eslint --fix`
|
|
'**/*.{scss}',
|
|
'**/*.{json}',
|
|
'**/*.{graphql}',
|
|
'**/*.{md}',
|
|
'**/*.{html}',
|
|
'**/*.{yaml,yml}',
|
|
],
|
|
},
|
|
eslint: {
|
|
patterns: '**/*.{js,jsx,ts,tsx}',
|
|
ignorePatterns: ['public', 'node_modules', '*scss.d.ts'],
|
|
failOnError: true,
|
|
customOptions: {
|
|
fix: true,
|
|
cache: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
'gatsby-plugin-react-helmet',
|
|
{
|
|
resolve: 'gatsby-plugin-robots-txt',
|
|
options: {
|
|
policy: [{userAgent: '*', allow: '/'}],
|
|
},
|
|
},
|
|
{
|
|
resolve: `gatsby-plugin-sitemap`,
|
|
options: {
|
|
excludes: [
|
|
'/',
|
|
'/cejst',
|
|
'/contact',
|
|
'/methodology',
|
|
'/404',
|
|
'public-engagement',
|
|
],
|
|
},
|
|
},
|
|
{
|
|
resolve: `gatsby-plugin-env-variables`,
|
|
options: {
|
|
allowList: ['DATA_SOURCE', 'MAPBOX_STYLES_READ_TOKEN'],
|
|
},
|
|
},
|
|
{
|
|
resolve: '@sentry/gatsby',
|
|
options: {
|
|
dsn: 'https://da0c28c22c9e4ff69d81650cabdec3d9@o1022662.ingest.sentry.io/5989007',
|
|
sampleRate: 0.7,
|
|
},
|
|
},
|
|
],
|
|
};
|