1
0
mirror of synced 2026-01-05 21:04:17 -05:00
Commit Graph

187 Commits

Author SHA1 Message Date
James M. Greene
0c48f41ae7 Restrict tasks usually done in CI (search indexing, browser tests) to a single server worker (#20146) 2021-06-24 19:53:54 -05:00
Rachael Sewell
aa437c44c8 temp convenience scripts for short titles (#19939) 2021-06-23 04:03:06 +00:00
Mike Surowiec
b24fe62965 always render with nextjs when FF is true (#20067)
* always render with nextjs when FF is true

* remove path-to-regexp from package.json
2021-06-22 11:29:51 -07:00
Grace Park
d3d1902414 Merge pull request #20017 from github/upgrade-esm
Enforce and Move to Top Level require
2021-06-22 11:27:48 -07:00
Octomerger Bot
416b672168 Merge branch 'main' into repo-sync 2021-06-18 05:22:26 +10:00
Mike Surowiec
1fbaf92e90 upgrade nextjs to v11 (#19995) 2021-06-17 18:55:48 +00:00
Grace Park
52a53cd525 Update package.json 2021-06-16 16:41:57 -07:00
Grace Park
7c4baa9a1d adding packages 2021-06-16 15:30:57 -07:00
Grace Park
310cc5309b pull in main and conflicts 2021-06-16 14:02:31 -07: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
Rachael Sewell
bdf724c922 Update a few enterprise release steps (#19072) 2021-06-15 15:07:15 -07:00
Mike Surowiec
306f6fc75e Enable more react pages (#19935)
* enable more react landing pages

* move nextjs page logic to separate middleware

* enable codespaces landing page + fixes

* enable /education

* enable /admin

* use pathToRegexp to match routes for react rendering

* run lint

* fix: typo in url

* update sidebar test
2021-06-15 13:31:17 -07:00
Mike Surowiec
6fbfa7d263 feat: add catch for bad accept-language header, prevent downstream 500 (#19909) 2021-06-14 22:45:29 +00:00
Kevin Heis
75f90c9487 Update current JavaScripts to use Typescript (#19824)
* Update index to make it clear what has hasn't updated to Next/React yet

* Typescriptify events and experiments

* Typescript the old JS for easier integration

* Update release-notes.ts

* Lint

* Run npm i

* Fix a few lint issues

* Update airgap-links.ts

* Update airgap-links.ts

* Update set-next-env to ts

* Update airgap-links.ts

* Update package-lock.json

* Update set-next-env.ts

* Update package-lock.json

* Revert "Update package-lock.json"

This reverts commit b45e8250beeb700719d3b44e1092b0bbd093baba.

* readd fsevents

* Revert "readd fsevents"

This reverts commit 419f3c35080ac4a9072f0b4e8e291e1712ce3639.

* Update openapi-schema-check.yml

* Revert "Update openapi-schema-check.yml"

This reverts commit 5e9f4a29ea11ee343ca17291a40a751920c5b923.

* Update package-lock.json

* Update package-lock.json
2021-06-14 18:07:39 +00:00
Sarah Edwards
f710813a92 prevent jumping when select application (#19789) 2021-06-11 18:21:09 +00:00
Kate Higa
a28fb1ab4d Merge branch 'main' into kh-enable_jsx_a11y_linter 2021-06-10 07:49:20 -07:00
Mike Surowiec
a88e99c83a Reactify: release notes (#19799)
* reactify release-notes pages

* update GHAE/ES react release notes to not rely on javascripts/release-notes.js
2021-06-09 20:44:32 +00:00
Kate Higa
9075069371 add a11y plugin 2021-06-09 09:37:15 -07:00
Kate Higa
d578acf8f6 add necessary eslint/prettier/typescript plugins 2021-06-09 09:37:15 -07:00
Sarah Schneider
32065442d4 undo sass downgrade, it did not fix staging 2021-06-08 13:06:50 -04:00
Sarah Schneider
634ef767bc see if downgrading sass fixes the staging failure 2021-06-08 12:43:03 -04:00
Sarah Schneider
ae8e4dfa9b rewrite get-english-headings to use AST instead of regex 2021-06-08 10:03:50 -04:00
Grace Park
e8c6d272d0 Merge branch 'main' into localization-grace 2021-06-07 13:19:03 -07:00
James M. Greene
3ed5bb77da Clean up dependencies (#19633)
* Just use core Node assert module instead of the browserify one

* Get peerDeps for styled-components into lockfile

* Remove 2 unused csv-parse(r) devDeps that probably got installed during interviews LOL whoops

* Remove unused jest-silent-reporter devDep

* Remove unused mime devDep

* Remove unused postcss devDep

* Remove unused process devDep

* Update sass devDep to latest

* Reintroduce postcss devDep

Error: Cannot find module 'postcss'
Require stack:
- /home/runner/work/docs-internal/docs-internal/node_modules/cssnano-simple/src/index.js
- /home/runner/work/docs-internal/docs-internal/node_modules/next/dist/build/webpack/plugins/font-stylesheet-gathering-plugin.js
- /home/runner/work/docs-internal/docs-internal/node_modules/next/dist/build/webpack-config.js
- /home/runner/work/docs-internal/docs-internal/node_modules/next/dist/build/index.js
- /home/runner/work/docs-internal/docs-internal/node_modules/next/dist/cli/next-build.js
- /home/runner/work/docs-internal/docs-internal/node_modules/next/dist/bin/next
2021-06-02 10:43:39 -05:00
Grace Park
a3e36c0d6a Merge branch 'main' into localization-grace 2021-06-01 15:45:42 -07:00
Grace Park
8b52946af0 updating to add 2nd preference and accept-language-parser module 2021-06-01 15:45:02 -07:00
Mike Surowiec
2de358187c Performance testing NextJS / React (#19540)
* Remove json.parse(json.stringify( usage to improve performance
* Fix missing / duplicate keys in some renders
* Fix missing react-is dependency (only seemed to cause problems from pruning on the heroku deploy)
* Add nextjs tag to datadog-connect config when nextjs is a query param
* Fix router.asPath usage to exclude query param
* Fix styling inconsistencies noticed when testing
* Add a few tests
2021-05-27 15:17:27 -07:00
James M. Greene
542a459c06 Move script-only dependencies to devDependencies (#19542)
* Move lib/search/sync.js to script/search/sync.js

* Move mdast-util-from-markdown to devDeps

* Move lib/redirects/add-redirect-to-frontmatter.js to script/helpers/

* Move mkdirp to devDeps

* Move linkinator to devDeps

* Move rimraf to devDeps

* Fix script/search/sync.js require paths

* Move lib/search/build-records.js to script/search/

* Move lib/search/find-indexable-pages to script/search/

* Fix require paths for build-records

* Fix require paths for find-indexable-pages

* Move lib/search/algolia-get-remote-index-names.js to script/search/

* Movbe lib/search/algolia-search-index.js to script/search/

* Move lib/search/lunr-search-index.js to script/search/

* Move lib/search/lunr-get-index-names.js to script/search/

* Fix Lunr search index paths

* Move lib/search/validate-records.js to script/search/

* Move is-url to devDeps

* Move lib/search/algolia-client.js to script/search/

* Move lib/search/parse-page-sections-into-records.js to script/search/

* Move lib/search/rank.js to script/search/

* Fix path to cached-index-names.json file

* Normalize require for fs.promises
2021-05-25 20:44:19 +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
e46422de6a fix: update husky usage 2021-05-20 13:36:46 -07:00
Mike Surowiec
c4166202a1 feat: upgrade to node v16, package-lock.json v2, remove aws-sdk 2021-05-20 13:32:19 -07:00
Kevin Heis
afa551f2ee Upgrade AJV (#19443)
* Upgrade AJV

* Fixes for AJV upgrade

* lint fix

* Update index.tsx
2021-05-20 17:46:04 +00:00
Kevin Heis
f6acb1f08a Update dependencies (#19408)
* Update dependencies 2

* Lint fixes

* Update graphql packages

* Update changelog-entry.json

* Update @octokit/rest

* Update commander with help from @rachmari

@rachmari

* Upgrade helmet

* Upgrade js-yaml

* Update server.js

* Update cheerio

* Revert "Update cheerio"

This reverts commit 8aa17c39fbf564ee554037d89e7a473027d16984.
2021-05-19 17:32:47 +00:00
Mike Surowiec
e716172ba6 Merge branch 'main' into sponsors-react-3 2021-05-11 13:41:15 -07:00
Mike Surowiec
744051006f Merge branch 'main' into sponsors-react-2 2021-05-11 13:34:38 -07:00
Mike Surowiec
f0fe065cef feat: implement changelog feed, guide section 2021-05-10 15:17:52 -07:00
James M. Greene
ed0f942cf2 Merge branch 'main' into dependabot/npm_and_yarn/lodash-4.17.21 2021-05-07 17:16:11 -05:00
Mike Surowiec
e3ff452f47 feat: add primer/components, wire up SSR for styled-components 2021-05-06 15:07:15 -07:00
Mike Surowiec
8930036e67 Merge branch 'main' into sponsors-react-1 2021-05-06 13:58:54 -07:00
dependabot[bot]
de7cc2db05 Bump lodash from 4.17.20 to 4.17.21
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-06 18:46:59 +00:00
Mike Surowiec
e10c29b1fb feat: use eslint for dependency checks 2021-05-06 08:31:04 -07:00
Mike Surowiec
f3a029b6dd feat: add SupportSection 2021-05-05 15:58:21 -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
James M. Greene
816a7bbc4e Follow-up for removing stale apps (#19056)
* Use existing 'github' script helper to get Octokit instance

* Move @octokit/rest to devDeps

We only use it in scripts, currently

* Removed outdated delete-unused-staging-apps script
2021-04-29 11:09:34 -04:00
dependabot[bot]
7e7f17c3f8 Bump redis from 3.0.2 to 3.1.1 (#5775) 2021-04-28 16:38:05 -07:00
Marc-Andre Giroux
2deb8275da Accept glob patterns for source files in openapi-check script (#18965)
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-04-26 21:56:12 +00:00
James M. Greene
919054f91c Update npm dependencies to address Dependabot security alerts (#18992)
* npm audit fix

Addresses 1 Dependabot security alert for marked@<2.0.0, which is a dependency of linkinator

https://github.com/advisories/GHSA-4r62-v4vq-hr96

* Update jest to latest, which updates node-notifier@<8.0.1, to address 1 Dependabot security alert

https://github.com/advisories/GHSA-5fw9-fq32-wv5p

* Update rehype-highlight to latest, which updates highlight.js@<10.4.1, to address 1 Dependabot security alert

https://github.com/advisories/GHSA-7wwv-vh3v-89cq
2021-04-26 21:21:09 +00:00
Mike Surowiec
4a931237ea Merge branch 'main' into update-webpack-dep 2021-04-13 16:55:31 -07:00
Mike Surowiec
1c5cd44a83 fix: move ajv from devDeps to deps 2021-04-13 16:49:31 -07:00