Skip to content

Commit 40d5172

Browse files
authored
Merge branch 'master' into master
2 parents 9f6bc30 + 91b9f49 commit 40d5172

File tree

8 files changed

+5300
-2165
lines changed

8 files changed

+5300
-2165
lines changed

.circleci/config.yml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
version: 2
2+
3+
jobs:
4+
install:
5+
working_directory: ~/mongoose-cursor-pagination
6+
docker:
7+
- image: circleci/node:8.10.0
8+
steps:
9+
- checkout
10+
- restore_cache:
11+
keys:
12+
- v1-dependencies-{{ checksum "package.json" }}
13+
# fallback to using the latest cache if no exact match is found
14+
- v1-dependencies-
15+
- attach_workspace:
16+
at: ~/mongoose-cursor-pagination
17+
- run:
18+
name: NPM Install
19+
command: npm install
20+
- save_cache:
21+
paths:
22+
- node_modules
23+
key: v1-dependencies-{{ checksum "package.json" }}
24+
- persist_to_workspace:
25+
root: ~/mongoose-cursor-pagination
26+
paths: ./node_modules
27+
build:
28+
working_directory: ~/mongoose-cursor-pagination
29+
docker:
30+
- image: circleci/node:8.10.0
31+
steps:
32+
- checkout
33+
- attach_workspace:
34+
at: ~/mongoose-cursor-pagination
35+
- run:
36+
name: Build
37+
command: |
38+
if [ "${CIRCLE_BRANCH}" == "master" ]; then
39+
NODE_ENV=production \
40+
npm run prepare
41+
else
42+
NODE_ENV=development \
43+
npm run prepare
44+
fi
45+
- persist_to_workspace:
46+
root: ~/mongoose-cursor-pagination
47+
paths:
48+
- ./lib
49+
lint:
50+
working_directory: ~/mongoose-cursor-pagination
51+
docker:
52+
- image: circleci/node:8.10.0
53+
steps:
54+
- checkout
55+
- attach_workspace:
56+
at: ~/mongoose-cursor-pagination
57+
- run:
58+
name: Lint
59+
command: npm run lint:ci
60+
test:
61+
working_directory: ~/mongoose-cursor-pagination
62+
docker:
63+
- image: circleci/node:8.10.0
64+
- image: circleci/mongo:3.4-jessie-ram
65+
command: [mongod]
66+
steps:
67+
- checkout
68+
- attach_workspace:
69+
at: ~/mongoose-cursor-pagination
70+
- run:
71+
name: Tests
72+
command: npm run test
73+
74+
workflows:
75+
version: 2
76+
install_build_lint_test:
77+
jobs:
78+
- install
79+
- build:
80+
requires:
81+
- install
82+
- lint:
83+
requires:
84+
- install
85+
- test:
86+
requires:
87+
- install

.eslintrc.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
parser: babel-eslint
2+
extends:
3+
- '@enkidevs/eslint-config-backend'
4+
rules:
5+
node/no-unsupported-features/es-syntax: off
6+
promise/always-return: off
7+
func-names: off

.prettierrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
singleQuote: true
2+
trailingComma: es5

.travis.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)