Skip to content

Commit

Permalink
Plugin migrate (#213)
Browse files Browse the repository at this point in the history
* plugin migration to build system

* tweak

* tweak

* fix linter

* fix linter

* fix linter

* fix eslint reports

* FE: fixed checking for special characters in the name

---------

Co-authored-by: Serhii Filonenko <[email protected]>
  • Loading branch information
bigorn0 and serhii-filonenko authored Jun 14, 2024
1 parent ef076f8 commit 4c15e85
Show file tree
Hide file tree
Showing 257 changed files with 101,336 additions and 124,397 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.idea
.vscode
node_modules
release
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
root = true

[*]
indent_style = tab
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{json,js,ts}]
indent_size = 4

[.{eslintrc, prettierrc, .releaserc}]
indent_size = 4

[*.md]
trim_trailing_whitespace = false

[*.{sql,cql,hql,file,txt}]
insert_final_newline = false
10 changes: 10 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
.vscode
.idea
node_modules
reverse_engineering/node_modules
reverse_engineering/parser
forward_engineering/node_modules
forward_engineering/sampleGeneration/sampleGenerationTypes.d.ts
build
release
55 changes: 55 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"extends": ["prettier"],
"env": {
"node": true,
"es2022": true
},
"plugins": ["import", "unused-imports", "@typescript-eslint"],
"rules": {
"no-cond-assign": "error",
"no-const-assign": "error",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-unreachable": "error",
"eqeqeq": "error",
"no-var": "error",
"no-undef": "error",
"no-bitwise": "warn",
"import/no-unresolved": [
"error"
],
"import/named": "error",
"import/default": "error",
"import/no-self-import": "error",
"no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"off",
{
"vars": "all",
"varsIgnorePattern": "^(React$|__)",
"argsIgnorePattern": ".*"
}
],
"no-debugger": "error"
},
"overrides": [
{
"files": ["*.ts"],
"extends": ["plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
}
}
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".ts", ".cjs", ".mjs"]
}
}
},
"root": true
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
.vscode
.antlr
.idea
node_modules
.DS_Store
release
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact=true
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.git
.vscode
.idea
release
node_modules
package.json
12 changes: 12 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"printWidth": 120,
"tabWidth": 4,
"useTabs": true,
"semi": true,
"singleQuote": true,
"quoteProps": "preserve",
"trailingComma": "all",
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "avoid"
}
10 changes: 5 additions & 5 deletions adapter/0.1.113.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
* Copyright © 2016-2018 by IntegrIT S.A. dba Hackolade. All rights reserved.
*
* The copyright to the computer software herein is the property of IntegrIT S.A.
* The software may be used and/or copied only with the written permission of
* IntegrIT S.A. or in accordance with the terms and conditions stipulated in
* the agreement/contract under which the software has been supplied.
*
* The software may be used and/or copied only with the written permission of
* IntegrIT S.A. or in accordance with the terms and conditions stipulated in
* the agreement/contract under which the software has been supplied.
*
* {
* "add": {
* "entity": [<names of new property>],
Expand Down Expand Up @@ -39,7 +39,7 @@
* },
* }
*/
{
{
"modify": {
"view": [
{
Expand Down
28 changes: 11 additions & 17 deletions adapter/0.1.126.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
* Copyright © 2016-2022 by IntegrIT S.A. dba Hackolade. All rights reserved.
*
* The copyright to the computer software herein is the property of IntegrIT S.A.
* The software may be used and/or copied only with the written permission of
* IntegrIT S.A. or in accordance with the terms and conditions stipulated in
* the agreement/contract under which the software has been supplied.
*
* The software may be used and/or copied only with the written permission of
* IntegrIT S.A. or in accordance with the terms and conditions stipulated in
* the agreement/contract under which the software has been supplied.
*
* {
* "add": {
* "entity": [<names of new property>],
Expand Down Expand Up @@ -39,16 +39,10 @@
* },
* }
*/
{
"modify": {
"container": [
["validateContainer", "name", "code"]
],
"entity": [
["validateEntity", "collectionName", "code"]
],
"field": [
["validateField", "name", "code"]
]
}
}
{
"modify": {
"container": [["validateContainer", "name", "code"]],
"entity": [["validateEntity", "collectionName", "code"]],
"field": [["validateField", "name", "code"]]
}
}
38 changes: 19 additions & 19 deletions adapter/0.1.27.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
* Copyright © 2016-2019 by IntegrIT S.A. dba Hackolade. All rights reserved.
*
* The copyright to the computer software herein is the property of IntegrIT S.A.
* The software may be used and/or copied only with the written permission of
* IntegrIT S.A. or in accordance with the terms and conditions stipulated in
* the agreement/contract under which the software has been supplied.
*
* The software may be used and/or copied only with the written permission of
* IntegrIT S.A. or in accordance with the terms and conditions stipulated in
* the agreement/contract under which the software has been supplied.
*
* {
* "add": {
* "entity": [<names of new property>],
Expand Down Expand Up @@ -40,18 +40,18 @@
* }
*/
{
"add": {},
"modify": {
"field": [
{
"from": {
"primaryKey": true
},
"to": {
"primaryKey": false
}
}
]
},
"delete": {}
}
"add": {},
"modify": {
"field": [
{
"from": {
"primaryKey": true
},
"to": {
"primaryKey": false
}
}
]
},
"delete": {}
}
18 changes: 7 additions & 11 deletions adapter/0.1.55.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
* Copyright © 2016-2018 by IntegrIT S.A. dba Hackolade. All rights reserved.
*
* The copyright to the computer software herein is the property of IntegrIT S.A.
* The software may be used and/or copied only with the written permission of
* IntegrIT S.A. or in accordance with the terms and conditions stipulated in
* the agreement/contract under which the software has been supplied.
*
* The software may be used and/or copied only with the written permission of
* IntegrIT S.A. or in accordance with the terms and conditions stipulated in
* the agreement/contract under which the software has been supplied.
*
* {
* "add": {
* "entity": [<names of new property>],
Expand Down Expand Up @@ -39,20 +39,16 @@
* },
* }
*/
{
{
"modify": {
"entity": [
[
"setRdbmEntityCompositeKeys",
"primaryKey",
"compositePrimaryKey",
"primaryKey",
[
"unique",
"compositePrimaryKey",
"compositeUniqueKey"
]
["unique", "compositePrimaryKey", "compositeUniqueKey"]
]
]
}
}
}
26 changes: 9 additions & 17 deletions adapter/0.1.67.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
* Copyright © 2016-2018 by IntegrIT S.A. dba Hackolade. All rights reserved.
*
* The copyright to the computer software herein is the property of IntegrIT S.A.
* The software may be used and/or copied only with the written permission of
* IntegrIT S.A. or in accordance with the terms and conditions stipulated in
* the agreement/contract under which the software has been supplied.
*
* The software may be used and/or copied only with the written permission of
* IntegrIT S.A. or in accordance with the terms and conditions stipulated in
* the agreement/contract under which the software has been supplied.
*
* {
* "add": {
* "entity": [<names of new property>],
Expand Down Expand Up @@ -40,16 +40,8 @@
* }
*/
{
"modify": {
"entity": [
[
"updateDeltaLakeTableProperties"
]
],
"view": [
[
"updateDeltaLakeTableProperties"
]
]
}
}
"modify": {
"entity": [["updateDeltaLakeTableProperties"]],
"view": [["updateDeltaLakeTableProperties"]]
}
}
20 changes: 8 additions & 12 deletions adapter/0.1.77.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
* Copyright © 2016-2018 by IntegrIT S.A. dba Hackolade. All rights reserved.
*
* The copyright to the computer software herein is the property of IntegrIT S.A.
* The software may be used and/or copied only with the written permission of
* IntegrIT S.A. or in accordance with the terms and conditions stipulated in
* the agreement/contract under which the software has been supplied.
*
* The software may be used and/or copied only with the written permission of
* IntegrIT S.A. or in accordance with the terms and conditions stipulated in
* the agreement/contract under which the software has been supplied.
*
* {
* "add": {
* "entity": [<names of new property>],
Expand Down Expand Up @@ -40,11 +40,7 @@
* }
*/
{
"modify": {
"view": [
[
"updateDeltaLakeTableProperties"
]
]
}
}
"modify": {
"view": [["updateDeltaLakeTableProperties"]]
}
}
29 changes: 29 additions & 0 deletions buildConstants.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
const path = require('path');

const DEFAULT_RELEASE_FOLDER_PATH = path.resolve(__dirname, 'release');

const EXCLUDED_EXTENSIONS = ['.js', '.g4', '.interp', '.tokens'];
const EXCLUDED_FILES = [
'.github',
'.DS_Store',
'.editorconfig',
'.eslintignore',
'.eslintrc',
'.git',
'.gitignore',
'.vscode',
'.idea',
'.prettierignore',
'.prettierrc',
'.dockerignore',
'build',
'release',
'node_modules',
'package-lock.json',
];

module.exports = {
DEFAULT_RELEASE_FOLDER_PATH,
EXCLUDED_EXTENSIONS,
EXCLUDED_FILES,
};
2 changes: 1 addition & 1 deletion central_pane/dtdAbbreviation.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
"bool": "{0/1}",
"bytes": "{BYTES}",
"null": "{null}"
}
}
Loading

0 comments on commit 4c15e85

Please sign in to comment.