1
0
mirror of synced 2025-12-19 18:10:59 -05:00
Commit Graph

30 Commits

Author SHA1 Message Date
Mardav Wala
fb091b4e7f chore: update dependencies and add global styles for Primer React
- Updated @primer/react to version 37.30.0 and added @primer/primitives and @primer/view-components.
- Introduced a new global CSS file for consolidated Primer React styles.
- Added empty stubs for deprecated and removed components in the view-components library.
- Updated the _app.tsx file to include the new global CSS.
- Changed the import of Banner component from @primer/react/drafts to @primer/react/experimental in SearchOverlay.
2025-08-07 19:01:06 -04:00
Evan Bonsignori
2816948783 add manual and automatic backend loggers (#54372)
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2025-07-23 18:25:42 +00:00
Kevin Heis
fb6844eef0 Import statements: #src/ → @/ and remove file extensions (#56560) 2025-07-09 20:50:50 +00:00
Kevin Heis
e6d1d29850 Convert languages.js to TypeScript (#56393) 2025-07-09 19:17:13 +00:00
Kevin Heis
24d409accb Silence Sass deprecation warnings in build output (#56422) 2025-07-01 17:17:17 +00:00
Kevin Heis
f5eddfbd8c Silence Sass @import deprecation warnings (#56241) 2025-06-24 14:51:48 +00:00
Kevin Heis
d4f345e4af Move files out of lib/ (#45506) 2023-11-02 22:46:32 +00:00
Kevin Heis
9bf3fc185a Create languages src directory (#41661) 2023-08-30 17:24:59 +00:00
Peter Bengtsson
33d81b41b7 Next 13.4 and React 18 (#40039) 2023-08-09 14:30:26 +00:00
Peter Bengtsson
9dec70c78e Scroll restoration (#39394) 2023-07-24 12:53:39 +00:00
Kevin Heis
f806ee7012 Move more files into src/webhooks (#36578) 2023-05-10 18:54:56 +00:00
Peter Bengtsson
92f989aa2d Run and test server with test fixture root (#33816) 2023-02-06 19:29:45 +00:00
Peter Bengtsson
9fe34e7706 derive NextJS languages from our lib/languages.js (#30281) 2022-08-26 14:45:17 +00:00
Peter Bengtsson
8eb7898827 send errors to Failbot in SSR rendering (#30153)
* send errors to failbot in SSR rendering

* wip

* progress

* tidying up

* no point awaiting something that doens't return a promise
2022-08-22 16:50:18 +00:00
Peter Bengtsson
16fcaa7869 next@12.2.4 (#29731)
* next@12.2.4

* suppress 'Large Page Data'

* Update next.config.js

Co-authored-by: Rachael Sewell <rachmari@github.com>

Co-authored-by: Rachael Sewell <rachmari@github.com>
2022-08-09 10:58:08 +00:00
Kevin Heis
2182ff28f3 Next12 now supports ESM (#29295)
* Next12 now supports ESM

* No more michael jackson script extensions

* Fix test running

* Update jest-puppeteer.config.cjs

* Update package.json
2022-07-26 17:53:23 +00:00
brannon
a1d48880c9 Disable NextJS ETag generation. 2022-06-02 17:19:53 -06:00
Peter Bengtsson
18504871b9 cache full rendering (#25424)
* cache full rendering

* still not working with gzip

* progress progress progress

* smaller

* hacky progress

* small fixes

* wip

* lock file

* wip

* wip

* package-lock updates

* wip

* search DOM in lowercase

* simplify

* with instrument

* improve test coverage

* mutateCheeriobodyByRequest

* fix

* remove renderContentCacheByContex

* disable render caching in sync-search

* diables things in github/github link checker

* gzip lru

* tidying up

* updated

* correct tests

* fix: move userLanguage to LanguagesContext

* Revert "fix: move userLanguage to LanguagesContext"

This reverts commit d7c05d958c71eaad496eb46764eb845d80b866ca.

* contexts ftw

* fixed rendering tests

* oops for got new file

* nits addressed

Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
2022-05-23 12:12:09 +00:00
Peter Bengtsson
c29106bf83 remove 'de' as a possible NextJS redirect language (#26315) 2022-03-18 19:19:36 +00:00
Rachael Sewell
2ade7d8489 reactify rest pages (#25005) 2022-02-28 18:30:54 +00:00
Ramya Parimi
57a4c804bf comment -> delete 2021-08-05 20:16:39 -05:00
Ramya Parimi
306751cd62 remove inter fonts, copy-webpack-plugin 2021-08-05 20:15:52 -05:00
Grace Park
44f451eb09 Removing webpack build step (#20405)
* removing webpack build step

* keep copywebpackplugin and add fonts to assets/fonts

* update marketing font path

* update font path

* update font

* remove builtAssets

* remove copying front end code with dist

* move Inter fonts to /assets/fonts/inter

* move copy-webpack-plugin back to deps

Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
2021-07-22 09:11:30 -07:00
Kevin Heis
8a56437c93 Pretty format (#20352)
* Update prettier flow to include JS

* Run prettier

* ...run prettier
2021-07-14 14:35:01 -07:00
Kevin Heis
42e785b0a8 Migrate CommonJS to ESM (#20301)
* First run of script

* Get the app running --- ish

* Get NextJS working

* Remove `node:`

* Get more tests passing in unit directory

* Update FailBot test to use nock

* Update test.yml

* Update Dockerfile

* tests/content fixes

* Update page.js

* Update build-changelog.js

* updating tests/routing

* Update orphan-tests.js

* updating tests/rendering

* Update .eslintrc.js

* Update .eslintrc.js

* Install jest/globals

* "linting" tests

* staging update to server.mjs

* Change '.github/allowed-actions.js' to a ESM export

* Lint

* Fixes for the main package.json

* Move Jest to be last in the npm test command so we can pass args

* Just use 'npm run lint' in the npm test command

* update algolia label script

* update openapi script

* update require on openapi

* Update enterprise-algolia-label.js

* forgot JSON.parse

* Update lunr-search-index.js

* Always explicitly include process.cwd() for JSON file reads pathed from project root

* update graphql/update-files.js script

* Update other npm scripts using jest to pass ESM NODE_OPTIONS

* Update check-for-enterprise-issues-by-label.js for ESM

* Update create-enterprise-issue.js for ESM

* Import jest global for browser tests

* Convert 'script/deploy' to ESM

Co-authored-by: Grace Park <gracepark@github.com>
Co-authored-by: James M. Greene <jamesmgreene@github.com>
2021-07-14 13:49:18 -07:00
Mike Surowiec
1fbaf92e90 upgrade nextjs to v11 (#19995) 2021-06-17 18:55:48 +00:00
Mike Surowiec
83e33cc9bb Quiet sass warnings (#19960)
* npm install sass@latest

* add quietDeps: true to webpack config

* prevent error message from hmr abort, cleans up the log

Co-authored-by: Sarah Schneider <sarahs@github.com>
2021-06-16 19:47:01 +00:00
Mike Surowiec
37f73f0bb3 Heroku dev deps (#19431)
* fix: req.csrfToken doesn't always exist (e.g. 500 page)

* feat: update dockerfile and add nextjs to build

* fix: run linter

* move @babel deps -> dev deps

* move webpack looking things from deps -> dev deps

* move pa11y-ci to optional dep

* explicitly include optional deps for pa11y

* allow heroku dev deps to be installed

* fix: update postcss module

* fix: update dockerfile build

* tmp: disable renderReact

* see if another deploy is slower/faster

* move a few more packages to devDeps

* upgrade to package-lock v2

* use dayjs instead of date-fns

* move cross-env to devDeps

* remove unused 'del' package

* commit husky precommit hooks

* add hrtime to clone-for-build.js

* Revert "add hrtime to clone-for-build.js"

This reverts commit 70ee647bacce833f4ed2f621f62c63c1d85e5413.

* update babel/eslint

* fix: remove unused plugin

* try a .slugignore

* fix: heroku-postbuild to use npm run build

* fix: i cannot spell dereferenced

* add .next/cache to heroku cacheDirectories

* test cached build

* remove aws-sdk, see what breaks

* move jest-puppeteer to optional deps

* fix: update browser-test.yml to use newer node version

* move jimp to optional dependencies

* move puppeteer to optional dependencies

* fix: ci optional include

* fix: bad copy pasta

* remove previous react experiment

* update tests/README.md with note about optional deps

* bump node test version back to 14

* convert package-lock back to v1

* fix: use node 15.x to leverage npm optional deps

* fix: optional dep install

* test: see what happens with heroku/nodejs-typescript buildpack

* back to heroku/nodejs buildpack

* move jest to optional

* revert jest move

* remove .slugignore

* cleanup dockerfile, move xlsx-population to optional, add comment about optional deps

* Update Dockerfile

Co-authored-by: James M. Greene <JamesMGreene@github.com>

Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-05-24 15:40:50 -07:00
Mike Surowiec
34dcba51f1 feat: add DefaultLayout, add to sponsors landing page 2021-05-05 14:54:49 -07:00
Mike Surowiec
eaddbc5db7 feat: add nextjs middleware handling (#19139)
* feat: add nextjs middleware handling split

* fix: eslint errors

* fix: filter boolean from csp list

* fix: feature flag nextjs server start

* feat: add prettier rules for ts,tsx files

* fix: remove unnecessary async from next middleware

* fix: next middleware name

* Update tsconfig.json

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* Update next-env.d.ts

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* fix: add typescript linting to lint command

* add comment for unsafe-eval, update webpack to use eval in development

* fix: feature flag typo

Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-05-05 15:23:46 +00:00