Commit Graph

42 Commits (a4737ae55ba75265c8644756c1ea96df8fab5960)

Author SHA1 Message Date
Oliver Eyton-Williams 391fc2e34d
refactor: create shared workspace (#51454) 2023-09-07 23:06:01 +05:30
Oliver Eyton-Williams a622414ae5
chore: remove sentry from the client (#51284) 2023-08-16 02:34:01 +05:30
Oliver Eyton-Williams 69d6ee32bf
feat: python in the browser (#50913)
Co-authored-by: Beau Carnes <1513130+beaucarnes@users.noreply.github.com>
2023-07-28 07:36:25 +02:00
Amedov Bekmuhamet 34e89b360b
fix: delete an artefact from gatsby-config.js (#49700) 2023-03-21 13:50:50 +05:30
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
Naomi Carrigan c36224b9de
feat: update gatsby config for chinese (#46424) 2022-11-09 21:36:05 +02:00
Tristan Toye dfe5a7fd05
Add Sentry to client for error handling (#43920)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-04-15 09:54:02 -05:00
Oliver Eyton-Williams 7fe4695794
refactor: ignore eslint less (#45082)
* refactor: remove and fix some eslint disables

* refactor: drop max-line disables
2022-02-11 10:28:13 -08:00
awu43 dd5d2919be
feat(client): ts-migrate client/utils/** (#42823)
* rename js files

* update imports and references

* migrate build-challenges

* migrate challenge-types

* migrate utils/index

* migrate state-management

* install @types/psl for tags

* migrate tags

* migrate tags.test

* migrate challenge-page-creator

* migrate utils/gatsby/index

* migrate layout-selector

* migrate layout-selector.test

* revert challenge-types

Curriculum can't handle TS or modules

* convert arrow functions

* revert build-challenges

* revert utils/gatsby/index

* revert challenge-page-creator

* revert challenge-types reference

* Delete state-management

Deleted in #42960

* Disable render-result-naming-convention (for now)

* update layout-selector.test comment

* reorder imports in build-challenges

* change ts-ignore to ts-expect-error
2021-08-09 10:30:31 +02:00
Oliver Eyton-Williams 916ca023bf
fix: only generate bundle stats during CI (#42094)
* fix: only generate bundle stats during CI

* fix: run if CI exists
2021-05-11 15:59:44 +05:30
Oliver Eyton-Williams e7156dcc9e
feat: generate Webpack stats in CI (#41993) 2021-05-05 14:32:22 +00:00
Shaun Hamilton e00ed55a02
fix(client): add DEV_SSR false flag to gatsby-config (#41681) 2021-03-31 01:42:46 +05:30
Mrugesh Mohapatra ad9b1f89d8
fix(api, client): update Gatsby, webpack & related things (#41452)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-03-25 12:13:43 -07:00
Oliver Eyton-Williams 24209a3629
chore: remove unused plugin and lerna package (#41258) 2021-02-25 20:08:45 +05:30
Oliver Eyton-Williams fffc0e51ec
chore(client): refactor & organise config (#40875) 2021-02-03 15:22:07 +05:30
Mrugesh Mohapatra a3b1b52cdd fix(i18n): pathPrefix for languages at subpath 2021-01-31 12:15:34 +05:30
Tom 3978c6be28 feat: i18n user interface (#40306)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-01-31 12:15:32 +05:30
Oliver Eyton-Williams d233cb35a3
fix(client): ensure validation works during watch (#38936) 2020-05-28 20:54:29 +05:30
Hassaan Pasha 5294936667
fix(learn): prevent indexing learn pages on search engines (#38260)
Co-authored-by: mrugesh <1884376+raisedadead@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-03-03 20:57:53 +05:30
Oliver Eyton-Williams 4896e45eea fix: remove Gatsby proxy (#37364)
Direct ajax calls to the server directly, rather than a proxy to reduce
redirects while still allowing the server to be used in development.
2019-10-17 18:20:02 +05:30
Ahmad Abdolsaheb e6d55fd086 feat: add fonts locally 2019-10-14 20:31:58 +09:00
mrugesh cc3c9a8fa2
chore: update meta, caching and headers (#37159) 2019-10-09 14:23:41 -07:00
Kristofer Koishigawa a03602a1d4 fix(search): update search bar index and styling (#36656)
* Adjust search bar to only show hits for News
* Dropdown links working. Working on basic pagination
* Links to articles and temporarily routing to the News search result page working
* Fix colors for search bar and drop down
* Added Lato 300 font weight. Search bar now looks and works like it does on News.
* feat:update styles
* Update client/src/components/search/searchBar/SearchBar.js

Co-Authored-By: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

* Added Lato 300 font weight. Search bar now looks and works like it does on News.


Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2019-08-28 12:22:19 +05:30
Ahmad Abdolsaheb 31e3d9b27e feat: commandline chic 2019-08-20 13:37:11 +05:30
Mrugesh Mohapatra ae80f96ec3 fix(client): remove service workers 2019-08-14 19:23:27 +05:30
Mrugesh Mohapatra 0124e7556d fix: removed all guide bits from gatsby 2019-07-26 19:40:46 +05:30
Valeriy 11cc25b638 fix(tools): use docker for development 2019-03-15 15:50:30 +05:30
Ahmad Abdolsaheb c3399893c6 fix: remove underline on hover (#35161)
* fix: remove underline on hover

* fix: load Lato font
2019-02-13 08:49:31 -06:00
Mrugesh Mohapatra fdc2219f81 feat: remove news from platform 2019-01-16 13:48:38 +00:00
Stuart Taylor d327a5c36b Feat: News in the client app (#34392) 2018-11-29 15:12:15 +03:00
Stuart Taylor cee98aef43 feat: watch challenges (#34321) 2018-11-16 23:52:52 +05:30
Stuart Taylor 7da04a348b fix: Update packages and fix local dev (#26907)
<!-- Please follow this checklist and put an x in each of the boxes, like this: [x]. It will ensure that our team takes your pull request seriously. -->

- [x] I have read [freeCodeCamp's contribution guidelines](https://github.com/freeCodeCamp/freeCodeCamp/blob/master/CONTRIBUTING.md).
- [x] My pull request has a descriptive title (not a vague title like `Update index.md`)
- [x] My pull request targets the `master` branch of freeCodeCamp.
2018-10-23 18:48:46 +05:30
Bouncey b22c719651 fix(source-plugin): Switch out gatsby-source-filesystem 2018-10-05 15:58:12 +01:00
Bouncey 6e728ce16d feat(guide): Import guide in to the client app 2018-10-05 15:58:12 +01:00
Bouncey 3da2a3eea9 fix(updates): Fix learn -> server communication 2018-09-30 12:42:40 +01:00
Bouncey 5b254f3ad6 chore(learn): Merge learn in to the client app 2018-09-30 12:42:40 +01:00
Bouncey 99e025699a feat(settings) Scaffold /settings route 2018-09-14 16:22:44 +01:00
Bouncey a9c948679e feat(prettier): Use prettier for client code 2018-09-07 14:37:14 +01:00
Bouncey 5b7b3ca33c feat(unsubscribe): Add unsubscribed page and update api 2018-09-06 16:07:03 +01:00
Bouncey aefb63aa7c fix(build): Fix netlify build 2018-09-06 11:35:04 +01:00
Bouncey 77a4452437 feat(certs): Convert certification views to gatsby 2018-09-04 19:40:07 +05:30
Bouncey e59ad6ebda chore(client): Move client app to /client 2018-09-03 17:47:48 +05:30