This repository has been archived by the owner on Jun 12, 2020. It is now read-only.
generated from chiffre-io/template-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved from monorepo
- Loading branch information
Showing
15 changed files
with
2,618 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.