https://github.com/gjsify/cli
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gjsify/cli
- Owner: gjsify
- License: mit
- Created: 2020-02-19T08:28:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T15:13:34.000Z (over 3 years ago)
- Last Synced: 2025-06-16T19:08:06.419Z (about 1 year ago)
- Language: TypeScript
- Size: 1.46 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
@gjsify/cli
===========
Command line tool for gjsify
[](https://oclif.io)
[](https://npmjs.org/package/@gjsify/cli)
[](https://npmjs.org/package/@gjsify/cli)
[](https://github.com/gjsify/cli/blob/master/package.json)
* [Usage](#usage)
* [Commands](#commands)
* [CommonJS compatibility](#commonjs-compatibility)
# Usage
```sh-session
$ npm install -g @gjsify/cli
$ gjsify COMMAND
running command...
$ gjsify (-v|--version|version)
@gjsify/cli/0.0.1-b linux-x64 node-v12.14.1
$ gjsify --help [COMMAND]
USAGE
$ gjsify COMMAND
...
```
# Commands
* [`gjsify build [FILE]`](#gjsify-build-file)
* [`gjsify help [COMMAND]`](#gjsify-help-command)
## `gjsify build [FILE]`
describe the command here
```
USAGE
$ gjsify build [FILE]
OPTIONS
-b, --beautify Beautify build output
-h, --help show CLI help
-m, --minimize Minimize build output
-o, --outputFilename=outputFilename [default: index.js] File name of the output bundle
-p, --outputPath=outputPath [default: ./dist] Output destination path
--mangle Mangle build output
EXAMPLE
$ gjsify build ./src/hello.ts
```
_See code: [src/commands/build.ts](https://github.com/gjsify/cli/blob/v0.0.1-b/src/commands/build.ts)_
## `gjsify help [COMMAND]`
display help for gjsify
```
USAGE
$ gjsify help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
```
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v2.2.3/src/commands/help.ts)_
# CommonJS compatibility
Many [npm](https://www.npmjs.com/) modules that don't do IO will just work after being browserified. Others take more work.
When you require() any of these modules, you will get a gjs-specific shim: