Skip to content

Commit 42b9b74

Browse files
committed
Extract from orbit-server
1 parent e7d2bc3 commit 42b9b74

12 files changed

+4526
-0
lines changed

.eslintignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# compiled output
2+
/dist/
3+
/tmp/
4+
5+
# dependencies
6+
/node_modules/
7+
8+
# misc
9+
/coverage/
10+
!.*

.eslintrc.js

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
module.exports = {
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
parserOptions: {
5+
ecmaVersion: 2018,
6+
sourceType: 'module'
7+
},
8+
extends: [
9+
'plugin:@typescript-eslint/recommended',
10+
'prettier/@typescript-eslint',
11+
'plugin:prettier/recommended'
12+
],
13+
env: {
14+
node: true
15+
},
16+
rules: {
17+
'@typescript-eslint/no-empty-interface': ['off'],
18+
'@typescript-eslint/no-use-before-define': ['off'],
19+
'@typescript-eslint/explicit-function-return-type': ['off'],
20+
'@typescript-eslint/no-explicit-any': ['off'],
21+
'@typescript-eslint/explicit-member-accessibility': ['off']
22+
}
23+
};

.npmignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
docs
2+
node_modules
3+
test
4+
tmp
5+
dist/test
6+
*.log
7+
*.DS_Store
8+
*.editorconfig
9+
*.gitignore
10+
*.travis.yml

.prettierrc.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
singleQuote: true
3+
};

.travis.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
language: node_js
2+
node_js:
3+
- stable
4+
dist: xenial

package.json

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"name": "orbit-sql",
3+
"version": "0.1.0",
4+
"main": "dist/src/index.js",
5+
"types": "dist/src/index.d.ts",
6+
"description": "SQL support for Orbit.",
7+
"contributors": [
8+
"Paul Chavard <[email protected]>"
9+
],
10+
"keywords": [
11+
"orbit",
12+
"sql",
13+
"knex"
14+
],
15+
"repository": "https://github.com/tchak/orbit-sql",
16+
"license": "MIT",
17+
"dependencies": {
18+
"@orbit/data": "^0.16.0",
19+
"@orbit/record-cache": "^0.16.0",
20+
"inflected": "^2.0.4",
21+
"knex": "^0.19.1"
22+
},
23+
"scripts": {
24+
"build": "rm -rf ./dist && tsc",
25+
"test": "qunit --require ts-node/register 'test/**/*-test.ts'",
26+
"lint": "eslint . --ext .ts",
27+
"prepare": "yarn build",
28+
"release": "release-it"
29+
},
30+
"devDependencies": {
31+
"@types/node": "^12.6.8",
32+
"@types/qunit": "^2.9.0",
33+
"@typescript-eslint/eslint-plugin": "^1.13.0",
34+
"@typescript-eslint/parser": "^1.13.0",
35+
"eslint": "^6.1.0",
36+
"eslint-config-prettier": "^6.0.0",
37+
"eslint-plugin-prettier": "^3.1.0",
38+
"prettier": "^1.18.2",
39+
"qunit": "^2.9.2",
40+
"release-it": "^12.3.4",
41+
"ts-node": "^8.3.0",
42+
"typescript": "^3.5.3",
43+
"@types/inflected": "^1.1.29",
44+
"sqlite3": "^4.0.9"
45+
},
46+
"publishConfig": {
47+
"access": "public",
48+
"registry": "https://registry.npmjs.org/"
49+
},
50+
"release-it": {
51+
"github": {
52+
"release": false
53+
}
54+
}
55+
}

src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default, SQLSourceSettings } from './sql-source';

0 commit comments

Comments
 (0)