Skip to content

Commit

Permalink
feat: add new types and sample
Browse files Browse the repository at this point in the history
  • Loading branch information
omermorad committed Feb 10, 2021
2 parents cf7977c + c7ebe74 commit acc1776
Show file tree
Hide file tree
Showing 27 changed files with 6,750 additions and 31 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -15,6 +15,7 @@ lerna-debug.log*

# Tests
/coverage
/sample/coverage
/.nyc_output

# IDEs and editors
Expand Down
1 change: 1 addition & 0 deletions .npmignore
@@ -1,2 +1,3 @@
.eslintrc
.editorconfig
coverage
6 changes: 3 additions & 3 deletions README.md
@@ -1,7 +1,7 @@
[![ISC license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)
[![npm version](http://img.shields.io/npm/v/mockingbird-ts.svg?style=flat)](https://npmjs.org/package/faker.ts "View this project on npm")
[![Codecov Coverage](https://img.shields.io/codecov/c/github/omermorad/mockingbird-ts/master.svg?style=flat-square)](https://codecov.io/gh/omer-morad-ni/faker.ts)
[![CircleCI](https://circleci.com/gh/omermorad/mockingbird-ts.svg?style=shield)](https://circleci.com/gh/circleci/circleci-docs)
[![npm version](http://img.shields.io/npm/v/mockingbird-ts.svg?style=flat)](https://npmjs.org/package/mockingbird-ts "View this project on npm")
[![Codecov Coverage](https://img.shields.io/codecov/c/github/omermorad/mockingbird-ts/master.svg?style=flat-square)](https://codecov.io/gh/omermorad/mockingbird-ts)
[![CircleCI](https://circleci.com/gh/omermorad/mockingbird-ts.svg?style=shield)](https://circleci.com/gh/omermorad/mockingbird-ts)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

<p align="center">
Expand Down
5 changes: 3 additions & 2 deletions jest.config.json
Expand Up @@ -4,7 +4,7 @@
"json",
"ts"
],
"rootDir": ".",
"rootDir": "./",
"testRegex": ".test.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
Expand All @@ -14,5 +14,6 @@
"text",
"cobertura"
],
"testEnvironment": "node"
"testEnvironment": "node",
"modulePathIgnorePatterns": ["./sample"]
}
7 changes: 7 additions & 0 deletions sample/mockingbird-typeorm/.gitignore
@@ -0,0 +1,7 @@
.idea/
.vscode/
node_modules/
build/
tmp/
temp/
in-memory.sqlite
Empty file.
12 changes: 12 additions & 0 deletions sample/mockingbird-typeorm/docker-compose.yml
@@ -0,0 +1,12 @@
version: "3"
services:
mysql:
image: "mysql:5.7.24"
container_name: "mockingbird-typeorm-example"
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: "test"
MYSQL_USER: "test"
MYSQL_PASSWORD: "test"
MYSQL_DATABASE: "users"
32 changes: 32 additions & 0 deletions sample/mockingbird-typeorm/ormconfig.json
@@ -0,0 +1,32 @@
[
{
"name": "default",
"type": "mysql",
"host": "localhost",
"port": 3306,
"username": "test",
"password": "test",
"database": "users",
"synchronize": true,
"logging": true,
"entities": [
"dist/entity/**/*.js"
],
"cli": {
"entitiesDir": "src/entity",
"migrationsDir": "src/migration",
"subscribersDir": "src/subscriber"
}
},
{
"name": "test",
"type": "sqlite",
"database": "in-memory.sqlite",
"dropSchema": true,
"synchronize": true,
"logging": false,
"entities": [
"src/entity/**/*.ts"
]
}
]

0 comments on commit acc1776

Please sign in to comment.