Skip to content

Commit d6f7211

Browse files
committed
tests passing
1 parent 07eb2a7 commit d6f7211

File tree

1,126 files changed

+13331
-1073
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,126 files changed

+13331
-1073
lines changed

.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.eslintrc.js

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
module.exports = {
2+
plugins: ['prettier'],
3+
extends: ['eslint:recommended', 'prettier'],
4+
parser: 'babel-eslint',
5+
globals: {
6+
jasmine: true
7+
},
8+
parserOptions: {
9+
ecmaVersion: 11,
10+
sourceType: 'module',
11+
ecmaFeatures: {
12+
jsx: true
13+
}
14+
},
15+
env: {
16+
es6: true,
17+
browser: true,
18+
node: true,
19+
jest: true
20+
},
21+
rules: {
22+
'no-debugger': 2,
23+
'no-alert': 2,
24+
'no-await-in-loop': 0,
25+
'no-prototype-builtins': 0,
26+
'no-return-assign': ['error', 'except-parens'],
27+
'no-restricted-syntax': [
28+
2,
29+
'ForInStatement',
30+
'LabeledStatement',
31+
'WithStatement'
32+
],
33+
'no-unused-vars': [
34+
0,
35+
{
36+
ignoreSiblings: true,
37+
argsIgnorePattern: 'React|res|next|^_'
38+
}
39+
],
40+
'prefer-const': [
41+
'error',
42+
{
43+
destructuring: 'all'
44+
}
45+
],
46+
'no-unused-expressions': [
47+
2,
48+
{
49+
allowTaggedTemplates: true
50+
}
51+
],
52+
'no-console': 1,
53+
'comma-dangle': 2,
54+
'jsx-quotes': [2, 'prefer-double'],
55+
'linebreak-style': ['error', 'unix'],
56+
quotes: [
57+
2,
58+
'single',
59+
{
60+
avoidEscape: true,
61+
allowTemplateLiterals: true
62+
}
63+
],
64+
'prettier/prettier': [
65+
'error',
66+
{
67+
trailingComma: 'none',
68+
singleQuote: true,
69+
printWidth: 80
70+
}
71+
]
72+
}
73+
};
74+

.eslintrc.json

-43
This file was deleted.

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* text=auto
2+
*.js text eol=lf

.gitignore

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
*.sw[op]
2-
*~
3-
*.DS_Store
4-
*.log
5-
.logs
61
node_modules
2+
.DS_Store
3+
.eslintcache
4+
*.log
5+
**/node_modules
6+
coverage
7+
packages/**/build
8+
packages/**/main
9+
packages/**/module

.npmignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
node_modules
2+
.DS_Store
3+
.eslintcache
4+
*.log
5+
**/node_modules
6+
coverage
7+
packages/**/build
8+
packages/**/main
9+
packages/**/module

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ env:
2626

2727
before_install:
2828
- yarn install
29-
- docker run -p 7777:5432 --name postgres -v `pwd`/packages:/sql-extensions -d pyramation/postgres
29+
- docker run -p 7777:5432 --name postgres -v `pwd`/packages:/sql-extensions -v `pwd`/node_modules:/sql-modules -d pyramation/postgres
3030
- sleep 3
3131
- while ! docker exec -it postgres pg_isready -U postgres -h 127.0.0.1; do echo "$(date) - waiting for database to start"; sleep 1; done
3232
- while ! docker exec postgres /sql-extensions/install.sh; do echo "installing plugins"; sleep 3; done

.vscode/settings.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"[javascriptreact]": {
4+
"editor.formatOnSave": false
5+
},
6+
"[javascript]": {
7+
"editor.formatOnSave": false
8+
},
9+
"editor.codeActionsOnSave": {
10+
"source.fixAll.eslint": true
11+
},
12+
"eslint.validate": [
13+
"javascript",
14+
"javascriptreact"
15+
]
16+
}

.yarnrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
registry "https://registry.npmjs.org/"
2+
workspaces-experimental true
3+
save-prefix false
4+
save-exact true

babel.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
babelrcRoots: 'packages/*',
3+
presets: ['@pyramation/env']
4+
};

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '2'
1+
version: "2"
22
services:
33
postgres:
44
container_name: launchql-postgres

jest.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
projects: ['<rootDir>/packages/*/jest.config.js'],
3+
coverageDirectory: '<rootDir>/coverage',
4+
transform: {
5+
'^.+\\.(js|jsx|ts|tsx)$': 'babel-jest'
6+
}
7+
};

