Skip to content
This repository was archived by the owner on Feb 21, 2023. It is now read-only.

Commit b4aa880

Browse files
kiliwlevino
authored andcommitted
Init project with test runner etc.
0 parents  commit b4aa880

File tree

6 files changed

+669
-0
lines changed

6 files changed

+669
-0
lines changed

.circleci/config.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Javascript Node CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
4+
#
5+
6+
defaults: &defaults
7+
working_directory: ~/repo
8+
docker:
9+
- image: node:8
10+
restore_prepared_repo: &restore_prepared_repo
11+
- attach_workspace:
12+
at: ~/repo
13+
14+
version: 2
15+
jobs:
16+
prepare_repo:
17+
<<: *defaults
18+
steps:
19+
- checkout
20+
# Download and cache dependencies
21+
- restore_cache:
22+
keys:
23+
- v1-dependencies-{{ checksum "package-lock.json" }}
24+
# fallback to using the latest cache if no exact match is found
25+
- v1-dependencies-
26+
27+
- run:
28+
name: Install dependencies
29+
command: npm i
30+
- save_cache:
31+
paths:
32+
- node_modules
33+
key: v1-dependencies-{{ checksum "package-lock.json" }}
34+
- persist_to_workspace:
35+
root: ~/repo
36+
paths:
37+
- '*'
38+
39+
test:
40+
<<: *defaults
41+
steps:
42+
- <<: *restore_prepared_repo
43+
- run:
44+
name: Run tests
45+
command: npm run test
46+
47+
workflows:
48+
version: 2
49+
ci:
50+
jobs:
51+
- prepare_repo
52+
- test:
53+
requires:
54+
- prepare_repo

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
semi: false
2+
singleQuote: true
3+
trailingComma: "es5"
4+
arrowParens: "always"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# codewarsKatas

0 commit comments

Comments
 (0)