Extend documentation for bundle files
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 55/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- javascript, python, rollup
- Domain
- documentation
Research direction
Edit integration_javascript.rst in the "Mixed Examples" section. Review the supplied Rollup command-line and Makefile examples, add them with valid reStructuredText formatting, and check that the documentation clearly shows both post-processing approaches.
Written by the indexing model from the issue text.
Description
Hello Jacques,
please add this small example of using another JS bundler as a additional post-processing step to the "Mixed Examples" section inintegration_javascript.rst.
Example: Using a Javascript bundler in post-processing
Besides the complete integration of a JS bundler into the development chain, it can be easier for small projects to
use an external bundler in a post-processing step.
Example: Call from commandline
# rollup --format=umd --name MyProject --file=MyProject.js -- __target__/MyProject.js
__target__/MyProject.js → MyProject.js...
(!) Circular dependency
__target__/re.js -> __target__/re.translate.js -> __target__/re.js
created MyProject.js in 612ms
Example: Integration in a Makefile
Example Makefile rule:
# tail Makefile
# Compile Python to JavaScript
build:
transcrypt --build --map --nomin -e 6 MyProject.py
rollup --format=umd --name MyProject --file=MyProject.js -- __target__/MyProject.js
Calling the Makefile rule:
# make build
transcrypt --build --map --nomin -e 6 MyProject.py
Transcrypt (TM) Python to JavaScript Small Sane Subset Transpiler Version 3.7.16
Copyright (C) Geatec Engineering. License: Apache 2.0
Saving target code in: /home/user/MyProject/__target__/org.transcrypt.__runtime__.js
Saving target code in: /home/user/MyProject/__target__/re.translate.js
Saving target code in: /home/user/MyProject/__target__/re.js
Saving target code in: /home/user/MyProject/__target__/MyProject.js
Ready
rollup --format=umd --name MyProject --file=MyProject.js -- __target__/MyProject.js
__target__/MyProject.js → MyProject.js...
(!) Circular dependency
__target__/re.js -> __target__/re.translate.js -> __target__/re.js
created MyProject.js in 509ms
Kind regards,
Carsten
- Dominant language
- Python
- Stars
- 2.9k
- Forks
- 218
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from TranscryptOrg/Transcrypt
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
TranscryptOrg/Transcrypt#913 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
TranscryptOrg/Transcrypt#911 · 2 comments ·
-
IS: bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
TranscryptOrg/Transcrypt#908 ·
-
SUB: documentation
Difficulty 1/5 Under an hour Newbie friendliness 62/100
TranscryptOrg/Transcrypt#656 · 7 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 76/100
TranscryptOrg/Transcrypt#914 ·
All issues in TranscryptOrg/Transcrypt
Similar issues
-
area/auth bug comp/agent P3 platform/discord type/security
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NousResearch/hermes-agent#117848 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100