Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

⚡️ Modernize #46

Merged
merged 50 commits into from
Oct 8, 2019
Merged

⚡️ Modernize #46

merged 50 commits into from
Oct 8, 2019

Conversation

nettofarah
Copy link
Contributor

@nettofarah nettofarah commented Oct 7, 2019

What this PR does

  • Migrate main codebase to TypeScript
  • Update dependencies
  • Migrate tests from ava to jest
  • Update demos
  • Upgrade Storybook
  • Publish type definitions
  • Move from xo to eslint
  • Remove dependency on Babel
  • Migrate from inferno to preact (so we can get support for hooks)

Highlights ⚡️

  • Demos now include source code: https://segmentio.github.io/consent-manager/
    image

  • Bundle size reduction from 58k to 44k for the standalone script tag

  • Type definitions and type safe code

  • Replaces Inferno with Preact, which will allow for us to use more modern features of react

@nettofarah nettofarah added the WIP label Oct 7, 2019
tsconfig.json Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/types.ts Outdated Show resolved Hide resolved
webpack.config.js Outdated Show resolved Hide resolved
Copy link

@mshwery mshwery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@nettofarah nettofarah changed the title [WIP] ⚡️ Modernize ⚡️ Modernize Oct 8, 2019
@nettofarah nettofarah merged commit cb0514e into master Oct 8, 2019
@nettofarah nettofarah deleted the typescript branch October 8, 2019 19:32
@nettofarah nettofarah restored the typescript branch October 8, 2019 19:32
@nettofarah nettofarah deleted the typescript branch October 8, 2019 19:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants