Skip to content
This repository has been archived by the owner on Jan 1, 2020. It is now read-only.

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
raisedadead committed Nov 21, 2018
1 parent 6fa5e15 commit 9038347
Show file tree
Hide file tree
Showing 273 changed files with 33,639 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .babelrc
@@ -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
}
}
]
]
}
5 changes: 5 additions & 0 deletions .eslintignore
@@ -0,0 +1,5 @@
public/
.cache/
node_modules/
*/node_modules/
static/
3 changes: 3 additions & 0 deletions .eslintrc
@@ -0,0 +1,3 @@
{
"extends": "freecodecamp"
}
89 changes: 89 additions & 0 deletions .gitignore
@@ -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

5 changes: 5 additions & 0 deletions .prettierrc
@@ -0,0 +1,5 @@
{
"semi": true,
"singleQuote": true,
"trailingComma": "none"
}
9 changes: 9 additions & 0 deletions .travis.yml
@@ -0,0 +1,9 @@
sudo: false

language: node_js
node_js:
- "lts/*"
cache:
directories:
- "node_modules"
script: "yarn test:ci"
26 changes: 26 additions & 0 deletions CONTRIBUTING.md
@@ -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
2 changes: 1 addition & 1 deletion LICENSE → LICENSE.md
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2018, freeCodeCamp
Copyright (c) 2018, freeCodeCamp.org

All rights reserved.

Expand Down
2 changes: 2 additions & 0 deletions README.md
@@ -1 +1,3 @@
![freeCodeCamp Social Banner](https://s3.amazonaws.com/freecodecamp/wide-social-banner.png)

> https://donate.freecodecamp.org
22 changes: 22 additions & 0 deletions gatsby-browser.js
@@ -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;
};
73 changes: 73 additions & 0 deletions gatsby-config.js
@@ -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'
]
};

0 comments on commit 9038347

Please sign in to comment.