-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ivan Duplenskikh (Akvelon INC)
committed
Nov 13, 2024
1 parent
b4e27fb
commit 32e6296
Showing
6 changed files
with
952 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Run without the shelljs module as external | ||
run: npm run start | ||
- name: Run with the shelljs module as external | ||
run: npm run start-ext | ||
if: failure() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { build } from 'esbuild' | ||
|
||
await build({ | ||
entryPoints: ['./src/index.js'], | ||
outfile: './dist/index.js', | ||
bundle: true, | ||
platform: "node", | ||
target: "node16", | ||
allowOverwrite: true, | ||
external: ['shelljs'] | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { build } from 'esbuild' | ||
|
||
await build({ | ||
entryPoints: ['./src/index.js'], | ||
outfile: './dist/index.js', | ||
bundle: true, | ||
platform: "node", | ||
target: "node16", | ||
allowOverwrite: true | ||
}); |
Oops, something went wrong.