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

✨ Add microbundle build for umd #159

Merged
merged 13 commits into from
Aug 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
lib
dist
typedoc
docusaurus

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules
lib
dist
coverage

# typedoc accidental html output
Expand Down
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
. "$(dirname "$0")/_/husky.sh"

npm run build:readme
git add readme.md
npx lint-staged
npm run pre-commit
npm run size
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
lib
dist
coverage
docusaurus/build
.docusaurus
Expand Down
9 changes: 9 additions & 0 deletions markdown.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const {
functionsMarkdown,
providerMarkdown,
} = require('./scripts/markdown-magic/parse-typedoc');

module.exports = {
transforms: {
FUNCTIONS(content, options) {
Expand All @@ -10,6 +11,14 @@ module.exports = {
PROVIDER() {
return providerMarkdown;
},
UNPKG_SCRIPT_TAG() {
return `
\`\`\`html
<!-- index.html -->
<script src="https://unpkg.com/essential-eth@${process.env.npm_package_version}"></script>
\`\`\`
`;
},
},
callback: function () {
console.log('✨ Markdown magic done');
Expand Down
Loading