-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/support nodejs18 esmodule #535
Closed
Closed
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
b7b3a42
Preset localstack debug commands
kai-nguyen-aligent caec768
Merge remote-tracking branch 'origin/kai-nguyen-aligent-prettier-rule…
kai-nguyen-aligent 90947c9
Update localstack to latest v1.0.4
kai-nguyen-aligent 62d066e
Expose nodejs debug port on serverless container
kai-nguyen-aligent 4821131
Added env variable for debugging in dev stage (localstack)
kai-nguyen-aligent bf5aa5d
Added dev configs for deploying to localstack
kai-nguyen-aligent fd2a29a
Added back localstack init
kai-nguyen-aligent fe2cc0d
Added VSCode debugger configurations
kai-nguyen-aligent acfd909
Update ReadMe with updated info
kai-nguyen-aligent b65e330
Fix a typo to ignore the real vscode folder
kai-nguyen-aligent f191916
Minor tweak to make debugging with Jest smoother.
kai-nguyen-aligent 5209d9e
Merge commit 'd4736d56e0ec137051ba5bc7f8248c96e3c7c9f1' into feature/…
kai-nguyen-aligent 10fcee2
Added build task for debug image
kai-nguyen-aligent 10a55ac
Fixed some feedbacks
kai-nguyen-aligent 0cc6c69
Update Readme, mention about VSCode Docker extension
kai-nguyen-aligent b02deca
Prevent errors when start/stop localstack from different workspaces
kai-nguyen-aligent 2c9f6e4
Minor change to alias to match with VSCode tasks
kai-nguyen-aligent 73fac61
Moved .localstack to home & fix its permission to machine's user
kai-nguyen-aligent 148e261
Update tasks to match with latest serverless docker image.
kai-nguyen-aligent c8e7d03
Fixed an issue when localstack has stopped while we try to start it
kai-nguyen-aligent a258e33
Minor ReadMe update
kai-nguyen-aligent 1127732
Merge commit '2181fb022e23603b3f9cd10c7af236273c64d613' into feature/…
kai-nguyen-aligent 70275c9
Use dotevn for reading environment vars
kai-nguyen-aligent 4ad2819
Renamed .vscode-config to .vscode
kai-nguyen-aligent 2cf1bac
Update ReadMe & added recommended extensions
kai-nguyen-aligent 24ad37d
Added esm configuration for esbuild
kai-nguyen-aligent b15fd42
Rename & update debug configurations
kai-nguyen-aligent 90e1eb1
Moved node debug settings to Docker image
kai-nguyen-aligent bdfacae
Removed redundant packages
kai-nguyen-aligent 352db4b
Update dependencies to latest version
kai-nguyen-aligent 4329f98
Set type to module & update package.json
kai-nguyen-aligent fd24a38
Update tsconfig to support esm
kai-nguyen-aligent dd49653
Moved all aws config to folder
kai-nguyen-aligent 3902d55
Added top-level await when getting ssm example
kai-nguyen-aligent ea8eda2
Remove nvmrc as we do not use nvm
kai-nguyen-aligent 4b6533a
Update node engine configs
kai-nguyen-aligent ce877d1
Enable experimental-vm-modules while running Jest
kai-nguyen-aligent e599d56
Update ts-jest configuration to use ESM
kai-nguyen-aligent 2f3985e
Update serverless-esbuild configs
kai-nguyen-aligent 829373a
Added node environment to eslint
kai-nguyen-aligent e3ab4de
Added mock example & follow AAA unit test pattern
kai-nguyen-aligent f700b91
Remove `source-map-support` package from lambda
kai-nguyen-aligent 313e494
Added example of getting SSM params
kai-nguyen-aligent 9a5cb35
Pass ssm root to world lambda
kai-nguyen-aligent 78cbc60
Update few types packages
kai-nguyen-aligent cc582c2
Update workflow to node 18.12
kai-nguyen-aligent fe704a8
Add test to cover branch coverage
kai-nguyen-aligent 6e50ae1
Fix esbuild config file referencing syntax
kai-nguyen-aligent 24e6144
Switch default stage to stg
kai-nguyen-aligent db6a544
Commented out iamRoleStatement as it affect git workflow
kai-nguyen-aligent File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -1,11 +1,16 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": ["@typescript-eslint"], | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier" | ||
] | ||
], | ||
"env": { | ||
"node": true | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ jspm_packages | |
# ESBuild directories | ||
.build | ||
|
||
vscode | ||
.vscode | ||
|
||
# Localstack directories | ||
.localstack | ||
|
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 |
---|---|---|
@@ -1,3 +1,21 @@ | ||
#!/bin/sh | ||
|
||
# Make sure user has ownership of ~/.localstack | ||
LOCALSTACK_INIT="/docker-entrypoint-initaws.d/localstack-init.sh" | ||
DEPLOY_USER="deployer" | ||
|
||
DOCKER_UID=`stat -c "%u" $LOCALSTACK_INIT` | ||
DOCKER_GID=`stat -c "%g" $LOCALSTACK_INIT` | ||
|
||
if id -u $DEPLOY_USER >/dev/null 2>&1; then | ||
userdel $DEPLOY_USER | ||
fi | ||
|
||
groupadd -g ${DOCKER_GID} ${DEPLOY_USER} | ||
useradd -g ${DOCKER_GID} --home-dir /home/${DEPLOY_USER} -s /bin/bash -u ${DOCKER_UID} ${DEPLOY_USER} | ||
|
||
chown -R ${DEPLOY_USER}:${DEPLOY_USER} /var/lib/localstack | ||
|
||
# Add the creation of any AWS resource you want using the awslocal cli tool | ||
awslocal ssm put-parameter --name "/example/ssm/param" --type String --value "some-value" --overwrite | ||
awslocal ssm get-parameter --name "/example/ssm/param" |
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
{ | ||
"recommendations": [ | ||
"ms-azuretools.vscode-docker" | ||
] | ||
} |
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,34 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Invoke Local Debug", | ||
"type": "node", | ||
"request": "attach", | ||
"address": "localhost", | ||
"port": 9229, | ||
"sourceMaps": true, | ||
"localRoot": "${workspaceFolder}", | ||
"remoteRoot": "/app", | ||
"outFiles": ["${workspaceFolder}/.esbuild/**/*.js"], | ||
"internalConsoleOptions": "neverOpen", | ||
"preLaunchTask": "sls-docker: invoke-local-debug" | ||
}, | ||
{ | ||
"name": "Jest Test Debug", | ||
"type": "node", | ||
"request": "attach", | ||
"address": "localhost", | ||
"port": 9229, | ||
"sourceMaps": true, | ||
"localRoot": "${workspaceFolder}", | ||
"remoteRoot": "/app", | ||
"outFiles": ["${workspaceFolder}/.esbuild/**/*.js"], | ||
"internalConsoleOptions": "neverOpen", | ||
"preLaunchTask": "sls-docker: jest-test-debug" | ||
} | ||
] | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TheOrangePuff could you review this section?