docs(common/resources): update gosh.js comment

This commit is contained in:
Eddie Antonio Santos 2020-05-25 08:32:31 -06:00
parent 2127a0ca7f
commit 53d7ce8fdc
No known key found for this signature in database
GPG key ID: DD411EA4D9509D87

View file

@ -7,13 +7,21 @@
on Windows platforms, and execute it within the current console. On *nix environments, it
will simply launch /bin/bash.
Usage: in package.json, define scripts like this:
Usage:
"foo": "node path/to/gosh.js foo.sh ..."
Make sure gosh is installed with lerna, e.g.:
npx lerna add @keymanapp/resources-gosh path/to/your/package
Then, in package.json, define scripts like this:
"scripts": {
"foo": "gosh ./foo.sh ..."
}
For example, in common/core/web/utils/package.json, npm run build is defined as:
"build": "node ../../../../resources/gosh.js build.sh -skip-package-install"
"build": "gosh ./build.sh -skip-package-install"
Windows launch strategy: