Extend documentation for bundle files
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 55/100
- Tipo di issue
- Documentazione
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, python, rollup
- Ambito
- documentation
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Python
- Stelle
- 2.9k
- Fork
- 218
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di TranscryptOrg/Transcrypt
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
TranscryptOrg/Transcrypt#913 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
TranscryptOrg/Transcrypt#911 · 2 commenti ·
-
IS: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
TranscryptOrg/Transcrypt#908 ·
-
SUB: documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
TranscryptOrg/Transcrypt#656 · 7 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 76/100
TranscryptOrg/Transcrypt#914 ·
Tutte le issue di TranscryptOrg/Transcrypt
Issue simili
-
link-check link-check:sphinx-theme
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
OpenHands/extensions#626 · 1 commento ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
CSCfi/sd-search-api#39 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100