-
Notifications
You must be signed in to change notification settings - Fork 74
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
feat: sandbox deployment events #254
Merged
Merged
Changes from 3 commits
Commits
Show all changes
100 commits
Select commit
Hold shift + click to select a range
8bbde6d
feat: sandbox options add format
zhamujun 7ad12f1
test: add format to available options
zhamujun 0ef8755
fix: sandbox command option format
zhamujun 1d7c2f9
Merge branch 'main' into sandbox-option-format
zhamujun 92a49e7
add changeset
zhamujun 0063a4d
chore: update API.md
zhamujun 7a77b27
refactor: move get_config_path to client-config
zhamujun a45c889
chore: type and lint
zhamujun 5c58fe4
chore: update API.md
zhamujun eefeaf0
Merge branch 'main' into sandbox-option-format
zhamujun bd0f86e
chore: import formatChoices to sandbox
zhamujun c861be3
Merge branch 'main' into sandbox-option-format
zhamujun 6309b05
chore: change template literal
zhamujun 87530a6
chore: update types, use Enum
zhamujun f176750
chore: update types for FormatOption
zhamujun 1986cd0
chore: fix type
zhamujun ea110b3
chore: move getConfigPath to internal api
zhamujun 516bb8a
chore: rename getClientConfigPath
zhamujun c1f1c0f
chore: rename FormatChoice
zhamujun 40d20fb
chore: update API.md
zhamujun cf25eac
chore: add index.js to internal.ts
zhamujun 75f6be7
chore: remove configFileName and formatChoices from API
zhamujun cddb7c2
fix: test
zhamujun 94625e7
Merge branch 'main' into sandbox-option-format
zhamujun 0feeafe
sandbox: initial implementation of deployment hooks
sdstolworthy 05075f9
sandbox: simplify hook registration example
sdstolworthy bdb2f65
lint: fix lints
sdstolworthy c77acac
refactor: use events instead of hooks
sdstolworthy 1e973a9
api: update api description files
sdstolworthy f98b49f
logging: added debug logging
sdstolworthy f43c10f
tests: fix broken test
sdstolworthy 39d0d46
sandbox: base event handler on node:events EventEmitter
sdstolworthy 8c546d1
tests: fix broken test
sdstolworthy 57ec633
chore: move getConfigPath from GenerateConfigCommand to generateClien…
zhamujun 3575c06
Update packages/client-config/src/paths/get_client_config_path.ts
0618 f941266
chore: rename FormatChoice to ClientConfigFormat
zhamujun 944f373
refactor: generateClientConfigToFile to accept out and format
zhamujun 5153d15
test: update tests for generate config and sandbox
zhamujun 3b93e66
Update packages/cli/src/commands/sandbox/sandbox_command.ts
0618 42d79f2
test: misc var change
zhamujun 692b804
chore: move ClientConfigFormat to public API
zhamujun b85d43e
chore: update API.md
zhamujun d53ccb1
test: add test for getClientConfigPath
zhamujun 915b7b8
test: use path.join to resolve windows slash
zhamujun a60d541
test: use path.join to resolve windows slash
zhamujun fc86f13
chore: fix linting error
zhamujun aa35750
chore: fix linting error
zhamujun bda8e37
chore: remove defaultOptions
zhamujun 006628f
test: add asserts for both out and format
zhamujun 4813824
test: add absolut path test
zhamujun 134f2a5
Merge branch 'main' into sandbox-hooks
sdstolworthy c1f2f00
Merge branch 'sandbox-option-format' into sandbox-hooks
sdstolworthy e378e28
fix: throw error if provided file path
zhamujun da5987d
fix: broken test
sdstolworthy 5acd13a
Merge branch 'main' into sandbox-option-format
zhamujun 8dd2666
fix: integrate format into event callback
sdstolworthy 406a9fa
Merge branch 'sandbox-option-format' into sandbox-hooks
sdstolworthy f109014
api: update api description files
sdstolworthy 2002f12
fix: address pr comments
sdstolworthy 6498e71
Merge branch 'main' into sandbox-option-format
zhamujun fd3a87f
chore: rename --out to --outDir
zhamujun 0098475
fix: use lstatSync to detect file path
zhamujun 3a8dc90
chore: update API.md
zhamujun a9ca6ca
chore: changeset
zhamujun 6f7bf38
chore: remove un-used var
zhamujun f17ca5a
fix: package-lock resolve registry
zhamujun cbc6e3b
chore: ignore spell of lstat
zhamujun 810b694
chore: refactor mock-fs with node:mock
zhamujun 4b7b051
chore: remove un-used var
zhamujun 135d263
chore: make getClientConfigPath async
zhamujun 5cb83a9
Merge branch 'sandbox-option-format' into sandbox-hooks
sdstolworthy 4105ee0
fix: path for windows
zhamujun dbaed8c
Merge branch 'main' into sandbox-option-format
zhamujun cbd4e46
chore: remove auto-generated changelogs
zhamujun 28a15b2
Merge branch 'sandbox-option-format' into sandbox-hooks
sdstolworthy 305c2ca
fix: remove references to deleted events
sdstolworthy 964b9be
api: update api description files
sdstolworthy 49e3f11
Merge branch 'main' of github.com:aws-amplify/samsara-cli into sandbo…
sdstolworthy 49dc760
refactor: rename event, move generate-config-adapter
sdstolworthy 3da09fa
refactor: remove sandbox config adapter
sdstolworthy 8ed1025
refactor: use args.out directly for config write path
sdstolworthy 2ba6fd0
refactor: use exported getClientConfigPath from client-config package
sdstolworthy 046eb3f
refactor: use mocks for test
sdstolworthy 2c71a88
fix: explicitly export getClientConfigPath
sdstolworthy ff06a37
Update packages/sandbox/src/file_watching_sandbox.ts
sdstolworthy 1356052
fix: remove unused import
sdstolworthy 6c390d9
Merge branch 'sandbox-hooks' of github.com:sdstolworthy/samsara-cli i…
sdstolworthy 30f5572
Update packages/cli/src/commands/sandbox/sandbox_command.ts
sdstolworthy a816b14
refactor: extract getBackendIdentifier
sdstolworthy 6c201eb
test: add test to validate that successfulDeployment event is emitted
sdstolworthy bd5d258
test: refactor to allow asserting that a specific callback was regist…
sdstolworthy dcbcbc7
fix: remove unused import
sdstolworthy 008406e
Merge branch 'main' into sandbox-hooks
sdstolworthy 67f118a
refactor: creator method for registering sandbox events
sdstolworthy afd1012
fix: remove unused import
sdstolworthy 6607c76
fix: fix naming, refactor for readability
sdstolworthy f2ab03e
Sandbox hooks (#274)
sdstolworthy 7885a8c
Merge branch 'main' of github.com:aws-amplify/samsara-cli into sandbo…
sdstolworthy 2f700db
fix: add delay
sdstolworthy f0b70c3
Merge branch 'e2e-sandbox-events' of github.com:aws-amplify/samsara-c…
sdstolworthy 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
3 changes: 1 addition & 2 deletions
3
packages/cli/src/commands/generate/config/generate_config_command.ts
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
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
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
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.
Based on this line it looks like the return type here should be
Promise<void>
?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.
node:EventEmitter
does not acceptPromise<void>
. It is fire and forget. See here: #254 (comment)