Skip to content

Commit

Permalink
HCK-9248: missing httpService (#42)
Browse files Browse the repository at this point in the history
* fix: replace `httpService` with `@hackolade/fetch`

* fix: extended eslint config, marked `lodash` and `electron` as external libs

* fix: added missing package

* chore: ignore `release` folder
  • Loading branch information
chulanovskyi-bs authored Dec 24, 2024
1 parent c809581 commit 2af384f
Show file tree
Hide file tree
Showing 9 changed files with 332 additions and 145 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
.antlr
.idea
node_modules
.DS_Store
.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
8 changes: 8 additions & 0 deletions esbuild.package.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const fs = require('fs');
const path = require('path');
const esbuild = require('esbuild');
const { clean } = require('esbuild-plugin-clean');
const { copy } = require('esbuild-plugin-copy');
const { copyFolderFiles, addReleaseFlag } = require('@hackolade/hck-esbuild-plugins-pack');
const { EXCLUDED_EXTENSIONS, EXCLUDED_FILES, DEFAULT_RELEASE_FOLDER_PATH } = require('./buildConstants');

Expand All @@ -21,10 +22,17 @@ esbuild
outdir: RELEASE_FOLDER_PATH,
minify: true,
logLevel: 'info',
external: ['lodash', 'electron'],
plugins: [
clean({
patterns: [DEFAULT_RELEASE_FOLDER_PATH],
}),
copy({
assets: {
from: [path.join('node_modules', 'lodash', '**', '*')],
to: [path.join('node_modules', 'lodash')],
},
}),
copyFolderFiles({
fromPath: __dirname,
targetFolderPath: RELEASE_FOLDER_PATH,
Expand Down
Loading

0 comments on commit 2af384f

Please sign in to comment.