Skip to content
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

Implement rollup & .d.ts generator #1372

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Conversation

leonardssh
Copy link
Member

Description

This PR implements rollup bundling and .d.ts generator using @microsoft/api-extractor.

Related Issue

#1371

Motivation and Context

How Has This Been Tested?

Types of changes

  • Updated docs / Refactor code / Added a tests case (non-breaking change)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the changelog.

@leonardssh leonardssh linked an issue Aug 25, 2021 that may be closed by this pull request
2 tasks
@leonardssh
Copy link
Member Author

Apparently, it's not as easy as I'd hoped, there's a bit more work to do on the testing side. 😅

"types": ["mocha", "reflect-metadata"],
"moduleResolution": "node",
"sourceMap": true,
"jsx": "react",
Copy link
Member

Choose a reason for hiding this comment

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

do we need this ?

@@ -0,0 +1,3 @@
(async () => {
Copy link
Member

Choose a reason for hiding this comment

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

clean-dist and remove-dist could be done using rm -rf dist/ i assume
no need to import packages for that.

}
},
treeshake: {
moduleSideEffects: false
Copy link
Member

Choose a reason for hiding this comment

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

should this not be true ?

"sinon": "9.2.4",
"ts-node": "9.1.1",
"tsify": "5.0.2",
"tslint": "6.1.3",
"typescript": "4.2.4",
"updates": "12.0.2"
},
"prettier": {
Copy link
Member

Choose a reason for hiding this comment

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

what's up with prettier here ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve Bundling (switch to rollup)
2 participants