freeCodeCamp/package.json

208 lines
7.4 KiB
JSON
Raw Normal View History

2013-11-13 17:32:22 +00:00
{
"name": "freecodecamp",
"version": "0.1.0",
2016-11-13 09:18:40 +00:00
"repository": "freecodecamp/freecodecamp",
"scripts": {
2015-11-23 04:26:44 +00:00
"build": "NODE_ENV=production gulp build -p",
2017-12-16 10:09:57 +00:00
"commit": "git-cz",
"commitmsg": "validate-commit-msg",
"cover": "babel-node ./node_modules/.bin/babel-istanbul cover tape common/**/*.test.js",
"coveralls": "npm run cover && istanbul-coveralls",
"create-rev": "node -e \"var fs = require('fs'); fs.access('./server/rev-manifest.json', function(err) { if (err) { console.log('\\n\\ncreating manifest\\n\\n'); return fs.writeFileSync('server/rev-manifest.json', '{}'); } console.log('\\n\\nrev-manifest present\\n\\n'); });\"",
2017-12-16 10:08:53 +00:00
"develop": "gulp",
2015-11-04 06:06:43 +00:00
"lint": "npm run lint-js && npm run lint-json",
2016-10-27 20:58:59 +00:00
"lint-challenges": "jsonlint-cli seed/challenges/**/*.json",
"lint-server": "jsonlint-cli server/*.json",
"lint-resources": "jsonlint-cli server/resources/*.json",
"lint-utils": "jsonlint-cli server/utils/*.json",
2017-03-28 18:25:08 +00:00
"lint-js": "eslint --ext=.js,.jsx gulpfile.js server/ common/ config/ client/",
2016-01-26 15:54:33 +00:00
"lint-json": "npm run lint-server && npm run lint-challenges && npm run lint-resources && npm run lint-utils",
2017-12-16 10:09:57 +00:00
"only-once": "npm run create-rev && echo '/****/' && echo 'Seeding Database' && echo '/****/' && node seed && echo '/****/' && echo 'Seeding Completed' && echo '/****/'",
"prelint-js": "npm run create-rev",
"pretest": "npm run create-rev && npm run lint",
2017-12-16 10:09:57 +00:00
"prestart-production": "gulp build -p",
"snyk-protect": "snyk protect",
2017-12-16 10:09:57 +00:00
"start": "babel-node server/server.js",
"start-production": "node pm2Start",
"test": "npm run test-js && npm run test-challenges",
"test-develop": "npm run test-js && npm run test-challenges-develop",
"test-challenges": "babel-node seed/test-challenges.js | tap-spec",
"test-challenges-develop": "babel-node seed/test-challenges.js | tap-difflet -p",
2016-09-23 22:38:49 +00:00
"test-js": "npm run test-js-client && npm run test-js-common && npm run test-js-server",
2016-10-27 21:09:41 +00:00
"test-js-client": "tape -r babel-register \"client/**/*.test.js\" | tap-spec",
"test-js-common": "tape -r babel-register \"common/**/*.test.js\" | tap-spec",
2017-12-16 10:09:57 +00:00
"test-js-server": "tape -r babel-register \"server/**/*.test.js\" | tap-spec"
},
2015-07-29 02:49:12 +00:00
"license": "(BSD-3-Clause AND CC-BY-SA-4.0)",
2013-11-13 23:09:22 +00:00
"dependencies": {
2015-11-10 07:05:43 +00:00
"accepts": "^1.3.0",
"babel-core": "^6.18.1",
"babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.3.13",
"babel-register": "^6.3.0",
"babel-runtime": "^6.26.0",
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 21:04:03 +00:00
"babel-standalone": "^6.26.0",
"berkeleys-redux-utils": "^4.0.0",
2015-07-23 20:40:08 +00:00
"body-parser": "^1.13.2",
"bootstrap": "~3.3.7",
"cal-heatmap": "~3.5.2",
"chai": "~3.4.1",
2015-06-29 16:50:25 +00:00
"classnames": "^2.1.2",
"codemirror": "~5.15.2",
2015-11-10 07:05:43 +00:00
"compression": "^1.6.0",
"connect-mongo": "^1.3.2",
2015-11-10 07:05:43 +00:00
"cookie-parser": "^1.4.0",
"cors": "^2.8.4",
2016-05-03 00:22:56 +00:00
"csurf": "^1.8.3",
"d3": "~3.5.17",
"date-fns": "^1.29.0",
2015-11-10 07:05:43 +00:00
"debug": "^2.2.0",
"dedent": "~0.7.0",
"dotenv": "^4.0.0",
2015-12-01 22:50:45 +00:00
"emmet-codemirror": "^1.2.5",
"enzyme": "^3.2.0",
"enzyme-adapter-react-15": "^1.0.5",
2015-11-10 07:05:43 +00:00
"express": "^4.13.3",
"express-flash": "~0.0.2",
2015-11-10 07:05:43 +00:00
"express-session": "^1.12.1",
2015-06-29 16:50:25 +00:00
"express-state": "^1.2.0",
"express-validator": "^5.0.0",
2015-11-10 07:05:43 +00:00
"fetchr": "~0.5.12",
"font-awesome": "^4.7.0",
"frameguard": "^3.0.0",
2017-01-18 00:27:08 +00:00
"googleapis": "16.1.0",
"helmet": "^3.1.0",
"helmet-csp": "^2.1.0",
feat: prep for modern challenges (#15781) * feat(seed): Add modern challenge * chore(react): Use prop-types package * feat: Initial refactor to redux-first-router BREAKING CHANGE: Everything is different! * feat: First rendering * feat(routes): Challenges view render but failing * fix(Challenges): Remove contain HOC * fix(RFR): Add params selector * fix(RFR): :en should be :lang * fix: Update berks utils for redux * fix(Map): Challenge link to arg * fix(Map): Add trailing slash to map page * fix(RFR): Use FCC Link Use fcc Link to get around issue of lang being undefined * fix(Router): Link to is required * fix(app): Rely on RFR state for app lang * chore(RFR): Remove unused RFR Link * fix(RFR): Hydrate initial challenge using RFR and RO * fix: Casing issue * fix(RFR): Undefined links * fix(RFR): Use onRoute<name> convention for route types * feat(server/react): Add helpful redux logging/throwing * fix(server/react): Strip out nonjson from state This prevents thunks in routesMap from breaking serialization * fix(RFR/Link): Should accept any renderable * fix(RFR): Get redirects working * fix(RFR): Redirects and not found's * fix(Map): Move challenge onClick handler * fix(Map): Allow Router.link to handle clicks after onClick * fix(routes): Remove react-router-redux * feat(Router): Add lang to all route actions by default * fix(entities): Only fetch challenge if not already loaded * fix(Files): Move files to own feature * chore(Challenges): Remove vestigial hints logic * fix(RFR): Update challenges on route challenges * fix(code-storage): Should use events instead of commands * fix(Map): ClickOnMap should not hold on to event * chore(lint): Use eslint-config-freecodecamp Closes #15938 * feat(Panes): Update panes on route instead of render * fix(Panes): Store panesmap and update on fetchchallenges * fix(Panes): Normalize panesmaps * fix(Panes): Remove filter from createpanemap * fix(Panes): Middleware on location meta object * feat(Panes): Filter preview on nonhtml challenges * build(babel): Add lodash babel plugin * chore(lint): Lint js files * fix(server/user-stats): Remove use of lodash chain this interferes with babel-plugin-lodash * feat(dev): Add remote redux devtools for ssr * fix(Panes): Dispatch mount action this is needed to trigger window/divider epics * fix(Panes): Getpane to use new panesmap format * fix(Panes): Always update panes after state this lets the panes logic be affected by changes in state
2017-11-10 01:10:30 +00:00
"history": "^4.7.2",
2016-05-28 08:50:00 +00:00
"invariant": "^2.2.1",
2015-11-10 07:05:43 +00:00
"jade": "^1.11.0",
"jquery": "~3.1.1",
"jshint": "~2.9.4",
2016-10-27 20:58:59 +00:00
"jsonlint-cli": "^1.0.1",
"lightbox2": "~2.8.2",
"lodash": "^4.1.0",
"loopback": "^3.11.1",
"loopback-boot": "^2.27.1",
"loopback-component-passport": "git+https://github.com/freeCodeCamp/loopback-component-passport.git#feat/freecodecamp",
"loopback-connector-mongodb": "^3.2.1",
2015-11-10 07:05:43 +00:00
"method-override": "^2.3.0",
"moment": "^2.10.2",
"moment-timezone": "^0.5.0",
2018-03-07 18:08:47 +00:00
"mongodb": "^3.0.4",
2015-11-10 07:05:43 +00:00
"morgan": "^1.6.1",
"mousetrap": "~1.6.0",
"node-emoji": "^1.4.1",
"nodemailer": "^2.1.0",
"nodemailer-ses-transport": "^1.3.0",
"normalize-url": "^1.3.1",
"normalizr": "2.2.1",
"opbeat": "^4.14.0",
"passport": "^0.4.0",
"passport-facebook": "^2.0.0",
"passport-github": "^1.0.0",
2015-11-10 07:05:43 +00:00
"passport-google-oauth2": "~0.1.6",
"passport-linkedin-oauth2": "^1.2.1",
"passport-local": "^1.0.0",
"passport-oauth": "^1.0.0",
"passport-twitter": "^1.0.3",
"pmx": "~0.6.2",
"prismjs": "^1.11.0",
feat: prep for modern challenges (#15781) * feat(seed): Add modern challenge * chore(react): Use prop-types package * feat: Initial refactor to redux-first-router BREAKING CHANGE: Everything is different! * feat: First rendering * feat(routes): Challenges view render but failing * fix(Challenges): Remove contain HOC * fix(RFR): Add params selector * fix(RFR): :en should be :lang * fix: Update berks utils for redux * fix(Map): Challenge link to arg * fix(Map): Add trailing slash to map page * fix(RFR): Use FCC Link Use fcc Link to get around issue of lang being undefined * fix(Router): Link to is required * fix(app): Rely on RFR state for app lang * chore(RFR): Remove unused RFR Link * fix(RFR): Hydrate initial challenge using RFR and RO * fix: Casing issue * fix(RFR): Undefined links * fix(RFR): Use onRoute<name> convention for route types * feat(server/react): Add helpful redux logging/throwing * fix(server/react): Strip out nonjson from state This prevents thunks in routesMap from breaking serialization * fix(RFR/Link): Should accept any renderable * fix(RFR): Get redirects working * fix(RFR): Redirects and not found's * fix(Map): Move challenge onClick handler * fix(Map): Allow Router.link to handle clicks after onClick * fix(routes): Remove react-router-redux * feat(Router): Add lang to all route actions by default * fix(entities): Only fetch challenge if not already loaded * fix(Files): Move files to own feature * chore(Challenges): Remove vestigial hints logic * fix(RFR): Update challenges on route challenges * fix(code-storage): Should use events instead of commands * fix(Map): ClickOnMap should not hold on to event * chore(lint): Use eslint-config-freecodecamp Closes #15938 * feat(Panes): Update panes on route instead of render * fix(Panes): Store panesmap and update on fetchchallenges * fix(Panes): Normalize panesmaps * fix(Panes): Remove filter from createpanemap * fix(Panes): Middleware on location meta object * feat(Panes): Filter preview on nonhtml challenges * build(babel): Add lodash babel plugin * chore(lint): Lint js files * fix(server/user-stats): Remove use of lodash chain this interferes with babel-plugin-lodash * feat(dev): Add remote redux devtools for ssr * fix(Panes): Dispatch mount action this is needed to trigger window/divider epics * fix(Panes): Getpane to use new panesmap format * fix(Panes): Always update panes after state this lets the panes logic be affected by changes in state
2017-11-10 01:10:30 +00:00
"prop-types": "^15.5.10",
"react": "^15.6.2",
"react-addons-css-transition-group": "~15.4.2",
"react-addons-shallow-compare": "~15.4.2",
"react-bootstrap": "~0.31.2",
"react-codemirror": "^0.3.0",
"react-d3": "^0.4.0",
"react-dom": "^15.6.2",
"react-fontawesome": "^1.2.0",
"react-freecodecamp-search": "^1.4.1",
"react-helmet": "^5.2.0",
"react-images": "^0.5.1",
"react-motion": "~0.4.2",
2016-03-06 05:06:04 +00:00
"react-no-ssr": "^1.0.1",
"react-notification": "git+https://github.com/BerkeleyTrue/react-notification.git#freecodecamp",
2016-01-27 19:34:44 +00:00
"react-redux": "^4.0.6",
"react-test-renderer": "^15.6.2",
2016-06-14 16:40:13 +00:00
"react-youtube": "^7.0.0",
2016-01-27 19:34:44 +00:00
"redux": "^3.0.5",
feat(app): new layout (#14707) * feat(app): Restructure app to be more flexible and redux idiomatic BREAKING CHANGE: Lots of breaking changes * refactor(challenges): Redux to started file structure * fix(app): lint issues due to refactor * fix(settings): Refactor settings to use folder structure * refactor(challenges): Move step redux stuff into step folder * fix(challenges): Remove fetchchallenges actions * refactor(challenges): Move project redux logic into project view subdirectory * refactor(app): %s/sagas/epics/g * refactor(redux): Use new redux-epic with combineEpic and ofType * refactor(app): Move challenge selector to app level * fix(app): Move loading challenge info into challenge route This moves a lot of the logic needed to load challenge info into the challenge app. This decouples the main app from the challenge route * refactor(map): Map is now decoupled from challenges * refactor(challenges): Use selectors everywhere instead of guessing state shape * refactor(client): refactor client epics to use selectors * refactor(app): Refactor userSelector to return user object instead of object.user * refactor(entities): Move entities logic into it's own file * fix(redux): combineTypes should be combineActions * fix(app): reducer namespacing and import * fix(Map): Fix undefined type and update redux-action * fix(redux): Refactor fetchUser to be more declarative Use rxjs methods instead of imperative if/else. Also prevent non-actions from being emitted * fix(redux): toString multi phase action types * fix(redux): typecast multiphase type, fix typo in reducer toString multiphase types in fetch challenge epic. Add epic to epics lists. Fix type in fetch challenge complete handler * fix(redux): updateCurrentChallengelogic should be centerlized Move route changes to one location. * fix(Nav): Prevent event object from hanging around closeDropDown/openDropDown where handing on to the event object. This was causing issues with react since event objects are recycled in React. * fix(Map.Challenge): decouple map selector * fix(Map): Decouple panel selectors from props Panel Selectors no longer need to know the shape of a components props. Refactored component selectors to decouple them entities state shape * fix(Map.redux): Add select challenge epic and connect map epics * fix(redux.analytics): Fix meta creator and nav/map events * fix(redux): Update current challenge ajax * fix(challenges): ssr fetch challenge should update challenge ui Was using an epic to update challenge ui on fetch complete, but this was not working on ssr due to the way ssr disables epics to wait for completion. This commit fixes this by causing the complete to directly update state in the challenge ui * fix(challenges): wrong import of types, refactor epic name * fix(redux): Prevent fetch challenge epic from emitting null to dispatch * fix(redux): prevent executechallenge from emitting null * fix(challenges.redux): testsSelector returns just tests * fix(challenges.redux): Prevent completion challenge from emitting null * refactor(Challenges.Step): Refactor step challenge to release event object * fix(redux): wrap reducers in factories reducers exported from features need to be factories this helps avoid cyclic requires messing up reducer creation We end up with exports from files being undefined as node tries to resolve cyclic dependencies. This prevents that by wrapping the `handleActions` call so that the ref to types imported from parent features are closures and can be resolved by node before we need them. * fix(Map): createUi not working correctly map utils should receive just map ui state, createMapUi needs to add title to challenge * feat(Challenges): Adds Panes and panes backend challenge * fix: Create child container to wrap children Create a ChildContainer comp' to wrap all children that represent the view for the current route. This let's the child route define if they want a full width view or if they want the standard max-width view. * feat(Panes): panes now render dividers * feat(Panes): Get divider to move currectly * fix(Nav): Add top margin to contained childs Move margin-bottom from nav to child container as margin top. This let's the jsbin style views fit snug with navbar * fix(Panes): Should be contained within their borders * feat(Panes): Update navbar height of pane on app mount * feat(Panes): Toggle map on map nav btn click * fix(gulpfile): Ensure nodemon exits on restart On process exit, wait for nodemon to shutdown before process.exit * feat(Panes): Make Panes redux first * fix(Panes): Fix divider positioning * fix(Panes): Update divider moved handler dividerMoved action now uses new panesByName structure * feat(Panes): Pane nav button will hide panes * chore(package-lock): Update package lock * feat(Panes.redux): Recaculate dividers on pane toggle * fix(Challenges): Update challenge on dashedName change This fixes backwards navigation not updating the redux state current challenge * feat(Panes.redux): Clear panes on unmount Clearing panes on unmount will clear bin buttons in nav * refactor(Map): Colocate styles * feat(Map): New map layout * fix(Map): No longer has it's own page * fix: FetchChallenges on appMounted * feat: Normalize fetchChallenge(s) results This allows superblocks to be sent with both fetchChallenge and fetchChallenges so the map is always populated on first load * feat(Map): Show blocks on first load * fix(less): Remove old css * feat(Nav): Reduce nav height * fix(Nav): Render nav after content Render nav after content and use css to reverse again on screen. We do this so the panes can render first and update redux panes state which will then update the nav ui state before nav has a chance to render * fix(Panes): Add container This adds a Panes Container that will allow it to udpate redux state so Panes Component will have redux state ready to actually render panes * feat(Challenges.Classic): Add panes * fix(Challenge.Classic): Editor onchange should not need to know about file * fix(Panes): Index on panes hide should account for hidden pane * fix(Challanges.Classic): Fix panes types * fix(Challenges): Add completion modal to all challenges Change classic modal to completion modal * fix(Panes): Dividers live on top of planes * fix(Challenges): Remove codemirror theme Remove codemirror theme and remove borders from preview frame * fix(Challenges.Classic): Remove old component * feat(Challenges.Step): Add panes to step challenge * feat(Challenges.Project): Add panes to projects * fix(Challenges.Projects): Remove row * fix(Modals): Move modal text color to challenge less This text color is dependent on the actual header color * fix(Map): Use Superblock title for ui * fix(Map): Reduce panel header height * fix(app): Capitalize Toasts folder Feature folders should be campitalized * chore(Map): Remove unused epic file * fix(Step): Fix tests * test(Map): Update createMapUi tests input
2017-08-01 03:04:01 +00:00
"redux-actions": "^2.0.3",
2017-01-03 07:04:07 +00:00
"redux-create-types": "0.0.1",
feat(app): new layout (#14707) * feat(app): Restructure app to be more flexible and redux idiomatic BREAKING CHANGE: Lots of breaking changes * refactor(challenges): Redux to started file structure * fix(app): lint issues due to refactor * fix(settings): Refactor settings to use folder structure * refactor(challenges): Move step redux stuff into step folder * fix(challenges): Remove fetchchallenges actions * refactor(challenges): Move project redux logic into project view subdirectory * refactor(app): %s/sagas/epics/g * refactor(redux): Use new redux-epic with combineEpic and ofType * refactor(app): Move challenge selector to app level * fix(app): Move loading challenge info into challenge route This moves a lot of the logic needed to load challenge info into the challenge app. This decouples the main app from the challenge route * refactor(map): Map is now decoupled from challenges * refactor(challenges): Use selectors everywhere instead of guessing state shape * refactor(client): refactor client epics to use selectors * refactor(app): Refactor userSelector to return user object instead of object.user * refactor(entities): Move entities logic into it's own file * fix(redux): combineTypes should be combineActions * fix(app): reducer namespacing and import * fix(Map): Fix undefined type and update redux-action * fix(redux): Refactor fetchUser to be more declarative Use rxjs methods instead of imperative if/else. Also prevent non-actions from being emitted * fix(redux): toString multi phase action types * fix(redux): typecast multiphase type, fix typo in reducer toString multiphase types in fetch challenge epic. Add epic to epics lists. Fix type in fetch challenge complete handler * fix(redux): updateCurrentChallengelogic should be centerlized Move route changes to one location. * fix(Nav): Prevent event object from hanging around closeDropDown/openDropDown where handing on to the event object. This was causing issues with react since event objects are recycled in React. * fix(Map.Challenge): decouple map selector * fix(Map): Decouple panel selectors from props Panel Selectors no longer need to know the shape of a components props. Refactored component selectors to decouple them entities state shape * fix(Map.redux): Add select challenge epic and connect map epics * fix(redux.analytics): Fix meta creator and nav/map events * fix(redux): Update current challenge ajax * fix(challenges): ssr fetch challenge should update challenge ui Was using an epic to update challenge ui on fetch complete, but this was not working on ssr due to the way ssr disables epics to wait for completion. This commit fixes this by causing the complete to directly update state in the challenge ui * fix(challenges): wrong import of types, refactor epic name * fix(redux): Prevent fetch challenge epic from emitting null to dispatch * fix(redux): prevent executechallenge from emitting null * fix(challenges.redux): testsSelector returns just tests * fix(challenges.redux): Prevent completion challenge from emitting null * refactor(Challenges.Step): Refactor step challenge to release event object * fix(redux): wrap reducers in factories reducers exported from features need to be factories this helps avoid cyclic requires messing up reducer creation We end up with exports from files being undefined as node tries to resolve cyclic dependencies. This prevents that by wrapping the `handleActions` call so that the ref to types imported from parent features are closures and can be resolved by node before we need them. * fix(Map): createUi not working correctly map utils should receive just map ui state, createMapUi needs to add title to challenge * feat(Challenges): Adds Panes and panes backend challenge * fix: Create child container to wrap children Create a ChildContainer comp' to wrap all children that represent the view for the current route. This let's the child route define if they want a full width view or if they want the standard max-width view. * feat(Panes): panes now render dividers * feat(Panes): Get divider to move currectly * fix(Nav): Add top margin to contained childs Move margin-bottom from nav to child container as margin top. This let's the jsbin style views fit snug with navbar * fix(Panes): Should be contained within their borders * feat(Panes): Update navbar height of pane on app mount * feat(Panes): Toggle map on map nav btn click * fix(gulpfile): Ensure nodemon exits on restart On process exit, wait for nodemon to shutdown before process.exit * feat(Panes): Make Panes redux first * fix(Panes): Fix divider positioning * fix(Panes): Update divider moved handler dividerMoved action now uses new panesByName structure * feat(Panes): Pane nav button will hide panes * chore(package-lock): Update package lock * feat(Panes.redux): Recaculate dividers on pane toggle * fix(Challenges): Update challenge on dashedName change This fixes backwards navigation not updating the redux state current challenge * feat(Panes.redux): Clear panes on unmount Clearing panes on unmount will clear bin buttons in nav * refactor(Map): Colocate styles * feat(Map): New map layout * fix(Map): No longer has it's own page * fix: FetchChallenges on appMounted * feat: Normalize fetchChallenge(s) results This allows superblocks to be sent with both fetchChallenge and fetchChallenges so the map is always populated on first load * feat(Map): Show blocks on first load * fix(less): Remove old css * feat(Nav): Reduce nav height * fix(Nav): Render nav after content Render nav after content and use css to reverse again on screen. We do this so the panes can render first and update redux panes state which will then update the nav ui state before nav has a chance to render * fix(Panes): Add container This adds a Panes Container that will allow it to udpate redux state so Panes Component will have redux state ready to actually render panes * feat(Challenges.Classic): Add panes * fix(Challenge.Classic): Editor onchange should not need to know about file * fix(Panes): Index on panes hide should account for hidden pane * fix(Challanges.Classic): Fix panes types * fix(Challenges): Add completion modal to all challenges Change classic modal to completion modal * fix(Panes): Dividers live on top of planes * fix(Challenges): Remove codemirror theme Remove codemirror theme and remove borders from preview frame * fix(Challenges.Classic): Remove old component * feat(Challenges.Step): Add panes to step challenge * feat(Challenges.Project): Add panes to projects * fix(Challenges.Projects): Remove row * fix(Modals): Move modal text color to challenge less This text color is dependent on the actual header color * fix(Map): Use Superblock title for ui * fix(Map): Reduce panel header height * fix(app): Capitalize Toasts folder Feature folders should be campitalized * chore(Map): Remove unused epic file * fix(Step): Fix tests * test(Map): Update createMapUi tests input
2017-08-01 03:04:01 +00:00
"redux-epic": "^0.3.0",
feat: prep for modern challenges (#15781) * feat(seed): Add modern challenge * chore(react): Use prop-types package * feat: Initial refactor to redux-first-router BREAKING CHANGE: Everything is different! * feat: First rendering * feat(routes): Challenges view render but failing * fix(Challenges): Remove contain HOC * fix(RFR): Add params selector * fix(RFR): :en should be :lang * fix: Update berks utils for redux * fix(Map): Challenge link to arg * fix(Map): Add trailing slash to map page * fix(RFR): Use FCC Link Use fcc Link to get around issue of lang being undefined * fix(Router): Link to is required * fix(app): Rely on RFR state for app lang * chore(RFR): Remove unused RFR Link * fix(RFR): Hydrate initial challenge using RFR and RO * fix: Casing issue * fix(RFR): Undefined links * fix(RFR): Use onRoute<name> convention for route types * feat(server/react): Add helpful redux logging/throwing * fix(server/react): Strip out nonjson from state This prevents thunks in routesMap from breaking serialization * fix(RFR/Link): Should accept any renderable * fix(RFR): Get redirects working * fix(RFR): Redirects and not found's * fix(Map): Move challenge onClick handler * fix(Map): Allow Router.link to handle clicks after onClick * fix(routes): Remove react-router-redux * feat(Router): Add lang to all route actions by default * fix(entities): Only fetch challenge if not already loaded * fix(Files): Move files to own feature * chore(Challenges): Remove vestigial hints logic * fix(RFR): Update challenges on route challenges * fix(code-storage): Should use events instead of commands * fix(Map): ClickOnMap should not hold on to event * chore(lint): Use eslint-config-freecodecamp Closes #15938 * feat(Panes): Update panes on route instead of render * fix(Panes): Store panesmap and update on fetchchallenges * fix(Panes): Normalize panesmaps * fix(Panes): Remove filter from createpanemap * fix(Panes): Middleware on location meta object * feat(Panes): Filter preview on nonhtml challenges * build(babel): Add lodash babel plugin * chore(lint): Lint js files * fix(server/user-stats): Remove use of lodash chain this interferes with babel-plugin-lodash * feat(dev): Add remote redux devtools for ssr * fix(Panes): Dispatch mount action this is needed to trigger window/divider epics * fix(Panes): Getpane to use new panesmap format * fix(Panes): Always update panes after state this lets the panes logic be affected by changes in state
2017-11-10 01:10:30 +00:00
"redux-first-router": "^1.9.19",
"redux-form": "^5.2.3",
2015-11-10 07:05:43 +00:00
"request": "^2.65.0",
"reselect": "^3.0.0",
2018-01-26 10:37:13 +00:00
"rx": "^4.1.0",
feat(app): new layout (#14707) * feat(app): Restructure app to be more flexible and redux idiomatic BREAKING CHANGE: Lots of breaking changes * refactor(challenges): Redux to started file structure * fix(app): lint issues due to refactor * fix(settings): Refactor settings to use folder structure * refactor(challenges): Move step redux stuff into step folder * fix(challenges): Remove fetchchallenges actions * refactor(challenges): Move project redux logic into project view subdirectory * refactor(app): %s/sagas/epics/g * refactor(redux): Use new redux-epic with combineEpic and ofType * refactor(app): Move challenge selector to app level * fix(app): Move loading challenge info into challenge route This moves a lot of the logic needed to load challenge info into the challenge app. This decouples the main app from the challenge route * refactor(map): Map is now decoupled from challenges * refactor(challenges): Use selectors everywhere instead of guessing state shape * refactor(client): refactor client epics to use selectors * refactor(app): Refactor userSelector to return user object instead of object.user * refactor(entities): Move entities logic into it's own file * fix(redux): combineTypes should be combineActions * fix(app): reducer namespacing and import * fix(Map): Fix undefined type and update redux-action * fix(redux): Refactor fetchUser to be more declarative Use rxjs methods instead of imperative if/else. Also prevent non-actions from being emitted * fix(redux): toString multi phase action types * fix(redux): typecast multiphase type, fix typo in reducer toString multiphase types in fetch challenge epic. Add epic to epics lists. Fix type in fetch challenge complete handler * fix(redux): updateCurrentChallengelogic should be centerlized Move route changes to one location. * fix(Nav): Prevent event object from hanging around closeDropDown/openDropDown where handing on to the event object. This was causing issues with react since event objects are recycled in React. * fix(Map.Challenge): decouple map selector * fix(Map): Decouple panel selectors from props Panel Selectors no longer need to know the shape of a components props. Refactored component selectors to decouple them entities state shape * fix(Map.redux): Add select challenge epic and connect map epics * fix(redux.analytics): Fix meta creator and nav/map events * fix(redux): Update current challenge ajax * fix(challenges): ssr fetch challenge should update challenge ui Was using an epic to update challenge ui on fetch complete, but this was not working on ssr due to the way ssr disables epics to wait for completion. This commit fixes this by causing the complete to directly update state in the challenge ui * fix(challenges): wrong import of types, refactor epic name * fix(redux): Prevent fetch challenge epic from emitting null to dispatch * fix(redux): prevent executechallenge from emitting null * fix(challenges.redux): testsSelector returns just tests * fix(challenges.redux): Prevent completion challenge from emitting null * refactor(Challenges.Step): Refactor step challenge to release event object * fix(redux): wrap reducers in factories reducers exported from features need to be factories this helps avoid cyclic requires messing up reducer creation We end up with exports from files being undefined as node tries to resolve cyclic dependencies. This prevents that by wrapping the `handleActions` call so that the ref to types imported from parent features are closures and can be resolved by node before we need them. * fix(Map): createUi not working correctly map utils should receive just map ui state, createMapUi needs to add title to challenge * feat(Challenges): Adds Panes and panes backend challenge * fix: Create child container to wrap children Create a ChildContainer comp' to wrap all children that represent the view for the current route. This let's the child route define if they want a full width view or if they want the standard max-width view. * feat(Panes): panes now render dividers * feat(Panes): Get divider to move currectly * fix(Nav): Add top margin to contained childs Move margin-bottom from nav to child container as margin top. This let's the jsbin style views fit snug with navbar * fix(Panes): Should be contained within their borders * feat(Panes): Update navbar height of pane on app mount * feat(Panes): Toggle map on map nav btn click * fix(gulpfile): Ensure nodemon exits on restart On process exit, wait for nodemon to shutdown before process.exit * feat(Panes): Make Panes redux first * fix(Panes): Fix divider positioning * fix(Panes): Update divider moved handler dividerMoved action now uses new panesByName structure * feat(Panes): Pane nav button will hide panes * chore(package-lock): Update package lock * feat(Panes.redux): Recaculate dividers on pane toggle * fix(Challenges): Update challenge on dashedName change This fixes backwards navigation not updating the redux state current challenge * feat(Panes.redux): Clear panes on unmount Clearing panes on unmount will clear bin buttons in nav * refactor(Map): Colocate styles * feat(Map): New map layout * fix(Map): No longer has it's own page * fix: FetchChallenges on appMounted * feat: Normalize fetchChallenge(s) results This allows superblocks to be sent with both fetchChallenge and fetchChallenges so the map is always populated on first load * feat(Map): Show blocks on first load * fix(less): Remove old css * feat(Nav): Reduce nav height * fix(Nav): Render nav after content Render nav after content and use css to reverse again on screen. We do this so the panes can render first and update redux panes state which will then update the nav ui state before nav has a chance to render * fix(Panes): Add container This adds a Panes Container that will allow it to udpate redux state so Panes Component will have redux state ready to actually render panes * feat(Challenges.Classic): Add panes * fix(Challenge.Classic): Editor onchange should not need to know about file * fix(Panes): Index on panes hide should account for hidden pane * fix(Challanges.Classic): Fix panes types * fix(Challenges): Add completion modal to all challenges Change classic modal to completion modal * fix(Panes): Dividers live on top of planes * fix(Challenges): Remove codemirror theme Remove codemirror theme and remove borders from preview frame * fix(Challenges.Classic): Remove old component * feat(Challenges.Step): Add panes to step challenge * feat(Challenges.Project): Add panes to projects * fix(Challenges.Projects): Remove row * fix(Modals): Move modal text color to challenge less This text color is dependent on the actual header color * fix(Map): Use Superblock title for ui * fix(Map): Reduce panel header height * fix(app): Capitalize Toasts folder Feature folders should be campitalized * chore(Map): Remove unused epic file * fix(Step): Fix tests * test(Map): Update createMapUi tests input
2017-08-01 03:04:01 +00:00
"rx-dom": "^7.0.3",
2015-11-10 07:05:43 +00:00
"sanitize-html": "^1.11.1",
"snyk": "^1.68.1",
"store": "git+https://github.com/berkeleytrue/store.js.git#feature/noop-server",
2016-12-30 19:05:29 +00:00
"uuid": "^3.0.1",
"validator": "^9.4.0"
2014-02-25 05:58:35 +00:00
},
"devDependencies": {
"adler32": "~0.1.7",
"babel-cli": "^6.3.17",
"babel-istanbul": "^0.12.1",
2018-01-09 04:09:54 +00:00
"babel-loader": "^7.1.2",
"babel-plugin-add-module-exports": "^0.2.1",
feat: prep for modern challenges (#15781) * feat(seed): Add modern challenge * chore(react): Use prop-types package * feat: Initial refactor to redux-first-router BREAKING CHANGE: Everything is different! * feat: First rendering * feat(routes): Challenges view render but failing * fix(Challenges): Remove contain HOC * fix(RFR): Add params selector * fix(RFR): :en should be :lang * fix: Update berks utils for redux * fix(Map): Challenge link to arg * fix(Map): Add trailing slash to map page * fix(RFR): Use FCC Link Use fcc Link to get around issue of lang being undefined * fix(Router): Link to is required * fix(app): Rely on RFR state for app lang * chore(RFR): Remove unused RFR Link * fix(RFR): Hydrate initial challenge using RFR and RO * fix: Casing issue * fix(RFR): Undefined links * fix(RFR): Use onRoute<name> convention for route types * feat(server/react): Add helpful redux logging/throwing * fix(server/react): Strip out nonjson from state This prevents thunks in routesMap from breaking serialization * fix(RFR/Link): Should accept any renderable * fix(RFR): Get redirects working * fix(RFR): Redirects and not found's * fix(Map): Move challenge onClick handler * fix(Map): Allow Router.link to handle clicks after onClick * fix(routes): Remove react-router-redux * feat(Router): Add lang to all route actions by default * fix(entities): Only fetch challenge if not already loaded * fix(Files): Move files to own feature * chore(Challenges): Remove vestigial hints logic * fix(RFR): Update challenges on route challenges * fix(code-storage): Should use events instead of commands * fix(Map): ClickOnMap should not hold on to event * chore(lint): Use eslint-config-freecodecamp Closes #15938 * feat(Panes): Update panes on route instead of render * fix(Panes): Store panesmap and update on fetchchallenges * fix(Panes): Normalize panesmaps * fix(Panes): Remove filter from createpanemap * fix(Panes): Middleware on location meta object * feat(Panes): Filter preview on nonhtml challenges * build(babel): Add lodash babel plugin * chore(lint): Lint js files * fix(server/user-stats): Remove use of lodash chain this interferes with babel-plugin-lodash * feat(dev): Add remote redux devtools for ssr * fix(Panes): Dispatch mount action this is needed to trigger window/divider epics * fix(Panes): Getpane to use new panesmap format * fix(Panes): Always update panes after state this lets the panes logic be affected by changes in state
2017-11-10 01:10:30 +00:00
"babel-plugin-lodash": "^3.2.11",
"babel-plugin-transform-imports": "^1.4.1",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-stage-0": "^6.3.13",
2018-01-09 16:08:14 +00:00
"babel-preset-stage-3": "^6.24.1",
2015-11-10 07:05:43 +00:00
"browser-sync": "^2.9.12",
2018-01-09 04:09:54 +00:00
"chunk-manifest-webpack-plugin": "^1.1.2",
"commitizen": "^2.9.6",
"cz-freecodecamp": "^1.0.1",
"del": "^2.2.0",
feat: prep for modern challenges (#15781) * feat(seed): Add modern challenge * chore(react): Use prop-types package * feat: Initial refactor to redux-first-router BREAKING CHANGE: Everything is different! * feat: First rendering * feat(routes): Challenges view render but failing * fix(Challenges): Remove contain HOC * fix(RFR): Add params selector * fix(RFR): :en should be :lang * fix: Update berks utils for redux * fix(Map): Challenge link to arg * fix(Map): Add trailing slash to map page * fix(RFR): Use FCC Link Use fcc Link to get around issue of lang being undefined * fix(Router): Link to is required * fix(app): Rely on RFR state for app lang * chore(RFR): Remove unused RFR Link * fix(RFR): Hydrate initial challenge using RFR and RO * fix: Casing issue * fix(RFR): Undefined links * fix(RFR): Use onRoute<name> convention for route types * feat(server/react): Add helpful redux logging/throwing * fix(server/react): Strip out nonjson from state This prevents thunks in routesMap from breaking serialization * fix(RFR/Link): Should accept any renderable * fix(RFR): Get redirects working * fix(RFR): Redirects and not found's * fix(Map): Move challenge onClick handler * fix(Map): Allow Router.link to handle clicks after onClick * fix(routes): Remove react-router-redux * feat(Router): Add lang to all route actions by default * fix(entities): Only fetch challenge if not already loaded * fix(Files): Move files to own feature * chore(Challenges): Remove vestigial hints logic * fix(RFR): Update challenges on route challenges * fix(code-storage): Should use events instead of commands * fix(Map): ClickOnMap should not hold on to event * chore(lint): Use eslint-config-freecodecamp Closes #15938 * feat(Panes): Update panes on route instead of render * fix(Panes): Store panesmap and update on fetchchallenges * fix(Panes): Normalize panesmaps * fix(Panes): Remove filter from createpanemap * fix(Panes): Middleware on location meta object * feat(Panes): Filter preview on nonhtml challenges * build(babel): Add lodash babel plugin * chore(lint): Lint js files * fix(server/user-stats): Remove use of lodash chain this interferes with babel-plugin-lodash * feat(dev): Add remote redux devtools for ssr * fix(Panes): Dispatch mount action this is needed to trigger window/divider epics * fix(Panes): Getpane to use new panesmap format * fix(Panes): Always update panes after state this lets the panes logic be affected by changes in state
2017-11-10 01:10:30 +00:00
"eslint": "^4.10.0",
"eslint-config-freecodecamp": "^1.1.1",
2017-12-16 10:08:53 +00:00
"gulp": "^3.9.1",
"gulp-babel": "^6.1.1",
"gulp-concat": "^2.6.0",
"gulp-less": "^3.0.3",
"gulp-nodemon": "^2.0.3",
"gulp-notify": "^3.0.0",
"gulp-plumber": "^1.0.1",
"gulp-reduce-file": "0.0.1",
"gulp-rev": "^7.0.0",
"gulp-sourcemaps": "^2.2.1",
"gulp-uglify": "^2.0.0",
"gulp-util": "^3.0.6",
"husky": "^0.14.3",
"istanbul-coveralls": "^1.0.3",
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 21:04:03 +00:00
"jsdom": "^11.5.1",
"json-loader": "~0.5.2",
"less": "^2.5.1",
2015-11-06 00:41:19 +00:00
"loopback-component-explorer": "^2.1.1",
"merge-stream": "^1.0.0",
"proxyquire": "^1.7.10",
"react-hot-loader": "^1.3.0",
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 21:04:03 +00:00
"redux-thunk": "^2.2.0",
feat: prep for modern challenges (#15781) * feat(seed): Add modern challenge * chore(react): Use prop-types package * feat: Initial refactor to redux-first-router BREAKING CHANGE: Everything is different! * feat: First rendering * feat(routes): Challenges view render but failing * fix(Challenges): Remove contain HOC * fix(RFR): Add params selector * fix(RFR): :en should be :lang * fix: Update berks utils for redux * fix(Map): Challenge link to arg * fix(Map): Add trailing slash to map page * fix(RFR): Use FCC Link Use fcc Link to get around issue of lang being undefined * fix(Router): Link to is required * fix(app): Rely on RFR state for app lang * chore(RFR): Remove unused RFR Link * fix(RFR): Hydrate initial challenge using RFR and RO * fix: Casing issue * fix(RFR): Undefined links * fix(RFR): Use onRoute<name> convention for route types * feat(server/react): Add helpful redux logging/throwing * fix(server/react): Strip out nonjson from state This prevents thunks in routesMap from breaking serialization * fix(RFR/Link): Should accept any renderable * fix(RFR): Get redirects working * fix(RFR): Redirects and not found's * fix(Map): Move challenge onClick handler * fix(Map): Allow Router.link to handle clicks after onClick * fix(routes): Remove react-router-redux * feat(Router): Add lang to all route actions by default * fix(entities): Only fetch challenge if not already loaded * fix(Files): Move files to own feature * chore(Challenges): Remove vestigial hints logic * fix(RFR): Update challenges on route challenges * fix(code-storage): Should use events instead of commands * fix(Map): ClickOnMap should not hold on to event * chore(lint): Use eslint-config-freecodecamp Closes #15938 * feat(Panes): Update panes on route instead of render * fix(Panes): Store panesmap and update on fetchchallenges * fix(Panes): Normalize panesmaps * fix(Panes): Remove filter from createpanemap * fix(Panes): Middleware on location meta object * feat(Panes): Filter preview on nonhtml challenges * build(babel): Add lodash babel plugin * chore(lint): Lint js files * fix(server/user-stats): Remove use of lodash chain this interferes with babel-plugin-lodash * feat(dev): Add remote redux devtools for ssr * fix(Panes): Dispatch mount action this is needed to trigger window/divider epics * fix(Panes): Getpane to use new panesmap format * fix(Panes): Always update panes after state this lets the panes logic be affected by changes in state
2017-11-10 01:10:30 +00:00
"remote-redux-devtools": "^0.5.12",
"rev-del": "^1.0.5",
"sinon": "^2.0.0",
"sort-keys": "^1.1.1",
"tap-difflet": "^0.7.0",
"tap-spec": "^4.1.1",
2016-06-14 16:31:41 +00:00
"tape": "^4.2.2",
"uglifyjs-webpack-plugin": "^1.1.8",
"validate-commit-msg": "^2.12.2",
2018-01-09 04:09:54 +00:00
"webpack": "^3.10.0",
"webpack-dev-middleware": "^2.0.4",
"webpack-hot-middleware": "^2.21.0",
"webpack-manifest-plugin": "^1.3.2",
"webpack-stream": "^4.0.0",
"webpack-visualizer-plugin": "^0.1.11",
"yargs": "^7.0.1"
},
"snyk": true,
"config": {
"commitizen": {
"path": "./node_modules/cz-freecodecamp"
}
}
2016-09-23 22:38:49 +00:00
}