Commit Graph

966 Commits

Author SHA1 Message Date
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
camperbot 39c975ce15 chore(i18n,docs): processed translations (#49558) 2023-03-01 08:24:55 -08:00
camperbot 07ddf58776 chore(i18n,docs): processed translations (#49470) 2023-02-22 09:58:27 -06:00
camperbot a84f209eca chore(i18n,docs): processed translations (#49455) 2023-02-21 13:53:00 +01:00
camperbot f05bf7af9d chore(i18n,docs): processed translations (#49441) 2023-02-20 08:26:52 -08:00
Mrugesh Mohapatra 9377e085c1 docs: update reload instructions (#49379)
* docs: update reload instructions

* Update docs/devops.md

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* Update docs/devops.md

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* fix: remove errant spaces

Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>

---------

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
2023-02-19 19:04:05 +05:30
Masaki Mori 6acbade16f fix(docs): the description of npm run seed in the how-to-setup-freecodecamp-locally page (#49424)
fix: npm run seed description in the docs
2023-02-18 14:20:14 +00:00
camperbot 190ce3fea7 chore(i18n,docs): processed translations (#49390) 2023-02-15 20:33:57 -08:00
camperbot 30eb3e541f chore(i18n,docs): processed translations (#49051) 2023-01-17 08:43:31 -06:00
Ankit Chaudhary f59849b495 fix(docs): button padding in mobile device (#49014)
* fix(docs): button padding in mobile device (#48848)

* fix(docs): button margin in mobile device (#48848)
2023-01-17 15:48:50 +05:30
camperbot 58a91ae2e3 chore(i18n,docs): processed translations (#49044) 2023-01-16 21:02:17 +01:00
camperbot 0108ae0b56 chore(i18n,docs): processed translations (#48979) 2023-01-10 07:53:51 -06:00
Ahmad Abdolsaheb 0694ca91aa feat(docs): update analytics images (#48978) 2023-01-10 08:54:16 +05:30
camperbot a65077701f chore(i18n,docs): processed translations (#48975) 2023-01-09 07:41:43 -06:00
imgbot[bot] 3af28d0252 chore: [ImgBot] Optimize images (#48945)
*Total -- 1,429.06kb -> 947.62kb (33.69%)

/docs/images/google-analytics/filter-by-author.png -- 626.72kb -> 408.78kb (34.77%)
/docs/images/google-analytics/search-by-language.png -- 611.57kb -> 400.59kb (34.5%)
/docs/images/crowdin/context.png -- 62.84kb -> 42.79kb (31.91%)
/docs/images/crowdin/pre-translate3.png -- 35.13kb -> 24.50kb (30.24%)
/docs/images/crowdin/pre-translate1.png -- 66.87kb -> 47.69kb (28.68%)
/docs/images/crowdin/pre-translate2.png -- 3.35kb -> 2.60kb (22.18%)
/docs/images/crowdin/tag-hover.png -- 22.59kb -> 20.66kb (8.54%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2023-01-06 20:21:55 +05:30
camperbot 85182f0ad2 chore(i18n,docs): processed translations (#48946) 2023-01-06 20:21:03 +05:30
Ahmad Abdolsaheb 2a6af266a7 feat(docs): add authors analytics manual (#48901)
* feat(docs):add analytics manual

* Update docs/authors-analytics-manual.md

* Apply suggestions from code review

Co-authored-by: Sem Bauke <semboot699@gmail.com>

* Apply suggestions from code review

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>

Co-authored-by: Sem Bauke <semboot699@gmail.com>
Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>
2023-01-06 09:56:35 +00:00
Ansh Phirani 008c4e2c4c docs: update command for running a single cypress test (#48932)
* Corrected documentation for running single Cypress test

* docs: update command for running a single cypress test

* Update docs/how-to-add-cypress-tests.md

Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>

* docs: update command for running a single cypress test

Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
2023-01-05 19:18:15 -06:00
camperbot fa25279a32 chore(i18n,docs): processed translations (#48923) 2023-01-04 19:27:18 +05:30
camperbot c56212ffd2 chore(i18n,docs): processed translations (#48904) 2023-01-03 07:23:31 -08:00
Taimoor Ahmad c4b8f73383 docs: fix typos in user token workflow (#48892)
Fixing Typos

Co-authored-by: Taimoor Ahmad <81186933+taimoorahmadl@users.noreply.github.com>
2023-01-02 11:18:51 -06:00
camperbot 26c3ce67d5 chore(i18n,docs): processed translations (#48893) 2023-01-02 11:17:35 -06:00
Shaun Hamilton 378fff4870 fix(docs): formatting and verbosity (#48889)
* fix(docs): formatting and verbosity

* fix: typo "is uses"
2023-01-02 08:45:55 -08:00
camperbot 1a6ce1258c chore(i18n,docs): processed translations (#48853) 2023-01-02 08:56:28 +01:00
Pratik Bhangire 2d166ae5b4 docs: improved the syntax in the codebase best practice docs (#48885)
* typo-fixed

* Syntax Improved

* Syntax Improved

Co-authored-by: unknown <Pratik Bhangire>
2022-12-31 21:09:30 +02:00
Naomi Carrigan b768c642fb docs: clean up some typos (#48867) 2022-12-30 07:47:17 +01:00
Aditya753b 379d18f01d fix: Typo in codebase best practices (#48843)
fix: Typo in codebase best practices
2022-12-24 21:56:06 +01:00
camperbot 54e11bb271 chore(i18n,docs): processed translations (#48826) 2022-12-23 12:47:17 -06:00
Muhammed Mustafa e451a54d25 chore: add best practices for styling a component in codebase (#48808)
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2022-12-22 08:48:58 +01:00
Tayyab Zain e269c36e1f docs: remove extra line breaks in the FAQ (#48812)
* Documentation Update

* Removed Line Breaks

* Removing All the line breaks in Moderator Section

* Update docs/FAQ.md

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>

* Update docs/FAQ.md

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>

* Discord Chat Moderator

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>

* Forum Moderator

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>

* GitHub moderator

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>

* Moderator HandBook

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>

* Remove the duplication

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>
2022-12-21 14:26:14 -06:00
camperbot 9e8427ff5c chore(i18n,docs): processed translations (#48813) 2022-12-21 10:10:37 -06:00
camperbot 388d323b38 chore(i18n,docs): processed translations (#48802) 2022-12-20 18:11:38 +05:30
Tom b619c195df fix(docs): update how to add/enable a new language (#48774)
* fix(docs): update how to add/enable a new language

* fix: touch up

* fix: more touch up

* fix: apply suggestions and touch up
2022-12-19 14:10:23 -08:00
Mrugesh Mohapatra eba1ea58a2 docs: update pre-req to Node.js 18 (#48798) 2022-12-20 00:00:57 +05:30
camperbot f7f6de0fa9 chore(i18n,docs): processed translations (#48791) 2022-12-19 08:52:21 -06:00
camperbot e97129dd0c chore(i18n,docs): processed translations (#48771) 2022-12-16 09:02:18 -08:00
camperbot 683c180659 chore(i18n,docs): processed translations (#48764) 2022-12-15 14:52:34 +00:00
Albert Tarkaa d04be84a75 feat(docs): update how-to-catch-outgoing-emails-locally.md (#48760)
Closes https://github.com/freeCodeCamp/freeCodeCamp/issues/48723
2022-12-14 15:08:30 -08:00
Muhammed Mustafa cbf1b09f23 docs: instruction about adding packages in ui-component library (#48750)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2022-12-14 15:01:19 +01:00
camperbot 8c8ce47b7c chore(i18n,docs): processed translations (#48754) 2022-12-14 14:15:52 +01:00
camperbot 24c66b8932 chore(i18n,docs): processed translations (#48745) 2022-12-13 14:40:07 -06:00
camperbot f54d403362 chore(i18n,docs): processed translations (#48735) 2022-12-12 14:14:04 +01:00
Ekta c9e3300d72 docs : Update how-to-catch-outgoing-emails-locally.md (#48724)
Updated .exe -> `.exe`
2022-12-12 10:15:58 +01:00
camperbot d266e5d067 chore(i18n,docs): processed translations (#48692) 2022-12-09 02:38:30 +09:00
camperbot 88e18ed135 chore(i18n,docs): processed translations (#48684) 2022-12-07 17:20:52 +01:00
Kinzume ccdf68bdea docs(component-library): Fix typo in table (#48675)
Fix typo in table
2022-12-06 19:48:19 +04:00
camperbot 0594dfc43e chore(i18n,docs): processed translations (#48671) 2022-12-05 14:59:13 +02:00
camperbot a6c4e39dc1 chore(i18n,docs): processed translations (#48650) 2022-12-02 14:34:26 +02:00
Bryan Moore f5debdffc1 fix(docs): update references to comments.js (#48558) 2022-12-02 09:26:24 +01:00
camperbot 5cab3724ce chore(i18n,docs): processed translations (#48646) 2022-12-02 00:53:21 +09:00