Skip to content

Commit

Permalink
Initial Commit for release
Browse files Browse the repository at this point in the history
  • Loading branch information
madorb committed Feb 20, 2018
0 parents commit 146297f
Show file tree
Hide file tree
Showing 40 changed files with 13,291 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"presets": [
[
"env",
{
"targets": {
"node": "8.2"
}
}
],
"flow"
],
"plugins": [
"transform-flow-strip-types",
"transform-class-properties"
],
"env": {
"production": {
"ignore": [
"**/*.test.js",
"**/*.test.js.snap"
]
},
"node": true
}
}
38 changes: 38 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
version: 2
jobs:
build:
working_directory: /tmp/koa-pageable
docker:
- image: circleci/node:8
steps:
- checkout
- restore_cache:
keys:
- yarn-cache
- restore_cache:
keys:
- koa-pageable-node-modules-{{ .Branch}}-{{checksum "yarn.lock"}}
- koa-pageable-node-modules-
- run:
name: "Install dependencies"
command: |
yarn install --verbose
- save_cache:
key: koa-pageable-node-modules-{{ .Branch}}-{{checksum "yarn.lock"}}
paths:
- node_modules
- save_cache:
key: yarn-cache
paths:
- ~/.cache/yarn
- run:
name: "Run Tests"
command: |
yarn test
- run:
name: "Run build"
command: |
NODE_ENV=production yarn build
cd lib
cp ../yarn.lock .
yarn install --production
51 changes: 51 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"parser": "babel-eslint",
"extends": [
"eslint-config-airbnb-base",
"plugin:flowtype/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"globals": {
"__DEV__": true,
"analytics": true,
"winston": true
},
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true
},
"plugins": [
"flowtype"
],
"rules": {
"function-paren-newline": "off",
"no-underscore-dangle": "off",
"arrow-body-style": ["error", "as-needed"],
"no-confusing-arrow": "off",
"no-console": "off",
"no-this-before-super": "off",
"max-len": [
"error",
120,
2,
{
"ignoreComments": true,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreTrailingComments": true,
"ignoreUrls": true
}
],
"flowtype/define-flow-type": "warn",
"flowtype/use-flow-type": "warn",
"import/no-extraneous-dependencies": [
"error", {
"devDependencies": ["**/*.test.js"]
}
]
}
}
11 changes: 11 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[ignore]
.*/__tests__/.*

[include]

[libs]

[options]
experimental.const_params=true
include_warnings=true
munge_underscores=true
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.idea/
*.iml
node_modules/
npm-debug.log
build/
lib/
.DS_STORE
*.sublime-project
*.sublime-workspace
yarn-error.log
coverage/
15 changes: 15 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ISC License

Copyright (c) 2018, Pandera Labs

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Loading

0 comments on commit 146297f

Please sign in to comment.