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: bundling #10
Merged
Merged
feat: bundling #10
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
- pick loader based on `entry.bundle` and/or `entry.format` - https://esbuild.github.io/api/#loader Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
- https://softwaretestinghelp.com/black-box-testing - https://softwaretestinghelp.com/white-box-testing-techniques-with-example Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
- https://softwaretestinghelp.com/grey-box-testing-tutorial - https://softwaretestinghelp.com/white-box-testing-techniques-with-example - https://github.com/funny-bytes/chai-quantifiers Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
- https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-process-exit.md Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
- majorly improves declaration file generation speed Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
- https://esbuild.github.io/api/#outbase Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
- https://esbuild.github.io/api/#entry-names Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
- https://esbuild.github.io/api/#outbase Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
- used to capture first letter before "js" or "ts" in output file extension Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
unicornware
added
scope:node
node.js program
type:task
project tasks
scope:esbuild
esbuild integration
labels
Sep 25, 2022
Closed
24 tasks
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
- https://github.com/microsoft/TypeScript/wiki/Using-the-Compiler-API#getting-the-dts-from-a-javascript-file Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
flexdevelopment
approved these changes
Sep 26, 2022
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 ππΎ
This pull request has been automatically locked since there has not been any recent |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
π¦ Build
typescript@3.7
β¨ Features
Config#bundle?
Config#ext?
Config#format?
Config#source?
Entry#bundle?
Entry#name?
EsbuildOptions
OutputExtension
getCompilerOptions
loaders
π‘ Housekeeping
check:types:build
scriptπ₯ Performance Improvements
β‘ Refactors
loadBuildConfig
search location to'.'
Entry#declaration
optionaldts
] normalize user compiler optionsdts
] respect user compiler optionsesbuilder
] setentryNames
loader
configurationentry.bundle
and/orentry.format
β Testing
write
] separate black box and white box techniquesesbuilder
integration testsTests
yarn test:cov
yarn build
βΉ Building @flex-development/mkbuild 21:16:16 β Build succeeded for @flex-development/mkbuild 21:16:24 dist (total size: 67.3 kB) 21:16:24 ββ dist/index.mjs.map (177 B) ββ dist/index.mjs (288 B) ββ dist/index.d.mts (302 B) ββ dist/make.mjs.map (2.38 kB) ββ dist/make.mjs (3 kB) ββ dist/make.d.mts (744 B) ββ dist/config/constants.mjs.map (466 B) ββ dist/config/constants.mjs (777 B) ββ dist/config/constants.d.mts (1.15 kB) ββ dist/config/define.mjs.map (152 B) ββ dist/config/define.mjs (131 B) ββ dist/config/define.d.mts (385 B) ββ dist/config/load.mjs.map (514 B) ββ dist/config/load.mjs (639 B) ββ dist/config/load.d.mts (632 B) ββ dist/config/loader-es.mjs.map (726 B) ββ dist/config/loader-es.mjs (902 B) ββ dist/config/loader-es.d.mts (600 B) ββ dist/interfaces/config.mjs.map (69 B) ββ dist/interfaces/config.mjs (0 B) ββ dist/interfaces/config.d.mts (2.75 kB) ββ dist/interfaces/entry.mjs.map (69 B) ββ dist/interfaces/entry.mjs (0 B) ββ dist/interfaces/entry.d.mts (1.69 kB) ββ dist/interfaces/index.mjs.map (69 B) ββ dist/interfaces/index.mjs (0 B) ββ dist/interfaces/index.d.mts (340 B) ββ dist/interfaces/result.mjs.map (69 B) ββ dist/interfaces/result.mjs (0 B) ββ dist/interfaces/result.d.mts (1.23 kB) ββ dist/interfaces/source-file.mjs.map (69 B) ββ dist/interfaces/source-file.mjs (0 B) ββ dist/interfaces/source-file.d.mts (605 B) ββ dist/interfaces/statement.mjs.map (69 B) ββ dist/interfaces/statement.mjs (0 B) ββ dist/interfaces/statement.d.mts (686 B) ββ dist/types/esbuild-options.mjs.map (69 B) ββ dist/types/esbuild-options.mjs (0 B) ββ dist/types/esbuild-options.d.mts (468 B) ββ dist/types/index.mjs.map (69 B) ββ dist/types/index.mjs (0 B) ββ dist/types/index.d.mts (279 B) ββ dist/types/output-extension.mjs.map (69 B) ββ dist/types/output-extension.mjs (0 B) ββ dist/types/output-extension.d.mts (247 B) ββ dist/types/output-metadata.mjs.map (69 B) ββ dist/types/output-metadata.mjs (0 B) ββ dist/types/output-metadata.d.mts (267 B) ββ dist/utils/analyze-results.mjs.map (541 B) ββ dist/utils/analyze-results.mjs (575 B) ββ dist/utils/analyze-results.d.mts (577 B) ββ dist/utils/esbuilder.mjs.map (3.23 kB) ββ dist/utils/esbuilder.mjs (4.43 kB) ββ dist/utils/esbuilder.d.mts (736 B) ββ dist/utils/extract-statements.mjs.map (901 B) ββ dist/utils/extract-statements.mjs (1.1 kB) ββ dist/utils/extract-statements.d.mts (704 B) ββ dist/utils/get-compiler-options.mjs.map (2.6 kB) ββ dist/utils/get-compiler-options.mjs (5.36 kB) ββ dist/utils/get-compiler-options.d.mts (677 B) ββ dist/utils/loaders.mjs.map (671 B) ββ dist/utils/loaders.mjs (784 B) ββ dist/utils/loaders.d.mts (577 B) ββ dist/utils/write.mjs.map (282 B) ββ dist/utils/write.mjs (289 B) ββ dist/utils/write.d.mts (567 B) ββ dist/plugins/dts/plugin.mjs.map (2.49 kB) ββ dist/plugins/dts/plugin.mjs (3.93 kB) ββ dist/plugins/dts/plugin.d.mts (265 B) ββ dist/plugins/fully-specified/plugin.mjs.map (2.13 kB) ββ dist/plugins/fully-specified/plugin.mjs (3.32 kB) ββ dist/plugins/fully-specified/plugin.d.mts (1.56 kB) ββ dist/plugins/tsconfig-paths/options.mjs.map (69 B) ββ dist/plugins/tsconfig-paths/options.mjs (0 B) ββ dist/plugins/tsconfig-paths/options.d.mts (1.04 kB) ββ dist/plugins/tsconfig-paths/plugin.mjs.map (1.71 kB) ββ dist/plugins/tsconfig-paths/plugin.mjs (2.49 kB) ββ dist/plugins/tsconfig-paths/plugin.d.mts (507 B) dist (total size: 1.19 MB) 21:16:24 ββ dist/cli.mjs.map (685 kB) ββ dist/cli.mjs (509 kB) Ξ£ Total build size: 1.26 MB 21:16:24
Linked issues
Related documents
Additional context
dts
pluginnoEmitOnError
: users are expected to run type check before buildingdts-bundle-generator
androllup-plugin-dts
were considered for integration, but both libraries have issues that impact developer and/or user experience negativelySubmission checklist