You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
build: Introduce TypeScript into optimizely-sdk build (#504)
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.
- Uses the same TS version as subpackages (datafile-manager, event-processor, etc.)
- Uses rollup-plugin-typescript2 to add TS compilation step to rollup build
- tsconfig.json for optimizely-sdk is based on the share root tsconfig.json, with appropriate overrides
- Lint implementation is updated for TS compatibility, based on React SDK's
- Mocha test suite is updated for TS compatibility: types installed, command updated to use ts-node, based on official - Mocha TS example
- Configuration for Karma-based tests is updated to use ts-loader
- Converted string_value_validator and several other smaller modules as examples and litmus tests of the build changes
Test plan:
Manual testing using local build and linked Node app
Existing tests must pass - there are no intended functional changes
Inspected and compared build output from master branch, and this branch
Co-authored-by: Polina Nguen <43302774+yavorona@users.noreply.github.com>
0 commit comments