From 968a5788bc112369d889a5e889d334e6b11e7ad4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Knuchel?= Date: Sat, 10 Feb 2024 14:13:39 +0100 Subject: [PATCH] improve .gitignore --- cli/.gitignore | 4 +++- cli/package-lock.json | 2 +- cli/package.json | 12 ++++++------ cli/tsconfig.json | 4 ++-- gateway/.gitignore | 2 ++ libs/connector-couchbase/.gitignore | 2 ++ libs/connector-mariadb/.gitignore | 2 ++ libs/connector-mongodb/.gitignore | 2 ++ libs/connector-mysql/.gitignore | 2 ++ libs/connector-postgres/.gitignore | 2 ++ libs/connector-sqlserver/.gitignore | 2 ++ libs/json-infer-schema/.gitignore | 2 ++ libs/parser-prisma/.gitignore | 2 ++ libs/parser-sql/.gitignore | 2 ++ libs/shared/.gitignore | 2 ++ libs/utils/.gitignore | 2 ++ 16 files changed, 36 insertions(+), 10 deletions(-) diff --git a/cli/.gitignore b/cli/.gitignore index d29f5228d..7922893be 100644 --- a/cli/.gitignore +++ b/cli/.gitignore @@ -1,3 +1,5 @@ -lib node_modules +out *.tgz +src/**/*.js +tests/**/*.js diff --git a/cli/package-lock.json b/cli/package-lock.json index 14fb0a83d..1993cab62 100644 --- a/cli/package-lock.json +++ b/cli/package-lock.json @@ -17,7 +17,7 @@ "open": "10.0.3" }, "bin": { - "azimutt": "lib/index.js" + "azimutt": "out/index.js" }, "devDependencies": { "@jest/globals": "^29.7.0", diff --git a/cli/package.json b/cli/package.json index 35697451c..5f882ae27 100644 --- a/cli/package.json +++ b/cli/package.json @@ -26,19 +26,19 @@ "url": "https://github.com/azimuttapp/azimutt/issues" }, "type": "module", - "main": "./lib/index.js", - "types": "./lib/index.d.ts", + "main": "./out/index.js", + "types": "./out/index.d.ts", "bin": { - "azimutt": "./lib/index.js" + "azimutt": "./out/index.js" }, "scripts": { - "setup": "npm install && npm run build && chmod +x ./lib/index.js", + "setup": "npm install && npm run build && chmod +x ./out/index.js", "start": "nodemon --watch 'src/**/*.ts' --exec 'ts-node' src/index.ts", "start:windows": "nodemon --watch 'src/**/*.ts' --exec \"npx ts-node\" src/index.ts", "test": "jest", - "build": "rm -rf ./lib && tsc", + "build": "rm -rf ./out && tsc", "update": "npm update --save-dev && npm update --save && npm install", - "exec": "npm run build && node ./lib/index.js", + "exec": "npm run build && node ./out/index.js", "local": "sudo npm install -g && azimutt", "refresh": "rm -rf ./node_modules ./package-lock.json && npm install", "dry-publish": "npm run build && npm test && npm pack" diff --git a/cli/tsconfig.json b/cli/tsconfig.json index 7f7f6576e..74b50a6ae 100644 --- a/cli/tsconfig.json +++ b/cli/tsconfig.json @@ -49,7 +49,7 @@ // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ "sourceMap": true, /* Create source map files for emitted JavaScript files. */ // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ - "outDir": "./lib", /* Specify an output folder for all emitted files. */ + "outDir": "./out", /* Specify an output folder for all emitted files. */ // "removeComments": true, /* Disable emitting comments. */ // "noEmit": true, /* Disable emitting files from a compilation. */ // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ @@ -100,6 +100,6 @@ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ "skipLibCheck": true /* Skip type checking all .d.ts files. */ }, - "exclude": ["node_modules", "lib", "**/*.test.ts"], + "exclude": ["node_modules", "out", "**/*.test.ts"], "include": ["src"] } diff --git a/gateway/.gitignore b/gateway/.gitignore index 6530fe973..e8ca90305 100644 --- a/gateway/.gitignore +++ b/gateway/.gitignore @@ -1,6 +1,8 @@ node_modules out *.tgz +src/**/*.js +tests/**/*.js .env.production production.env diff --git a/libs/connector-couchbase/.gitignore b/libs/connector-couchbase/.gitignore index 1febc2840..7922893be 100644 --- a/libs/connector-couchbase/.gitignore +++ b/libs/connector-couchbase/.gitignore @@ -1,3 +1,5 @@ node_modules out *.tgz +src/**/*.js +tests/**/*.js diff --git a/libs/connector-mariadb/.gitignore b/libs/connector-mariadb/.gitignore index 1febc2840..7922893be 100644 --- a/libs/connector-mariadb/.gitignore +++ b/libs/connector-mariadb/.gitignore @@ -1,3 +1,5 @@ node_modules out *.tgz +src/**/*.js +tests/**/*.js diff --git a/libs/connector-mongodb/.gitignore b/libs/connector-mongodb/.gitignore index 1febc2840..7922893be 100644 --- a/libs/connector-mongodb/.gitignore +++ b/libs/connector-mongodb/.gitignore @@ -1,3 +1,5 @@ node_modules out *.tgz +src/**/*.js +tests/**/*.js diff --git a/libs/connector-mysql/.gitignore b/libs/connector-mysql/.gitignore index 1febc2840..7922893be 100644 --- a/libs/connector-mysql/.gitignore +++ b/libs/connector-mysql/.gitignore @@ -1,3 +1,5 @@ node_modules out *.tgz +src/**/*.js +tests/**/*.js diff --git a/libs/connector-postgres/.gitignore b/libs/connector-postgres/.gitignore index 1febc2840..7922893be 100644 --- a/libs/connector-postgres/.gitignore +++ b/libs/connector-postgres/.gitignore @@ -1,3 +1,5 @@ node_modules out *.tgz +src/**/*.js +tests/**/*.js diff --git a/libs/connector-sqlserver/.gitignore b/libs/connector-sqlserver/.gitignore index 1febc2840..7922893be 100644 --- a/libs/connector-sqlserver/.gitignore +++ b/libs/connector-sqlserver/.gitignore @@ -1,3 +1,5 @@ node_modules out *.tgz +src/**/*.js +tests/**/*.js diff --git a/libs/json-infer-schema/.gitignore b/libs/json-infer-schema/.gitignore index 1febc2840..7922893be 100644 --- a/libs/json-infer-schema/.gitignore +++ b/libs/json-infer-schema/.gitignore @@ -1,3 +1,5 @@ node_modules out *.tgz +src/**/*.js +tests/**/*.js diff --git a/libs/parser-prisma/.gitignore b/libs/parser-prisma/.gitignore index 1febc2840..7922893be 100644 --- a/libs/parser-prisma/.gitignore +++ b/libs/parser-prisma/.gitignore @@ -1,3 +1,5 @@ node_modules out *.tgz +src/**/*.js +tests/**/*.js diff --git a/libs/parser-sql/.gitignore b/libs/parser-sql/.gitignore index 1febc2840..7922893be 100644 --- a/libs/parser-sql/.gitignore +++ b/libs/parser-sql/.gitignore @@ -1,3 +1,5 @@ node_modules out *.tgz +src/**/*.js +tests/**/*.js diff --git a/libs/shared/.gitignore b/libs/shared/.gitignore index 1febc2840..7922893be 100644 --- a/libs/shared/.gitignore +++ b/libs/shared/.gitignore @@ -1,3 +1,5 @@ node_modules out *.tgz +src/**/*.js +tests/**/*.js diff --git a/libs/utils/.gitignore b/libs/utils/.gitignore index 1febc2840..7922893be 100644 --- a/libs/utils/.gitignore +++ b/libs/utils/.gitignore @@ -1,3 +1,5 @@ node_modules out *.tgz +src/**/*.js +tests/**/*.js