iTzSharkSV / Hyper

A CLI to bootstrap new projects! πŸ—οΈ

Home Page:http://npm.im/@sharksv/hyper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yper

A CLI to bootstrap new projects!

Hyper is a CLI that helps U generate an Advanced Project Template in seconds.


Prerequisites

Node.js and npm are required as a peer dependency.

Installing

npm install -g @sharksv/hyper
// or
yarn global add @sharksv/hyper

alternatively:

npx @sharksv/hyper <command> [options]

Compile from source

$ git clone https://github.com/iTzSharkSV/Hyper.git
$ cd Hyper
$ npm install    // install project dependencies
$ npm run build  // compile project
$ npm i -g .     // add as a global variable

Usage/Examples

@example: Help info
$ hyper help
---------------------------------------------------------

Hyper v3.0 by @Shorky
A CLI to bootstrap new projects!

USAGE:
    $ hyper <commands> [options]

COMMANDS:
    help          Prints usage-help info
    init          Initialize a new project
    list          List available templates

OPTIONS:
    -k, --keep           Keep terminal output (off by Default)
    -y, --skip           Generate without prompt
    -i, --install        Install project dependencies
    -v, --version        Prints CLI version (following semver)
@example: Initializing a project
$ hyper init -y
-------------------
// prompt skipped (-y, --skip)
some magic goes here,
& some here...
voila!

The Why?

Why use Hyper-CLI instead of starting-fresh?
-------------------------------------------------------
  - Faster
  - Easier
  - Up-with Community Standards
  - Besides being Well-Put & Organized
Why not just use a template?
------------------------------------

Orignally, starting-fresh or using a template was my-go-2 option, but...
The time wasted looking for a generic, minimalistic yet well-put template
-for every project I wanted to start was a bit too much.
Here aroused the motivation to create `Hyper`.
Hyper is a CLI that helps U bootstrap new projects!

Available Templates

$ hyper list
---------------------------------------------------------
LANGUAGE          Size(kb)     NAME
---------------------------------------------------------
(-)               37.5	       Jumpstart
Ts/Sass           41.0         Static-Web
Typescript        40.1         Node Project
Rust-Lang         38.1         Rust Project
Java              -            Java Project (Coming soon)
---------------------------------------------------------

Sample Project Tree

πŸ“¦ <Node Project>
β”œβ”€ .circleci
β”‚  β””─ config.yml
β”œβ”€ .github
β”‚  β”œβ”€ ISSUE_TEMPLATE
β”‚  β”‚  β”œβ”€ BUG_REPORT.md
β”‚  β”‚  β””─ FEATURE_REQUEST.md
β”‚  β”œβ”€ workflows
β”‚  β”‚  └─ CodeQL.yml
β”‚  β””─ PULL_REQUEST_TEMPLATE.md
β”œβ”€ .husky
β”‚  β””─ pre-commit
β”œβ”€ Docs
β”‚  β”œβ”€ CODE_OF_CONDUCT.md
β”‚  β”œβ”€ CONTRIBUTING.md
β”‚  β””─ SECURITY.md
β”œβ”€ Src
β”‚  β”œβ”€ Modules
β”‚  β”‚  β”œβ”€ Something.ts
β”‚  β”‚  β””─ Another.ts
β”‚  β””─ index.ts
β”œβ”€ Tests
β”‚  β””─ Unit.test.ts
β”œβ”€ .gitignore
β”œβ”€ .eslintrc    # Available within package.json
β”œβ”€ .prettierrc  # Available within package.json
β”œβ”€ Dockerfile
β”œβ”€ CHANGELOG.md
β”œβ”€ README.md
β”œβ”€ package.json
β”œβ”€ tsconfig.json
└─ LICENSE

License

#
# Copyright 2021 @SharkSV
# License Identifier: MIT
#

About

A CLI to bootstrap new projects! πŸ—οΈ

http://npm.im/@sharksv/hyper

License:MIT License


Languages

Language:TypeScript 84.6%Language:JavaScript 8.1%Language:HTML 3.5%Language:Dockerfile 1.7%Language:Rust 1.6%Language:Shell 0.4%