This repository was archived by the owner on Jul 28, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcli.html
More file actions
10 lines (10 loc) · 10.8 KB
/
Copy pathcli.html
File metadata and controls
10 lines (10 loc) · 10.8 KB
1
2
3
4
5
6
7
8
9
10
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/><link rel="icon" href="./assets/favicon.ico"/>
<title>denopack - CLI</title>
<link rel="stylesheet" type="text/css" href="./assets/base.css">
<style id="__otion">._ytub2u{z-index:99}._807wit:hover{color:black}._1buzkqa{padding:0 2px}._4zleql{display:block}._1l5zf79{padding:.5rem}._1d3w5wq{width:100%}._zjik7{display:flex}._aprwn3{padding:3rem 1.5rem}._94ihxw{color:#4A5568}._1e0dqk7{color:black}._1lowl8d{transition:all 0.3s}._eivff4{display:none}._1w3u37q:checked ~ #sidebarMenu{transform:translateX(0)}._1ydxwe3:checked ~ .sidebarIconToggle > .horizontal{opacity:0}._ur8j5:checked ~ .sidebarIconToggle > .diagonalPart1{transform:rotate(135deg)}._1q5b4t8:checked ~ .sidebarIconToggle > .diagonalPart2{transform:rotate(-135deg)}._e0dnmk{cursor:pointer}._a4hmbt{position:absolute}._w3f7al{height:22px}._1ss48qs{width:22px}._1jmqceu{height:3px}._bjn8wh{position:relative}._g0dsyy{float:left}._13udsys{height:100%}._duudsh{position:fixed}._lcsd53{width:100vw}._tdz1kj{transform:translateX(100vw)}._19sgybq{transition:transform 250ms ease-in-out}._p13mol{height:4rem}._17zhf76{padding:0 1.5rem}._eqm5u9 svg{height:1.5rem}._c9cn88 svg{width:1.5rem}._x5mxas svg{fill:#4A5568}._1bci0uu svg{color:#4A5568}._1kfgws0 svg:hover{fill:black}._lmcyus svg:hover{color:black}._7gprpd{margin:3rem auto 0}._y1f223{margin:auto}._cfjpzu{margin:0px}._fy2wum{width:50vw}._1b2rrds{width:66vw}._1afkh2g{color:#2C7A7B}@media(min-width:1000px){._x1nlrm{display:block}}@media(min-width:1000px){._4s9wtp{display:none}}@media(min-width:1000px){._rvo6ii{width:300px}}@media(min-width:1000px){._183zpqq{display:flex}}._149tmb0{margin-bottom:5rem}._1n7r223{font-family:monospace}._e5fju0{background-color:#E2E8F0}._1c5db6i{font-size:1.15rem}._198h3gx{line-height:1.65rem}._1j3zebv{overflow-x:auto}._1bmnxg7{white-space:nowrap}._18uqayh{margin-bottom:16px}._1h3rtzg{align-items:center}._179gfi6{justify-contental:center}._1azakc{text-align:center}._qdeacm{flex-direction:column}._1emzjj9{background-color:#EDF2F7}._1dw7ik1{line-height:1.5rem}._z0lel4{font-size:2.125rem}._aaucdt{line-height:2.75rem}._1k2w1pl{font-family:'Rubik', sans-serif}._1cl3eug{font-size:1.33rem}._g65o95{text-decoration:none}._1khn195{box-sizing:border-box}._1kgxqew:checked ~ .sidebarIconToggle > .diagonalPart1{margin-top:8px}._1259tg6:checked ~ .sidebarIconToggle > .diagonalPart2{margin-top:-9px}._15k65i6{top:22px}._q32lrc{right:1rem}._yd1til{background-color:#4A5568}._6sug3x{margin-top:3px}._1qesdsb{background-color:white}._1r7zgyr{top:0px}._uoytoy{right:0px}._iyyzlo{margin-top:4rem}._11g6mpt{justify-content:flex-start}._m64ku3{padding-top:3rem}._umwchj{overflow-y:auto}._2o6p8u{justify-content:space-between}._1lcbfv5{font-size:1.75rem}._f7ay7b{justify-content:center}._akdqam{margin-top:1rem}._1v0pok0{min-width:300px}._c0o9fp{padding-left:16px}@media(min-width:1000px){._ykde49{font-size:1.15rem}}@media(min-width:1000px){._1ic7dyx{margin-bottom:8px}}@media(min-width:1000px){._1cyxazt{min-width:300px}}@media(min-width:1000px){._1wvngwk{max-width:300px}}@media(min-width:1000px){._16ts2y2{flex-direction:column}}@media(min-width:1000px){._rjy6ps{justify-content:flex-start}}@media(min-width:1000px){._19psut8{padding-top:3rem}}@media(min-width:1000px){._ek0kq1{margin-right:1rem}}@media(min-width:1000px){._gvx3x0{overflow-y:auto}}._1oke7h3{border-bottom:1px solid #E2E8F0}</style>
</head>
<body><header class="_p13mol _1d3w5wq _zjik7 _1h3rtzg _2o6p8u _17zhf76 _1emzjj9"><a href="./index.html" class="_1k2w1pl _1lcbfv5 _94ihxw _g65o95 _807wit">🦕📦 denopack</a><a class="_eqm5u9 _c9cn88 _x5mxas _1bci0uu _1kfgws0 _lmcyus _eivff4 _x1nlrm" href="https://github.com/denofn/denopack" aria-label="denopack on GitHub" rel="noopener noreferrer" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 16" fill="none"><g clip-path="url(githublogo)"><path fill="currentColor" fill-rule="evenodd" d="M8.18391.249268C3.82241.249268.253906 3.81777.253906 8.17927c0 3.46933 2.279874 6.44313 5.451874 7.53353.3965.0991.49563-.1983.49563-.3965v-1.3878c-2.18075.4956-2.67638-.9912-2.67638-.9912-.3965-.8922-.89212-1.1895-.89212-1.1895-.69388-.4957.09912-.4957.09912-.4957.793.0992 1.1895.793 1.1895.793.69388 1.2887 1.88338.8922 2.27988.6939.09912-.4956.29737-.8921.49562-1.0904-1.78425-.1982-3.5685-.8921-3.5685-3.96496 0-.89212.29738-1.586.793-2.08162-.09912-.19825-.3965-.99125.09913-2.08163 0 0 .69387-.19825 2.18075.793.59475-.19825 1.28862-.29737 1.9825-.29737.69387 0 1.38775.09912 1.98249.29737 1.4869-.99125 2.1808-.793 2.1808-.793.3965 1.09038.1982 1.88338.0991 2.08163.4956.59475.793 1.28862.793 2.08162 0 3.07286-1.8834 3.66766-3.66764 3.86586.29737.3965.59474.8921.59474 1.586v2.1808c0 .1982.0991.4956.5948.3965 3.172-1.0904 5.4518-4.0642 5.4518-7.53353-.0991-4.3615-3.6676-7.930002-8.02909-7.930002z" clip-rule="evenodd"></path></g><defs><clipPath id="githublogo"><path fill="transparent" d="M0 0h15.86v15.86H0z" transform="translate(.253906 .0493164)"></path></clipPath></defs></svg></a><div class="_4zleql _4s9wtp"><input type="checkbox" class="_1lowl8d _1khn195 _eivff4 _1w3u37q _1ydxwe3 _ur8j5 _1kgxqew _1q5b4t8 _1259tg6" id="openSidebarMenu"/><label for="openSidebarMenu" class="_1lowl8d _1khn195 _e0dnmk _a4hmbt _ytub2u _15k65i6 _q32lrc _w3f7al _1ss48qs sidebarIconToggle"><div class="_1lowl8d _1khn195 _a4hmbt _1jmqceu _1d3w5wq _yd1til _bjn8wh _g0dsyy diagonalPart1"></div><div class="_1lowl8d _1khn195 _a4hmbt _1jmqceu _1d3w5wq _yd1til _bjn8wh _g0dsyy _6sug3x horizontal"></div><div class="_1lowl8d _1khn195 _a4hmbt _1jmqceu _1d3w5wq _yd1til _bjn8wh _g0dsyy _6sug3x diagonalPart2"></div></label><div id="sidebarMenu" class="_1qesdsb _13udsys _duudsh _1r7zgyr _uoytoy _lcsd53 _iyyzlo _tdz1kj _19sgybq _zjik7 _qdeacm _1h3rtzg _11g6mpt _m64ku3 _umwchj"><a href="./index.html" class="_1k2w1pl _1cl3eug _94ihxw _g65o95 _18uqayh _807wit _ykde49 _1ic7dyx">Home</a><a class="_1k2w1pl _1cl3eug _94ihxw _g65o95 _18uqayh _807wit _ykde49 _1ic7dyx _1e0dqk7">CLI</a><a href="./scriptRunners.html" class="_1k2w1pl _1cl3eug _94ihxw _g65o95 _18uqayh _807wit _ykde49 _1ic7dyx">Script runners</a><a href="./plugins.html" class="_1k2w1pl _1cl3eug _94ihxw _g65o95 _18uqayh _807wit _ykde49 _1ic7dyx">Plugins</a><a class="_eqm5u9 _c9cn88 _x5mxas _1bci0uu _1kfgws0 _lmcyus" href="https://github.com/denofn/denopack" aria-label="denopack on GitHub" rel="noopener noreferrer" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 16" fill="none"><g clip-path="url(githublogo)"><path fill="currentColor" fill-rule="evenodd" d="M8.18391.249268C3.82241.249268.253906 3.81777.253906 8.17927c0 3.46933 2.279874 6.44313 5.451874 7.53353.3965.0991.49563-.1983.49563-.3965v-1.3878c-2.18075.4956-2.67638-.9912-2.67638-.9912-.3965-.8922-.89212-1.1895-.89212-1.1895-.69388-.4957.09912-.4957.09912-.4957.793.0992 1.1895.793 1.1895.793.69388 1.2887 1.88338.8922 2.27988.6939.09912-.4956.29737-.8921.49562-1.0904-1.78425-.1982-3.5685-.8921-3.5685-3.96496 0-.89212.29738-1.586.793-2.08162-.09912-.19825-.3965-.99125.09913-2.08163 0 0 .69387-.19825 2.18075.793.59475-.19825 1.28862-.29737 1.9825-.29737.69387 0 1.38775.09912 1.98249.29737 1.4869-.99125 2.1808-.793 2.1808-.793.3965 1.09038.1982 1.88338.0991 2.08163.4956.59475.793 1.28862.793 2.08162 0 3.07286-1.8834 3.66766-3.66764 3.86586.29737.3965.59474.8921.59474 1.586v2.1808c0 .1982.0991.4956.5948.3965 3.172-1.0904 5.4518-4.0642 5.4518-7.53353-.0991-4.3615-3.6676-7.930002-8.02909-7.930002z" clip-rule="evenodd"></path></g><defs><clipPath id="githublogo"><path fill="transparent" d="M0 0h15.86v15.86H0z" transform="translate(.253906 .0493164)"></path></clipPath></defs></svg></a></div></div></header><div class="_zjik7 _y1f223 _f7ay7b"><div class="_eivff4 _rvo6ii _1cyxazt _1wvngwk _183zpqq _16ts2y2 _rjy6ps _19psut8 _ek0kq1 _gvx3x0"><a href="./index.html" class="_1k2w1pl _1cl3eug _94ihxw _g65o95 _18uqayh _807wit _ykde49 _1ic7dyx">Home</a><a class="_1k2w1pl _1cl3eug _94ihxw _g65o95 _18uqayh _807wit _ykde49 _1ic7dyx _1e0dqk7">CLI</a><a href="./scriptRunners.html" class="_1k2w1pl _1cl3eug _94ihxw _g65o95 _18uqayh _807wit _ykde49 _1ic7dyx">Script runners</a><a href="./plugins.html" class="_1k2w1pl _1cl3eug _94ihxw _g65o95 _18uqayh _807wit _ykde49 _1ic7dyx">Plugins</a></div><div class=""><section class="_7gprpd _1d3w5wq _1v0pok0 _1b2rrds"><h2>CLI</h2><h4>Usage</h4><p>The following flags are available:<ul><li><span class="_1n7r223 _e5fju0 _1buzkqa">-i/--input <pathToFile></span>: the input file (in most cases mod.ts)</li><li><span class="_1n7r223 _e5fju0 _1buzkqa">-o/--output <pathToFile></span>: the output file name</li><li><span class="_1n7r223 _e5fju0 _1buzkqa">-d/--dir <pathToDir></span>: the output directory. Setting this is needed for code splitting and always takes precedence over <span class="_1n7r223 _e5fju0 _1buzkqa">-o</span></li><li><span class="_1n7r223 _e5fju0 _1buzkqa">-c/--config <pathToConfig></span>: the config file. Use <span class="_1n7r223 _e5fju0 _1buzkqa">--defaultConfig</span> to see the default values.</li><li><span class="_1n7r223 _e5fju0 _1buzkqa">--cache <cacheLocation></span>: location to persist build cache</li><li><span class="_1n7r223 _e5fju0 _1buzkqa">--watch <dirOrFile></span>: watch a file or directory and rebuild on changes</li><li><span class="_1n7r223 _e5fju0 _1buzkqa">--defaultConfig</span>: prints the default config to stdout</li><li><span class="_1n7r223 _e5fju0 _1buzkqa">--print</span>: prints the generated bundle to stdout</li><li><span class="_1n7r223 _e5fju0 _1buzkqa">-v/--version</span>: display version number</li><li><span class="_1n7r223 _e5fju0 _1buzkqa">-h/--help</span>: display the CLI help message</li></ul></p><h4>Permissions</h4><p><strong>NOTE: both denopack and its plugins use unstable Deno APIs. These APIs are not final and may break, but this does mean <span class="_1n7r223 _e5fju0 _1buzkqa">--unstable</span> is mandatory!</strong></p><p>The CLI itself can run with a base permission of <span class="_1n7r223 _e5fju0 _1buzkqa">--allow-read</span>, printing to stdout with the <span class="_1n7r223 _e5fju0 _1buzkqa">-p</span> flag. Writing to file naturally requires <span class="_1n7r223 _e5fju0 _1buzkqa">--allow-write</span>.<br/>Additionally, the various built-in plugins can require extra permissions like <span class="_1n7r223 _e5fju0 _1buzkqa">--allow-net</span> and <span class="_1n7r223 _e5fju0 _1buzkqa">--allow-env</span>. More info can be found <a href="https://github.com/denofn/denopack/blob/main/plugin" target="_blank" class="_94ihxw _g65o95 _807wit">in the plugin folder on Github</a>.</p><h4>Config file</h4><p>Importing a <a href="https://rollupjs.org/guide/en/#configuration-files" target="_blank" class="_94ihxw _g65o95 _807wit">Rollup config file</a> is supported using the <span class="_1n7r223 _e5fju0 _1buzkqa">-c <path/to/config></span> flag and follow the same conventions as Rollup:<ul><li>use default export for your config</li><li>ideally call it rollup.config.ts or denopack.config.ts</li></ul></p></section><div class="_149tmb0"></div></div></div></body>
</html>