Skip to content
This repository was archived by the owner on Apr 19, 2020. It is now read-only.

Commit 0615ede

Browse files
committed
Initial commit
0 parents  commit 0615ede

15 files changed

+7414
-0
lines changed

.bilirc.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
type Config = import('bili').Config
2+
3+
const config: Config = {
4+
input: ['src/index.ts'],
5+
output: {
6+
dir: 'lib',
7+
format: ['cjs']
8+
}
9+
}
10+
11+
export default config

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Build directories
2+
lib

.eslintrc.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
extends: [
3+
'standard-with-typescript',
4+
'plugin:prettier/recommended',
5+
'prettier/standard',
6+
'prettier/@typescript-eslint'
7+
],
8+
parserOptions: {
9+
project: './tsconfig.json',
10+
createDefaultProgram: true
11+
},
12+
rules: {
13+
semi: ['error', 'always'],
14+
'@typescript-eslint/strict-boolean-expressions': 'off'
15+
},
16+
plugins: ['jest'],
17+
env: {
18+
'jest/globals': true
19+
}
20+
};

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Build directories
9+
lib
10+
11+
# Dependency directories
12+
node_modules
13+
14+
# Output of 'npm pack'
15+
*.tgz
16+
17+
# dotenv files
18+
.env
19+
20+
# Others
21+
coverage
22+
package-lock.json
23+
*.local
24+
.vscode

.huskyrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const tasks = taskList => taskList.join(' && ')
2+
3+
module.exports = {
4+
hooks: {
5+
'pre-commit': tasks(['lint-staged', 'pretty-quick --staged'])
6+
}
7+
}

.lintstagedrc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
'src/**/*.ts': () => 'tsc -p tsconfig.json --noEmit',
3+
'src/**/*.ts': ['eslint']
4+
}

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Build directories
2+
lib

.prettierrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
endOfLine: 'lf',
3+
semi: true,
4+
singleQuote: true
5+
}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
## Mongodb migration engine for Synor

jest.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
testEnvironment: 'node',
3+
testPathIgnorePatterns: ['/node_modules/', '__utils__\\.test\\.[jt]s$']
4+
};

package.json

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"name": "@synor/mongo-engine",
3+
"version": "0.0.1",
4+
"description": "Mongo db engine for synor migration tool",
5+
"keywords": [
6+
"synor",
7+
"synor-mongo",
8+
"database migration"
9+
],
10+
"license": "MIT",
11+
"author": "Tahmid Sadik",
12+
"files": [
13+
"lib"
14+
],
15+
"main": "lib/index.js",
16+
"module": "lib/index.esm.js",
17+
"types": "lib/index.d.ts",
18+
"repository": "https://github.com/Synor/core",
19+
"scripts": {
20+
"prebuild": "npm run clean",
21+
"build": "tsc",
22+
"clean": "rimraf lib/*",
23+
"prepack": "npm run build",
24+
"test": "jest",
25+
"watch": "bili --format cjs --watch",
26+
"prepare": "npm run build"
27+
},
28+
"dependencies": {
29+
"@synor/core": "^0.9.0",
30+
"connection-string": "^3.1.1",
31+
"date-fns": "^2.9.0",
32+
"mongodb": "^3.5.3"
33+
},
34+
"devDependencies": {
35+
"@types/jest": "^25.1.2",
36+
"@types/mongodb": "^3.3.16",
37+
"@typescript-eslint/eslint-plugin": "^2.19.0",
38+
"@typescript-eslint/parser": "^2.19.0",
39+
"bili": "^4.8.1",
40+
"eslint": "^6.8.0",
41+
"eslint-config-prettier": "^6.10.0",
42+
"eslint-config-standard-with-typescript": "^12.0.1",
43+
"eslint-plugin-import": "^2.20.1",
44+
"eslint-plugin-jest": "^23.7.0",
45+
"eslint-plugin-node": "^11.0.0",
46+
"eslint-plugin-prettier": "^3.1.2",
47+
"eslint-plugin-promise": "^4.2.1",
48+
"eslint-plugin-standard": "^4.0.1",
49+
"husky": "^4.2.1",
50+
"jest": "^25.1.0",
51+
"lint-staged": "^10.0.7",
52+
"prettier": "^1.19.1",
53+
"pretty-quick": "^2.0.1",
54+
"rimraf": "^3.0.2",
55+
"rollup-plugin-typescript2": "^0.25.3",
56+
"typescript": "^3.8.2"
57+
},
58+
"peerDependencies": {
59+
"@synor/core": "0.6.1"
60+
},
61+
"publishConfig": {
62+
"access": "public"
63+
}
64+
}

0 commit comments

Comments
 (0)