-
Notifications
You must be signed in to change notification settings - Fork 83
build: Introduce TypeScript into optimizely-sdk build #504
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
Conversation
… generation. These are to fix UMD build
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.
lgtm, though the browser tests are failing: https://travis-ci.org/github/optimizely/javascript-sdk/jobs/699104903
Oops, looks like I will have to address the Karma tests in this PR. |
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.
Did another pass, still lgtm
"sinon": "^2.3.1", | ||
"ts-node": "^8.10.2", | ||
"typescript": "^3.3.3333", |
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 looks wrong. Is this intentional?
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.
All the SDK packages are using this version right now - I figured we should keep them all on the same version and upgrade in sync.
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.
But 3.3.3333
doesnt appear to be a valid release for this package.
Oops, I was wrong. https://github.com/microsoft/TypeScript/releases/tag/v3.3.3333
Still a strange version to pick, but it is in fact valid.
Summary: Convert event_tags_validator module from JS to TS Revise user_profile_service_validator module Test plan: Existing unit tests
… to TS (#524) * Convert project_config_schema and json_schema_validator modules to TS * Address Mike's comments * Update validate function to accept empty object
Summary: Convert attributes_validator module from JS to TS. Test plan: Existing unit tests
* Convert event_tag_utils module to TS * Convert event_tag_utils module to TS * Add type guard to avoid using any * Move 'if (eventTags)' to top level functions * Move let variables to inside the functions
Summary
Add TypeScript into the build for optimizely-sdk. The goal is to enable future development with TS and incremental conversion of modules from JS to TS.
string_value_validator
and several other smaller modules as examples and litmus tests of the build changesTest plan