This repository has been archived by the owner on Jan 1, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6fa5e15
commit 9038347
Showing
273 changed files
with
33,639 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"presets": [ | ||
"es2015", | ||
"react" | ||
], | ||
"plugins": [ | ||
"add-module-exports", | ||
"transform-function-bind", | ||
[ | ||
"transform-imports", { | ||
"react-bootstrap": { | ||
"transform": "react-bootstrap/lib/${member}", | ||
"preventFullImport": true | ||
}, | ||
"lodash": { | ||
"transform": "lodash/${member}", | ||
"preventFullImport": true | ||
} | ||
} | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public/ | ||
.cache/ | ||
node_modules/ | ||
*/node_modules/ | ||
static/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "freecodecamp" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
### Node ### | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
|
||
# next.js build output | ||
.next | ||
|
||
# nuxt.js build output | ||
.nuxt | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Serverless directories | ||
.serverless | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# CUSTOM FILES | ||
|
||
# Build directory | ||
/public | ||
static/js | ||
|
||
seed/ignore | ||
seed/tmp | ||
seed/transformed | ||
seed/ready | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"semi": true, | ||
"singleQuote": true, | ||
"trailingComma": "none" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
sudo: false | ||
|
||
language: node_js | ||
node_js: | ||
- "lts/*" | ||
cache: | ||
directories: | ||
- "node_modules" | ||
script: "yarn test:ci" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Contributing | ||
|
||
Prerequisites | Minimum Version | ||
|---|---| | ||
node | ^8.11.x | ||
[yarn](https://yarnpkg.com/en/) | ^1.3.0 | ||
[freeCodeCamp](https://github.com/freecodecamp/freecodecamp) | Running Locally | ||
|
||
[freeCodeCamp/freeCodeCamp](https://github.com/freecodecamp/freecodecamp) currently holds the backend code for learn. The development process relies on this backend. You will see a message like below if you attemp to run `Learn` locally without it: | ||
|
||
```sh | ||
error UNHANDLED EXCEPTION | ||
|
||
Error: connect ECONNREFUSED 127.0.0.1:3000 | ||
|
||
error Command failed with exit code 1. | ||
``` | ||
|
||
1. Fork the repo | ||
2. Clone locally | ||
3. `yarn install` | ||
4. `git checkout -b <your-branch-name>` | ||
5. `yarn develop` (Be sure you have `freeCodeCamp` running locally as well) | ||
6. Make your changes | ||
7. Make a PR | ||
8. Bask in the glory of your accomplishments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
BSD 3-Clause License | ||
|
||
Copyright (c) 2018, freeCodeCamp | ||
Copyright (c) 2018, freeCodeCamp.org | ||
|
||
All rights reserved. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
![freeCodeCamp Social Banner](https://s3.amazonaws.com/freecodecamp/wide-social-banner.png) | ||
|
||
> https://donate.freecodecamp.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { Provider } from 'react-redux'; | ||
import { ConnectedRouter } from 'react-router-redux'; | ||
|
||
import { createStore } from './src/redux/store'; | ||
|
||
exports.replaceRouterComponent = ({ history }) => { | ||
const store = createStore(history || {}); | ||
|
||
const ConnectedRouterWrapper = ({ children }) => ( | ||
<Provider store={store}> | ||
<ConnectedRouter history={history}>{children}</ConnectedRouter> | ||
</Provider> | ||
); | ||
ConnectedRouterWrapper.displayName = 'ConnectedRouterWrapper'; | ||
ConnectedRouterWrapper.propTypes = { | ||
children: PropTypes.node | ||
}; | ||
|
||
return ConnectedRouterWrapper; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
require('dotenv').config(); | ||
|
||
const path = require('path'); | ||
const { buildChallenges$ } = require('./seed/buildChallenges'); | ||
|
||
module.exports = { | ||
siteMetadata: { | ||
title: 'freeCodeCamp | Learn to code and help non-profits ', | ||
siteUrl: 'https://learn.freecodecamp.org' | ||
}, | ||
proxy: { | ||
prefix: '/external', | ||
url: 'http://localhost:3000' | ||
}, | ||
plugins: [ | ||
'gatsby-plugin-react-next', | ||
'gatsby-plugin-react-helmet', | ||
{ | ||
resolve: 'fcc-source-challenges', | ||
options: { | ||
name: 'challenges', | ||
path: path.resolve(__dirname, './seed/challenges'), | ||
source: buildChallenges$ | ||
} | ||
}, | ||
{ | ||
resolve: 'gatsby-source-filesystem', | ||
options: { | ||
name: 'introductions', | ||
path: path.resolve(__dirname, './src/introductions') | ||
} | ||
}, | ||
{ | ||
resolve: 'gatsby-transformer-remark', | ||
options: { | ||
plugins: [ | ||
{ | ||
resolve: 'gatsby-remark-prismjs', | ||
options: { | ||
// Class prefix for <pre> tags containing syntax highlighting; | ||
// defaults to 'language-' (eg <pre class="language-js">). | ||
// If your site loads Prism into the browser at runtime, | ||
// (eg for use with libraries like react-live), | ||
// you may use this to prevent Prism from re-processing syntax. | ||
// This is an uncommon use-case though; | ||
// If you're unsure, it's best to use the default value. | ||
classPrefix: 'language-', | ||
// This is used to allow setting a language for inline code | ||
// (i.e. single backticks) by creating a separator. | ||
// This separator is a string and will do no white-space | ||
// stripping. | ||
// A suggested value for English speakers is the non-ascii | ||
// character '›'. | ||
inlineCodeMarker: null, | ||
// This lets you set up language aliases. For example, | ||
// setting this to '{ sh: "bash" }' will let you use | ||
// the language "sh" which will highlight using the | ||
// bash highlighter. | ||
aliases: {} | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
resolve: 'gatsby-plugin-google-fonts', | ||
options: { | ||
fonts: ['Lato:400,400i,500'] | ||
} | ||
}, | ||
'gatsby-plugin-sitemap' | ||
] | ||
}; |
Oops, something went wrong.