Skip to content

Commit

Permalink
Converted every es5 imports and exports to es6
Browse files Browse the repository at this point in the history
  • Loading branch information
phemmelliot committed Jul 25, 2018
1 parent 69b0ace commit cddbdb5
Show file tree
Hide file tree
Showing 12 changed files with 1,442 additions and 58 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["es2015"]
}
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
test/*
starter.js
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# Andela-Developer-Challenge

#### Travis CI Badge
[![Build Status](https://travis-ci.com/phemmelliot/Andela-Developer-Challenge.svg?branch=api)](https://travis-ci.com/phemmelliot/Andela-Developer-Challenge)
[![Build Status](https://travis-ci.com/phemmelliot/Andela-Developer-Challenge.svg?branch=api)](https://travis-ci.com/phemmelliot/Andela-Developer-Challenge) [![Maintainability](https://api.codeclimate.com/v1/badges/5e357b8a94abb3859ec7/maintainability)](https://codeclimate.com/github/phemmelliot/Andela-Developer-Challenge/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/5e357b8a94abb3859ec7/test_coverage)](https://codeclimate.com/github/phemmelliot/Andela-Developer-Challenge/test_coverage)


#### Code Coverage Maintainability
[![Maintainability](https://api.codeclimate.com/v1/badges/5e357b8a94abb3859ec7/maintainability)](https://codeclimate.com/github/phemmelliot/Andela-Developer-Challenge/maintainability)

#### Code Coverage Badge
[![Test Coverage](https://api.codeclimate.com/v1/badges/5e357b8a94abb3859ec7/test_coverage)](https://codeclimate.com/github/phemmelliot/Andela-Developer-Challenge/test_coverage)
File renamed without changes.
4 changes: 2 additions & 2 deletions app/routes/entry_routes.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function router(app, array) {
export default function route(app, array) {
const badRequest = { status: 300, message: 'Bad Request' };
// const serverError = { status: 500, message: 'Internal Server Error' };
// Get Request for a single entry
Expand Down Expand Up @@ -75,4 +75,4 @@ module.exports = function router(app, array) {
// res.status(500).send(serverError);
// }
});
};
}
8 changes: 5 additions & 3 deletions app/routes/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const entryRoutes = require('./entry_routes');
import route from './entry_routes';

module.exports = function router(app, array) {
const entryRoutes = route;

export default function router(app, array) {
entryRoutes(app, array);
// Other route groups could go here, in the future
};
}
16 changes: 9 additions & 7 deletions node_modules/rimraf/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cddbdb5

Please sign in to comment.