lerna.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"lerna": "3.4.2",
3+
"useWorkspaces": true,
4+
"npmClient": "yarn",
5+
"npmClientArgs": [
6+
"--no-lockfile"
7+
],
8+
"packages": [
9+
"packages/*"
10+
],
11+
"version": "independent",
12+
"registry": "https://registry.npmjs.org",
13+
"command": {
14+
"create": {
15+
"license": "SEE LICENSE IN LICENSE",
16+
"access": "restricted"
17+
},
18+
"publish": {
19+
"allowBranch": "master"
20+
}
21+
}
22+
}

package.json

+24-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
{
2-
"name": "webql",
3-
"dependencies": {
4-
}
5-
}
2+
"private": true,
3+
"name": "launchql",
4+
"scripts": {
5+
"build": "lerna run prepare --parallel",
6+
"bootstrap": "lerna bootstrap --use-workspaces"
7+
},
8+
"dependencies": {},
9+
"devDependencies": {
10+
"@babel/cli": "7.10.4",
11+
"@babel/core": "7.10.4",
12+
"@pyramation/babel-preset-env": "0.1.0",
13+
"babel-eslint": "10.1.0",
14+
"babel-jest": "26.1.0",
15+
"eslint": "7.3.1",
16+
"eslint-config-prettier": "^6.10.0",
17+
"eslint-plugin-prettier": "^3.1.2",
18+
"jest": "26.1.0",
19+
"lerna": "3.22.1",
20+
"prettier": "2.0.5"
21+
},
22+
"workspaces": [
23+
"packages/*"
24+
]
25+
}

packages/dbs_rls/.babelrc

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"plugins": [
3-
"dynamic-import-node",
4-
"syntax-dynamic-import",
5-
"transform-class-properties",
6-
"transform-object-rest-spread",
7-
"transform-regenerator",
8-
"transform-runtime"
3+
"@babel/plugin-proposal-class-properties",
4+
"@babel/plugin-proposal-object-rest-spread",
5+
"@babel/plugin-proposal-export-default-from",
6+
"@babel/plugin-transform-runtime"
97
],
10-
"presets": ["env"]
8+
"presets": [
9+
"@babel/env"
10+
]
1111
}

packages/dbs_rls/.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

packages/dbs_rls/.env

-10
This file was deleted.

packages/dbs_rls/.eslintignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules/
2+
dist/
3+
main/
4+
module/
5+
coverage/

packages/dbs_rls/.eslintrc.js

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
module.exports = {
2+
plugins: ['prettier'],
3+
extends: ['eslint:recommended', 'prettier'],
4+
parser: 'babel-eslint',
5+
globals: {
6+
jasmine: true
7+
},
8+
parserOptions: {
9+
ecmaVersion: 11,
10+
sourceType: 'module',
11+
ecmaFeatures: {
12+
jsx: true
13+
}
14+
},
15+
env: {
16+
es6: true,
17+
browser: true,
18+
node: true,
19+
jest: true
20+
},
21+
rules: {
22+
'no-debugger': 2,
23+
'no-alert': 2,
24+
'no-await-in-loop': 0,
25+
'no-prototype-builtins': 0,
26+
'no-return-assign': ['error', 'except-parens'],
27+
'no-restricted-syntax': [
28+
2,
29+
'ForInStatement',
30+
'LabeledStatement',
31+
'WithStatement'
32+
],
33+
'no-unused-vars': [
34+
0,
35+
{
36+
ignoreSiblings: true,
37+
argsIgnorePattern: 'React|res|next|^_'
38+
}
39+
],
40+
'prefer-const': [
41+
'error',
42+
{
43+
destructuring: 'all'
44+
}
45+
],
46+
'no-unused-expressions': [
47+
2,
48+
{
49+
allowTaggedTemplates: true
50+
}
51+
],
52+
'no-console': 1,
53+
'comma-dangle': 2,
54+
'jsx-quotes': [2, 'prefer-double'],
55+
'linebreak-style': ['error', 'unix'],
56+
quotes: [
57+
2,
58+
'single',
59+
{
60+
avoidEscape: true,
61+
allowTemplateLiterals: true
62+
}
63+
],
64+
'prettier/prettier': [
65+
'error',
66+
{
67+
trailingComma: 'none',
68+
singleQuote: true,
69+
printWidth: 80
70+
}
71+
]
72+
}
73+
};

packages/dbs_rls/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

0 commit comments

Comments
 (0)