-
Notifications
You must be signed in to change notification settings - Fork 53
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: create react-components and source-iotsitewise pkgs #57
Conversation
df2ca08
to
3e634b5
Compare
4d13e90
to
9a16634
Compare
* move core build files away from stencil config into package.json to prepare moving away from stencil to build core * fix various typing issues in iot-app-kit * remove unused code * remove unecessary `AssetQuery` type, which collides with other types * make test runner fail if uncommited changes present
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.
The approach looks good, few small suggestions.
], | ||
plugins: [typescript({ tsconfig: './tsconfig.json' })], | ||
}, | ||
{ |
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.
yay rollup
@@ -3,7 +3,7 @@ import { sitewiseSdk } from './iotsitewise/time-series-data/sitewise-sdk'; | |||
import { SiteWiseAssetDataSource } from './data-module/types'; | |||
import { createSiteWiseAssetDataSource } from './iotsitewise/time-series-data/asset-data-source'; | |||
import { SiteWiseAssetModule } from './asset-modules'; | |||
import { IoTAppKitInitInputs, IoTAppKitComponentSession } from './interface.d'; | |||
import { IoTAppKitInitInputs, IoTAppKitComponentSession } from './index'; |
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.
this could just be '.'
@@ -1015,4 +1021,6 @@ it('requests buffered data', async () => { | |||
propertyId: query.assets[0].properties[0].propertyId, | |||
}) | |||
); | |||
|
|||
unsubscribe(); |
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.
Nice cleanup!
"description": "React specific wrapper for IoT Application Kit", | ||
"author": { | ||
"name": "Amazon Web Services", | ||
"url": "https://aws.amazon.com/" |
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.
Is this standard? Should we be linking to AWS or can we link to SiteWise?
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.
grabbed this from other repos
@@ -0,0 +1,106 @@ | |||
import React, { createElement } from 'react'; |
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.
Can we leave a comment to the source at the top of file so it's clear we didn't write it? I assume we pulled this from somewhere like https://github.com/ionic-team/stencil-ds-output-targets/blob/main/packages/react-output-target/react-component-lib/createComponent.tsx.
@@ -0,0 +1,142 @@ | |||
import React from 'react'; |
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.
Same comment wrt. documentation for this file
@@ -0,0 +1,114 @@ | |||
import { camelToDashCase } from './case'; |
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.
Documentation of source
…lign with UX (#57) Co-authored-by: Mitchell Lee <mitchlee@amazon.com>
* move core build files away from stencil config into package.json to prepare moving away from stencil to build core * fix various typing issues in iot-app-kit * remove unused code * remove unecessary `AssetQuery` type, which collides with other types * make test runner fail if uncommited changes present
Overview
prepare moving away from stencil to build core
AssetQuery
type, which collides with other types.Legal
This project is available under the Apache 2.0 License.