freeCodeCamp/docs
Oliver Eyton-Williams d7848ae01a
feat: migrate to pnpm for better workspace DX (#49293)
* feat: npm -> pnpm 

This resolves the issues with the gatsby client (gatsby-plugin-pnpm
deals with the fact that gatsby is relying on its own dependencies
being de-duped)
and challenge-editor (which doesn't seem to want to automatically install
codemirror and needed its own eslint config)

* fix: correct mocha path for curriculum tests

* fix: use select workspace with -F not -w

* fix: reorganise packages and restrict hoisting

pnpm works best if the workspaces keep their own dependencies, since
dependencies are not flattened and then what node resolves from a
require is predictable.

@types seem to be a special case and more care is required to prevent
them getting smushed together in the root (hence the .npmrc)

* fix: add types for tools + root

* fix: decouple challenge-auditor from client

* fix: add ui-components types

* fix(client): use the latest types for react 16

* fix: prettify

* fix: prettierignore pnpm-lock

* fix: relax hoisting

Turns out pnpm works just fine with types. I don't know what was going
wrong before, but there are no-longer any type conflicts.

* fix: add @redux-saga/core to fix eslint issue

It seems to only be redux-saga that import/named can't cope with, so it
is probably okay to work around this one.

* chore: add chai to tools/scripts/build

* fix: add store to root for cypress

* fix: allow cypress to download binaries

If we want to keep preventing cypress from downloading binaries, we can
figure out a workaround, but I'm allowing it to ease the transition to
pnpm.

My guess about why this is happening is that npm triggers Cypress's
postinstall script, but pnpm does not (because pnpm install only
installs if necessary, perferring to link)

* chore: re-enable pre/post scripts

* fix: update build scripts for client

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* chore: update engines to use pnpm


* fix: enable choice of (super)block for tests

Only 'nix machines for now.

* chore: pin pnpm to version 7

* chore: remove last npms

Except web + curriculum-server. I'll update them when I start work on
them again.

* fix: lockfile check to catch any package-locks

* fix(action): install pnpm for upcoming tests

* chore: add nodemon to new api

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2023-03-02 18:17:44 +00:00
..
i18n chore(i18n,docs): processed translations (#49558) 2023-03-01 08:24:55 -08:00
images chore: [ImgBot] Optimize images (#48945) 2023-01-06 20:21:55 +05:30
_coverpage.md fix(docs): update codebase link (#45752) 2022-04-25 14:22:18 +01:00
_navbar.md fix(docs): add i18n to nav, and other tweaks 2020-10-02 20:11:25 +05:30
_sidebar.md feat(docs): add authors analytics manual (#48901) 2023-01-06 09:56:35 +00:00
_theme.css fix(docs): button padding in mobile device (#49014) 2023-01-17 15:48:50 +05:30
_translations.md feat: enable more languages (#45089) 2022-02-13 13:27:39 +01:00
.nojekyll feat(docs): host docs with docsify 2020-04-06 20:50:40 +05:30
authors-analytics-manual.md feat(docs): update analytics images (#48978) 2023-01-10 08:54:16 +05:30
CNAME Create CNAME 2020-04-07 01:15:00 +05:30
codebase-best-practices.md fix(docs): formatting and verbosity (#48889) 2023-01-02 08:45:55 -08:00
courses-vscode-extension.md chore(docs): update courses flight manual (#46587) 2022-06-20 19:54:27 +05:30
curriculum-file-structure.md fix(docs): documentation grammatical errors (#47553) 2022-09-18 10:11:13 -07:00
devops.md feat: migrate to pnpm for better workspace DX (#49293) 2023-03-02 18:17:44 +00:00
FAQ.md docs: remove extra line breaks in the FAQ (#48812) 2022-12-21 14:26:14 -06:00
how-to-add-cypress-tests.md feat: migrate to pnpm for better workspace DX (#49293) 2023-03-02 18:17:44 +00:00
how-to-catch-outgoing-emails-locally.md feat(docs): update how-to-catch-outgoing-emails-locally.md (#48760) 2022-12-14 15:08:30 -08:00
how-to-contribute-to-the-codebase.md feat: migrate to pnpm for better workspace DX (#49293) 2023-03-02 18:17:44 +00:00
how-to-enable-new-languages.md feat: migrate to pnpm for better workspace DX (#49293) 2023-03-02 18:17:44 +00:00
how-to-help-with-video-challenges.md docs: wrap videoId in backticks (#47700) 2022-10-04 01:52:41 +00:00
how-to-open-a-pull-request.md feat: migrate to pnpm for better workspace DX (#49293) 2023-03-02 18:17:44 +00:00
how-to-proofread-files.md docs: change rocket chat links to discord (#46514) 2022-06-16 08:23:15 +04:00
how-to-setup-freecodecamp-locally.md feat: migrate to pnpm for better workspace DX (#49293) 2023-03-02 18:17:44 +00:00
how-to-setup-freecodecamp-mobile-app-locally.md fix(docs): Missing period at the end of setup mobile app locally document (#46976) 2022-07-21 12:14:11 -05:00
how-to-setup-wsl.md docs: fix typo in the wsl setup guide (#48204) 2022-10-22 14:04:21 +00:00
how-to-translate-files.md docs: remove last remaining DANGER (#47011) 2022-07-23 18:13:32 +02:00
how-to-use-docker-on-windows-home.md feat: migrate to pnpm for better workspace DX (#49293) 2023-03-02 18:17:44 +00:00
how-to-work-on-coding-challenges.md feat: migrate to pnpm for better workspace DX (#49293) 2023-03-02 18:17:44 +00:00
how-to-work-on-localized-client-webapp.md fix(docs): update how to add/enable a new language (#48774) 2022-12-19 14:10:23 -08:00
how-to-work-on-practice-projects.md feat: migrate to pnpm for better workspace DX (#49293) 2023-03-02 18:17:44 +00:00
how-to-work-on-the-component-library.md feat: migrate to pnpm for better workspace DX (#49293) 2023-03-02 18:17:44 +00:00
how-to-work-on-the-docs-theme.md feat: migrate to pnpm for better workspace DX (#49293) 2023-03-02 18:17:44 +00:00
how-to-work-on-tutorials-that-use-coderoad.md feat(tools): remove eslint-plugin-prettier for prettier (#42438) 2021-10-06 21:02:21 +05:30
index.html docs: improved keywords in index.html file (#47780) 2022-10-06 08:52:38 +02:00
index.md fix(docs): Add German language link inside certifications (#48608) 2022-11-27 13:03:10 +04:00
language-lead-handbook.md docs(i18n): add list of translatable footer links (#48180) 2022-10-22 09:21:33 +02:00
moderator-handbook.md docs: correct typo in moderator handbook (#48321) 2022-10-29 17:17:27 +02:00
moderator-onboarding-guide.md docs(moderator): create onboarding guide for fCC moderators (#47938) 2022-10-09 22:01:07 -07:00
README.md feat(tools): remove eslint-plugin-prettier for prettier (#42438) 2021-10-06 21:02:21 +05:30
security-hall-of-fame.md chore: update hall of fame 2022-04-18 18:56:51 +05:30
security.md docs: update the security policy (#45781) 2022-04-26 01:23:58 +05:30
troubleshooting-development-issues.md feat: migrate to pnpm for better workspace DX (#49293) 2023-03-02 18:17:44 +00:00
user-token-workflow.md docs: fix typos in user token workflow (#48892) 2023-01-02 11:18:51 -06:00

Our contributing docs are available here: https://contribute.freecodecamp.org.

Looking to edit these docs? Read this document first.