Skip to content
This repository has been archived by the owner on Jun 12, 2020. It is now read-only.

Commit

Permalink
feat: Initial commit
Browse files Browse the repository at this point in the history
Moved from monorepo
  • Loading branch information
franky47 committed Apr 11, 2020
1 parent 64942ce commit 1d97d22
Show file tree
Hide file tree
Showing 15 changed files with 2,618 additions and 65 deletions.
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# @chiffre/template-library
# @chiffre/api-client

[![NPM](https://img.shields.io/npm/v/@chiffre/template-library?color=red)](https://www.npmjs.com/package/@chiffre/template-library)
[![MIT License](https://img.shields.io/github/license/chiffre-io/template-library.svg?color=blue)](https://github.com/chiffre-io/template-library/blob/next/LICENSE)
[![Continuous Integration](https://github.com/chiffre-io/template-library/workflows/Continuous%20Integration/badge.svg?branch=next)](https://github.com/chiffre-io/template-library/actions)
[![Coverage Status](https://coveralls.io/repos/github/chiffre-io/template-library/badge.svg?branch=next)](https://coveralls.io/github/chiffre-io/template-library?branch=next)
[![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=chiffre-io/template-library)](https://dependabot.com)
[![NPM](https://img.shields.io/npm/v/@chiffre/api-client?color=red)](https://www.npmjs.com/package/@chiffre/api-client)
[![MIT License](https://img.shields.io/github/license/chiffre-io/api-client.svg?color=blue)](https://github.com/chiffre-io/api-client/blob/next/LICENSE)
[![Continuous Integration](https://github.com/chiffre-io/api-client/workflows/Continuous%20Integration/badge.svg?branch=next)](https://github.com/chiffre-io/api-client/actions)
[![Coverage Status](https://coveralls.io/repos/github/chiffre-io/api-client/badge.svg?branch=next)](https://coveralls.io/github/chiffre-io/api-client?branch=next)
[![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=chiffre-io/api-client)](https://dependabot.com)

Template for Chiffre libraries

## License

[MIT](https://github.com/chiffre-io/template-library/blob/next/LICENSE) - Made with ❤️ by [François Best](https://francoisbest.com).
[MIT](https://github.com/chiffre-io/api-client/blob/next/LICENSE) - Made with ❤️ by [François Best](https://francoisbest.com).
24 changes: 24 additions & 0 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Compose file for E2E testing, used by the API and the client.

version: '3'

services:
db:
image: postgres:11.1
ports:
- '15432:5432'
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_DB=chiffre-test

redis:
image: redis:5.0-alpine
ports:
- '16379:6379'

wait:
image: jwilder/dockerize
command: dockerize -wait tcp://db:5432 -wait tcp://redis:6379
links:
- db
- redis
31 changes: 22 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,55 @@
{
"name": "@chiffre/template-library",
"name": "@chiffre/api-client",
"version": "0.0.0-semantically-released",
"description": "Template for Chiffre libraries",
"description": "Chiffre.io API client",
"main": "dist/index.js",
"license": "MIT",
"license": "UNLICENSED",
"author": {
"name": "François Best",
"email": "[email protected]",
"url": "https://chiffre.io"
},
"repository": {
"type": "git",
"url": "https://github.com/chiffre-io/template-library"
"url": "https://github.com/chiffre-io/api-client"
},
"keywords": [
"chiffre",
"template"
"api",
"client"
],
"publishConfig": {
"access": "public"
},
"scripts": {
"test": "jest --coverage",
"test:watch": "jest --watch",
"test": "jest --testPathIgnorePatterns=e2e --colors",
"build:clean": "rm -rf ./dist",
"build:ts": "tsc",
"build": "run-s build:clean build:ts",
"ci": "run-s build test"
"e2e:setup": "./scripts/e2e-start.sh",
"e2e:teardown": "./scripts/e2e-stop.sh",
"e2e:run": "jest e2e --runInBand --coverage --colors",
"e2e:test": "run-s e2e:setup e2e:run e2e:teardown",
"ci": "run-s build e2e:test"
},
"dependencies": {
"@47ng/cloak": "^0.15.1",
"@chiffre/api": "^1.0.3",
"@chiffre/crypto": "^1.0.0",
"@chiffre/crypto-box": "^1.0.1",
"axios": "^0.19.2",
"session-keystore": "^0.6.1"
},
"dependencies": {},
"devDependencies": {
"@commitlint/config-conventional": "^8.3.4",
"@types/jest": "^25.2.1",
"@types/node": "^13.11.1",
"commitlint": "^8.3.5",
"husky": "^4.2.5",
"jest": "^25.3.0",
"jest-extended": "^0.11.5",
"npm-run-all": "^4.1.5",
"otplib": "^12.0.1",
"ts-jest": "^25.3.1",
"ts-node": "^8.8.2",
"typescript": "^3.8.3"
Expand Down
7 changes: 7 additions & 0 deletions scripts/e2e-start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

export COMPOSE_PROJECT_NAME=chiffre-test
export COMPOSE_FILE=$(dirname $0)/../docker-compose.test.yml

# Start services
docker-compose run wait
7 changes: 7 additions & 0 deletions scripts/e2e-stop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

export COMPOSE_PROJECT_NAME=chiffre-test
export COMPOSE_FILE=$(dirname $0)/../docker-compose.test.yml

# Stop services
docker-compose down
5 changes: 0 additions & 5 deletions src/index.test.ts

This file was deleted.

Loading

0 comments on commit 1d97d22

Please sign in to comment.