This repository has been archived by the owner on Feb 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(device-ui): change name and config
BREAKING CHANGE: use node cli device-ui-config instead This changes the naming of the Device UI and also separates the config script from the react-config because the Device Simulator Web Application (formerly Device UI) is no longer based on create-react-app
- Loading branch information
1 parent
0de6357
commit 7f64b0f
Showing
9 changed files
with
53 additions
and
25 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { CommandDefinition } from './CommandDefinition' | ||
import { stackOutput } from '@bifravst/cloudformation-helpers' | ||
import { objectToEnv } from '@bifravst/object-to-env' | ||
import { CloudFormation } from 'aws-sdk' | ||
import { DEVICEUI_STACK_NAME } from '../../cdk/stacks/stackName' | ||
import { region } from '../../cdk/regions' | ||
|
||
export const deviceUIConfigCommand = (): CommandDefinition => ({ | ||
command: 'device-ui-config', | ||
action: async () => { | ||
const so = stackOutput(new CloudFormation({ region })) | ||
process.stdout.write( | ||
objectToEnv( | ||
{ | ||
...(await so(DEVICEUI_STACK_NAME)), | ||
region, | ||
}, | ||
'SNOWPACK_PUBLIC_', | ||
), | ||
) | ||
}, | ||
help: | ||
'Prints environment variables needed for the Device Simulator Web Application.', | ||
}) |
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