Commit Graph

695 Commits (1cfd52209a912977052be0eed1340a7056180261)

Author SHA1 Message Date
Stuart Taylor 289d5875fa chore(security🔥): Update npm-run-all (#34469)
Tested locally.
2018-11-27 12:24:00 -05:00
Stuart Taylor cee98aef43 feat: watch challenges (#34321) 2018-11-16 23:52:52 +05:30
mrugesh mohapatra f69fae4303 chore: update package and lockfile (#34352) 2018-11-16 16:20:20 +00:00
Bouncey fbee89b345 feat: Seed news articles on script 2018-11-10 01:57:06 +05:30
Mrugesh Mohapatra e1a0df55ef build(tools): add node_modules cleanup script 2018-11-03 10:32:50 +03:00
Mrugesh Mohapatra 87e02190d5 fix(npm-script): reconfigure script order 2018-11-01 16:06:37 +05:30
Mrugesh Mohapatra 4d3641ad88 fix(ci): remove isolation between ci and local test script 2018-11-01 16:06:37 +05:30
Mrugesh Mohapatra e491eebc58 feat(tools): add postinstall step for bootstrap 2018-11-01 16:06:37 +05:30
Valeriy e099d6486d fix: test curriculum challenges (#24180) 2018-10-23 18:51:53 +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 4cd6b568e1 fix(guide-ci): Handle uncaught errors 2018-10-19 16:28:34 +01:00
Bouncey 569bd7c3a7 feat(guide-ci): Add frontmatter checks to the guide CI 2018-10-19 16:28:34 +01:00
Bouncey 564012a7eb feat(ci): Ensure guide directory structure in CI 2018-10-19 16:28:34 +01:00
Bouncey 162e25143e fix(seed): Show debug logs on seed command 2018-10-12 20:41:42 +05:30
Beau Carnes 7723a592b7 fix: add prebootstrap script 2018-10-11 02:15:05 +05:30
Bouncey cfbb973c8b feat(redirects): Generate _redirects on build 2018-10-09 09:49:01 +01:00
Bouncey 2562c38db2 fix(tools): Adjust seed task 2018-10-07 14:51:09 +05:30
Bouncey c3fad016ab feat(tests): Bootstrap only on ci tests 2018-10-07 14:51:09 +05:30
Bouncey bc9b3b4ddd chore(seed): Move seed script to tools 2018-10-07 14:51:09 +05:30
Bouncey 26750776ed fix(seed): Fix seed script for new curriculum pkg 2018-10-07 14:51:09 +05:30
Bouncey 5fedefb74f fix(travis): Have travis run client tests for CI 2018-10-05 21:34:17 +05:30
Dale Blackburn be0cf1d211 chore: 🤖 Allows Lerna to build curriculum on npm run bootstrap
Added `lerna run build --scope @freecodecamp/curriculum` to bootstrap
npm script

Issues: 18198
2018-10-03 16:51:26 +05:30
Mrugesh Mohapatra eff9ce74bd feat: tie in challenge parser 2018-09-27 20:21:53 +05:30
Mrugesh Mohapatra 9aad55f8af fix(scripts): adjust npm run scripts 2018-09-27 12:28:31 +05:30
Mrugesh Mohapatra 12ee5fd431 chore(ci): setup travis config 2018-09-26 23:08:45 +05:30
Mrugesh Mohapatra fda64e92be feat: intial bootstrap install for server and client 2018-09-26 20:26:53 +05:30
Mrugesh Mohapatra 242e6bb3e2 feat: add learna config 2018-09-26 20:13:51 +05:30
Bouncey a9c948679e feat(prettier): Use prettier for client code 2018-09-07 14:37:14 +01:00
Bouncey eb5dee1cbb fix(build): Make build unrelient on root level deps (take 2) 2018-09-06 16:07:03 +01:00
Bouncey 435e856cdb feat(env): Make env vars available to client app 2018-09-06 16:07:03 +01:00
Bouncey f698dcf79c fix(dev): add top level package.json 2018-09-06 11:35:04 +01:00
Bouncey 46a217d0a5 chore(server): Move api-server in to it's own DIR 2018-09-03 17:47:48 +05:30
Bouncey 9fba6bce4c chore(root-package): Prune to root package JSON 2018-09-03 17:47:48 +05:30
Bouncey 01bc66cab3 feat(nodemon): Nodemon the api server 2018-08-30 20:43:55 +05:30
Bouncey 9f6a2e35f7 feat(landing-page): Gatsby the landing page 2018-08-30 20:43:55 +05:30
Bouncey cd73528958 feat(gatsby): Initial gatsby scaffolding 2018-08-30 20:43:55 +05:30
Stuart Taylor 69030797ac Add icons to the byline (#17993) 2018-08-09 02:26:54 +05:30
Stuart Taylor a4a6901fc6 chore(pkg): Update pm2 to @latest (#17979) 2018-08-05 05:28:16 +05:30
Mrugesh Mohapatra dae7f383f4 fix: remove code-mirror 2018-08-04 22:48:20 +01:00
Stuart Taylor 0c84f5e09b feat(views): Add views and extend functionality 2018-08-03 19:27:42 +05:30
Mrugesh Mohapatra 66502a8338 chore(seed): update curriculum to v3.1.1 2018-08-03 19:27:42 +05:30
Stuart Taylor 4dac8c1867 feat(views): Add views and extend functionality 2018-08-03 19:27:42 +05:30
Stuart Taylor 1b18594bd3 feat(client-routes): Add react-router-dom for client-side routing 2018-08-03 19:27:42 +05:30
Stuart Taylor c84a9c8b57 feat(news): Initial app with webpack 2018-08-03 19:27:42 +05:30
Stuart Taylor 41a99e6487 chore(deps): Update webpack plugins 2018-08-03 19:27:42 +05:30
Stuart Taylor 22cd308fd4 chore(gulp): Clean up gulp file 2018-08-03 19:27:42 +05:30
Stuart Taylor af8030c1d1 chore(tools): Move to webpack v4 2018-08-03 19:27:42 +05:30
Mrugesh Mohapatra 4511e33716 fix: update to use shortid for sub resub 2018-08-02 22:38:11 +01:00
Mrugesh Mohapatra d7180d8a4f chore(seed): update curriculum to v3.1.1 2018-08-01 14:14:14 +01:00
Mrugesh Mohapatra 8c2af37b29 chore(seed): Update curriculum to v3.1.0 2018-07-27 20:53:00 +01:00
Mrugesh Mohapatra 6f4f8f9fac fix(snyk): Updated patches for vulnerabilities 2018-07-02 09:28:08 +01:00
Mrugesh Mohapatra 9ab629bd8b chore(seed): Update to v3.0.1 2018-07-02 09:27:28 +01:00
Mrugesh Mohapatra a7bbd96d46 chore: Remove passport packages 2018-06-29 21:29:20 +01:00
Stuart Taylor 65cb3886ff chore(curriculum): Version bump 2018-06-25 10:44:58 +01:00
Mrugesh Mohapatra 837f9e7524 fix: remove seed files 2018-06-22 12:42:01 +01:00
Rachel Sinclair 6fab6319f8 chore(package): Update Font Awesome and remove Ionicon dependency (#17497)
Update Font Awesome from 4.7 to 5. Update existing Font Awesome icon
references to match version 5 syntax. Replace all Ionicon references
with Font Awesome icons and remove all files relating to Ionicon.

Closes #13798
2018-06-22 01:46:17 +05:30
Stuart Taylor 4f77da02be feat(donate): Add donate api (#17459)
* feat(donate): Add donate api

* feat(donation): Add ability to track donations via email
2018-06-07 16:35:06 -05:00
Kory Dondzila a8756d5919 fix(seed): Fixes database seeding issue (#17472) 2018-06-07 00:57:13 +05:30
Stuart Taylor 6315c6eae0 feat(reporting): Use rollbarjs for error reporting in production (#17259) 2018-05-29 18:38:55 +05:30
Stuart Taylor 2adeaccf20
Merge pull request #17181 from tamj0rd2/feature/remove-opbeat
refactor(server): Remove opbeat from dev tools
2018-05-28 22:43:57 +01:00
Stuart Taylor 4d4b964e2c fix(scripts): Run generate-migration-map after seed events (#17234)
* fix(scripts): Run generate-migration-map after seed events

* fix(only-once): Run 'ensure-env' on prelint
2018-05-27 15:27:18 +05:30
Stuart Taylor 487f7c8153 fix(seed): challenge types (#17229)
Closes #17221
2018-05-24 21:27:09 +05:30
Stuart Taylor dfda68fb58 feat(auth): Authorise 'external' requests through JWT (#17224) 2018-05-24 01:40:56 +05:30
Stuart Taylor c428b2c197 feat(package): Initial Curriculum separation (#17174)
* feat(package): Initial Curriculum separation

* feat(package): Add org scope to package

* chore(ooops): Remove development file

* feat(npm): Add .npmignore

* fix(paths): Fix curriculum paths

* feat(build): Add a build step

* chore(seed): Move package file back to seed

* fix(ignore): Fix .npmIgnore file

* chore(docs): Update README

* chore(seed): Rename coding interview blocks

* fix(seed): Challenge files now fit into learn

* chore(seed): Update seed files for use in learn

* chore(escapes): Unescape script tags of jQuery
2018-05-21 19:26:49 +05:30
Mrugesh Mohapatra 6b133227d7 feat(auth0): Add packages, basic setup, etc 2018-05-20 13:40:48 +05:30
Stuart Taylor 0553bfe2ff refactor(server): Remove opbeat from dev tools 2018-05-19 22:05:09 +05:30
Stuart Taylor 13162cb53a feat(packages): Add scoped loopback-component-passport (#17179) 2018-05-17 19:56:44 +05:30
mrugesh mohapatra 0271e78a1d chore(opbeat): Remove opbeat react logging (#17173) 2018-05-16 15:22:43 +01:00
Stuart Taylor 156ea1af76 Feat: Welcome Page (#17150) 2018-05-15 10:42:05 +05:30
Stuart Taylor 5eb90ed8c8 feat(challenge-redirect): Make '/challenge' and '/map' redirect to learn (#17144)
* feat(challenge-redirect): Make '/challenge' and '/map' redirect to learn

* fix(linting): Generate pathMigrationMap on 'prelint-js'

* fix(script): fix "only once" script

* fix(lock): Fix lock file
2018-05-14 13:04:51 +05:30
Varun 863042312e fix(pm2): update scripts and add dev deps (#17030) 2018-04-06 13:27:15 +05:30
Alex Chaffee 30b26e1476 fix(build): update package.json to pick up benmosher/eslint-plugin-import#720 2018-04-03 19:53:44 +05:30
Alex Chaffee a8484873d8 feat(seed): "unpack" and "repack" scripts
add "npm run seed" as alias to "node seed"

unpack tests and solution into HTML file; add titles and help text; style unpacked file

enable running unpacked assert tests in browser

Using browserify, compile "tape", "lodash", jQuery into "unpacked-bundle.js" for use during in-browser unpacked tests

feat(seed): diff after repacking

feat(seed): unpacked tests use Browser TAP chrome dev tool if available
2018-04-03 19:52:56 +05:30
Stuart Taylor 766b6f98f1 feat(schema): Implement challenge schema 2018-04-03 19:52:01 +05:30
Stuart Taylor ebfbfb6df9 chore(package): Update react-freecodecamp-search (#16943) 2018-03-23 18:41:07 -05:00
Berkeley Martinez 1d513227e8
Merge pull request #16890 from Bouncey/fix/binButtons
Feat(Nav): Responsive Nav with promonent Bin buttons
2018-03-20 16:45:30 -07:00
Stuart Taylor 33d0d05adb feat(nav): Use screen width specific navs 2018-03-13 20:10:06 +00:00
Stuart Taylor a0c3d5bd08 feat(opbeat): Enable opbeat-react for frontend performance tracking 2018-03-09 15:42:44 +00:00
Berkeley Martinez 5bf2e57c6e
[Snyk Update] New fixes for 1 vulnerable dependency path (#16751)
[Snyk Update] New fixes for 1 vulnerable dependency path
2018-03-08 14:17:27 -08:00
Mrugesh Mohapatra 1e86d288df fix(mongodb): update mongodb driver 2018-03-07 23:44:09 +05:30
Stuart Taylor e9a7459597 chore(package): Update loopback-boot to remove vulnerability 2018-03-02 15:56:02 +00:00
snyk-bot f9d0f717b0 fix: package.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/npm:validator:20180218

Latest report for freecodecamp/freecodecamp:
https://snyk.io/test/github/freecodecamp/freecodecamp
2018-02-19 20:32:58 +00:00
Stuart Taylor 3131c55782 feat(Profile): Reactify profile page (#16743)
* feat(Profile): Reactify profile page

* chore(tidyup): Remove console.log

* fix(timeline): Remove legacy challenges from Timeline render

* fix(style): Remove underline on a:hover
2018-02-19 14:32:14 -06:00
Stuart Taylor 24ef69cf7a feat(settings): Expand Settings page functionality (#16664)
* fix(layout): Fix Settings layout in firefox

* chore(availableForHire): Remove available for hire setting

* feat(helpers): Use helper components for Settings layout

* fix(map): Fix undefined lang requested

* feat(settings): Expand Settings page functionality

* chore(pledge): Remove pledge from Settings

* fix(about): Adjust AboutSettings layout

* fix(portfolio): Improve PortfolioSettings layout

* fix(email): Improve EmailSettings layout

* fix(settings): Align save buttons with form fields

* fix(AHP): Format AHP

* fix(DangerZone): Adjust DangerZone layout

* fix(projectSettings): Change Button Copy

* fix(CertSettings): Fix certificate claim logic

* chore(lint): Lint
2018-02-16 17:18:53 -06:00
Timo 673bab4761 fix(tests): Improve test output (#16449)
* fix(tests): Improve test output

Switches test-challengse from tap-spec to tap-difflet in
pessimistic mode for a more concise test output.
Also removes unused gulp tasks.

Closes #16406

* build(npm-script): Update scripts to have developer mode test run
2018-02-14 11:50:27 +00:00
Berkeley Martinez ef80131a29 feat(build): Add source maps to production
We don't have the same precautions as other sites as our code base is
open source, so we might as well make it easier on us to debug
production errors
2018-02-06 13:53:56 -08:00
Stuart Taylor ead6b99f61 chore(bundle): Bundle only one RX 2018-01-26 10:37:13 +00:00
Berkeley Martinez 307716f9c8 fix(loopback/passport): Show flash messages on link 2018-01-18 15:20:54 -08:00
Berkeley Martinez 04af4e326c feat(frameRunner): Run through webpack 2018-01-18 15:20:53 -08:00
Berkeley Martinez e384f6a90c feat(Webpack): Update to latest 2018-01-18 15:20:53 -08:00
Berkeley Martinez 71869757a0 feat(babel): Add babel-runtime plugin
Reduce payload and remove old shims in favor of babel shims
2018-01-18 15:18:42 -08:00
Snyk bot 6e78cd30d4 fix(synk): New fixes for 2 vulnerable dependency paths (#16521)
* fix: package.json & .snyk to reduce vulnerabilities


The following vulnerabilities are fixed with a Snyk patch:
- https://snyk.io/vuln/npm:uglify-js:20151024

Latest report for freecodecamp/freecodecamp:
https://snyk.io/test/github/freecodecamp/freecodecamp

Some vulnerabilities weren't fixed or ignored, and so will still fail
the Snyk test report.

* chore(package): remove snyk autopatch

Cause it's slow AF
2018-01-17 18:38:04 -08:00
Berkeley Martinez 89592e9540
Merge pull request #16374 from Bouncey/chore/bundleSize
chore(bundle): Reduce react-bootstrap footprint by half
2018-01-08 20:24:30 -08:00
Berkeley Martinez 13b7eac16f fix(passport/login): Use middleware instead of bootscript
prototype overwrite doesn't seem have any effect
2018-01-02 23:38:01 +05:30
Berkeley Martinez 894a309723 fix(middlewares/errorhandler): Remove npm module and refactor for fcc use case 2018-01-02 23:38:01 +05:30
Berkeley Martinez 19c7bb1ac9 chore(packages): Update validator and express-validator 2018-01-02 23:38:01 +05:30
Stuart Taylor cd81cf71a2 chore(bundle): Transform react-bootstrap imports through babel 2018-01-02 12:00:48 +00:00
Stuart Taylor fafb53f11e feat(bundle): Add bundle visualisation tool 2018-01-01 13:01:18 +00:00
Stuart Taylor 3d86eaecbc fix(style): Update search bar and apply styles (#16218)
* fix(style): Update search bar and apply styles

* chore(pkg): Bump react-freecodecamp-search version so there is no autocomplete
2017-12-20 10:48:17 -06:00
Berkeley Martinez b2b1426e22 Feat: react redux migration (#16200)
* feat: crudely enables test to run solution code against React challenge (and passes!)

* feat: Updates comment

* feat: Adds React 2 and 3, validates challenges in app

* feat: Adds React 4, validates tests

* feat: Adds Peter's migrated challenge seed files for all challenges

* feat: Adds redux, react-redux imports, adds tests for React 7,

* feat: Adds tests for React 08

* fix(challenges): wrap reserved words in <code> and add tests

* feat: complete first two tests for React 9

* feat: modifies tests in React 09

* feat: Adds working tests for React 37, including async setState tests

* feat: Escape hatch to avoid async tests in automated test suite

* feat: Updates React 15 with working tests

* feat: build passes, yay

* feat: Provisions original code string in challenges and adds tests for React Redux 01

* fix(tests): add self-closing tags challenge, other small fixes

* fix(challenge): add react_10, some other stuff

* fix(challenges): update react 22, add react 23

* fix(challenges): react 5 and react 8

* feat: removes dependencies that will break in browser, will replace later

* feat: fix build

* feat: add redux 1

* fix(challenge): add react 24 tests

* feat: partial implemented Redux 2

* feat: migrate redux 3

* feat: Adds React-Redux 04 with working tests under npm test

* feat: Updates automated test runner, just provide all the dependencies. Adds Redux-Thunk.

* feat: Adds working tests for React Redux 07

* feat: redux challenge 4

* feat: migrate redux 5

* feat: redux 6

* feat: migrate Redux test 7

* fix(challenge): add react 25 tests

* feat: Adds tests for React 48, npm test does not pass...

* feat: Migrate Redux test 8

* fix(challenges): skip 26, add react 27 tests

* fix(challenges): add react 28 tests, replace function w/ => throughout, fix linter warnings

* feat: fixes (patches) hard to understand problem with automated test suite

* feat: updates async tests patch

* feat: adds converted tests for React 47

* feat: adds converted tests for React 46

* feat: Partially adds tests for React 43

* docs: adds TO-DO tests for React 43

* feat: migrates tests for React 42

* feat: migrates tests for React 41

* feat: migrates tests for React 39

* feat: Migrates tests for React 38, automated test script fails again!

* feat: migrates tests for React 32

* feat: QAs more React Redux challenge in FCC UI

* feat: Updates tests for React 7

* feat: Migrates React-Redux 3 tests and hardcodes deep-freeze dependency

* feat: migrates React Redux 05 tests

* feat: migrates React Redux 06 tests

* feat: Migrates React Redux 10

* feat: Migrates tests for React 16

* feat: Migrates React 17 tests

* feat: Migrates React 18 tests

* feat: Migrates React 19 tests

* feat: Migrates React 19 tests

* feat: fixing usage of code, replace with editor.getOriginalCode

* feat: Migrates React 21 tests

* feat: Finishes migration of React 09

* fix(challenges): add react 45 tests 💀

* feat: Adds React 11 tests

* feat: Migrates React 50 tests

* feat: Re-enables original code in FCC editor, QAs challenges blocked by original code

* feat: hacks head tail code in editor test environment

* feat: updates React 20 head code

* feat: QAs React Redux 07 in UI

* fix(challenges): add React 29 tests

* fix(challenges): add React 30 tests

* feat: updates async tests

* feat: Migrates React 12, gets ReactDOM challenges working and QAs them

* feat: Migrates React 13 tests

* feat: Migrates tests for React 14 and updates challenge description formatting

* feat: Refactors 2nd test for Redux 02

* feat: Migrates React 33

* feat: Removes React 26 and 43

* feat: Adds React 34 from Kevin

* fix(challenges): add React 31 & 35 tests (thanks Kevin)

* feat: Migrate Redux challenge 10 - pass both UI QA and terminal test

* fix(challenge): add react 40 tests

* feat: Migrates React Redux 02 tests

* feat: Migrates React Redux 08 and fixes async syntax in React challenge

* fix(challenge): add react 49 tests with caveat

* feat: fixes React 49 tests and adds first tests for React Redux 09

* feat: Migrate Redux 11 - pass both terminal test and UI test

* feat: Migrate Redux 12 - passing both UI test and terminal test

* feat: Migrate Redux 13 - passing both terminal and UI tests

* feat: Adding in code tags for previous redux challenges - terminal and UI tests pass

* feat: Migrates React Redux 09 and React 44 (thanks Kevin)

* feat: fix code tag issues - passed UI and terminal tests

* feat: Migrates Redux 14 tests

* feat: Migrates Redux 14

* feat: Migrates Redux 15

* feat: Migrates Redux 17

* feat: Final migration and QA of Redux, except for Redux 9

* feat: migrates React 36 and QAs

* feat: Rewrites Redux 09 and migrates

* feat: refactors pull request and cleans up code

* style(challenges): QA React challenges

* style(challenges): QA react challenges

* fix(challenges): fix react 41 and 45 tests

* style(challenges): QA redux challenges

* style(challenges): QA react and redux challenges

* fix(seed/react): Move head/tail to files

* fix(seed/redux): Move head/tail to file level

* chore(packages): Move jsdom to dev deps

* fix(seed/react/redux): Async funcs

make async func defined

* fix(seed): %s/editor.getUserCode/getUserInput/gc

* fix(Challenges/build): Make sure head/tail is bundled and transformed

* feat(Challenges.react): Add tail to render component

* chore(seed): Disable modern challenge testing for now

We will put these on beta while we update the auto testing framework
2017-12-18 15:04:03 -06:00