@77io/sh-script-builder

This cli utility builds a sh project directory into a .tar file.

Usage no npm install needed!

<script type="module">
  import 77ioShScriptBuilder from 'https://cdn.skypack.dev/@77io/sh-script-builder';
</script>

README

sh-script-builder

This cli utility builds a sh project directory into a .tar file.

Install this globally by running

$ npm install -g @77io/sh-script-builder

Project structure

Setup your project in the following way for this utility to work correctly

  • project-name
    • index.sh <- entry point for script. invoke modules here
    • modules <- put all modules here
      • {name}.sh
      • ...
    • assets <- put all required assets here

tar structure

  • project-name.tar
    • index.sh <- entry point for the script
    • assets <- holds all required assets for the script

Invoking the script

$ sh-script-build /path/to/your/project outputName.tgz