Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup/basic project setup #12

Merged
merged 12 commits into from
Apr 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
language: node_js

node_js:
- 'stable'

cache:
directories:
- node_modules

install:
- npm run client:init

before_script:
- npm run client:build
- sleep 15

script:
- npm test

on:
branch: master

after_success:
- npm run coverage


51 changes: 51 additions & 0 deletions client/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
module.exports = {
"extends": [
"airbnb",
"prettier",
"prettier/react"
],
// babel-eslint parser is used to support experimental features not supported in ESLint itself yet
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2018,
"ecmaFeatures": {
"impliedStrict": true, //enable global strict mode (if ecmaVersion is 5 or greater)
}
},
"env": {
"browser": true,
"node": true,
"jest": true
},
"rules": {
// allow .js extensions for JSX.
"react/jsx-filename-extension": [
1,
{
"extensions": [
".js",
".jsx"
]
}
],
"quotes": [
2,
"single",
{
"avoidEscape": true, // allows strings to use single-quotes or double-quotes so long as the string contains a quote that would have to be escaped otherwise
"allowTemplateLiterals": true // allows strings to use backticks
}
],
// configure the prettier plugin
"prettier/prettier": [
"error",
{
"trailingComma": "es5",
"singleQuote": true,
}
]
},
"plugins": [
"prettier"
]
};
23 changes: 23 additions & 0 deletions client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
Loading