-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
75 changed files
with
1,726 additions
and
878 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 12, | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["@typescript-eslint"], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier" | ||
], | ||
"rules": { | ||
"@typescript-eslint/consistent-type-definitions": [ | ||
"error", | ||
"interface" | ||
], | ||
"@typescript-eslint/no-inferrable-types": "off" | ||
}, | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
"printWidth": 80, | ||
"useTabs": true, | ||
"tabWidth": 4, | ||
"semi": true | ||
"semi": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env node | ||
|
||
/** | ||
* Hyper | ||
* A Cli to bootstrap new projects! | ||
* | ||
* @author SharkSV <https://github.com/iTzSharkSV> | ||
*/ | ||
|
||
require('../Build/Cli') |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import meow from 'meow' | ||
import { Clrs } from './Utils/Clrs' | ||
const { | ||
Dim, | ||
gray, | ||
cyan, | ||
green, | ||
yellow, | ||
blueInverse, | ||
greenInverse, | ||
yellowInverse | ||
} = Clrs | ||
|
||
const helpTxt = ` | ||
${greenInverse(` USAGE `)}\n | ||
${gray('$')} ${green('hyper')} ${cyan('<commands>')} ${yellow('[options]')} | ||
${blueInverse(` COMMANDS `)}\n | ||
${cyan('help')} ${Dim('Print help info')} | ||
${cyan('init')} ${Dim('Initialize a new project')} | ||
${yellowInverse(` OPTIONS `)}\n | ||
${yellow('-c, --clear')} ${Dim('Clear terminal')} | ||
${yellow('-v, --version')} ${Dim('Print version')} | ||
${yellow('-y, --install')} ${Dim('Install dependencies')} | ||
${yellow('-r, --rainbow')} ${Dim('I wonder🏳️🌈')} | ||
` | ||
export const Args = meow(helpTxt, { | ||
flags: { | ||
clear: { | ||
type: 'boolean', | ||
default: true, | ||
alias: 'c', | ||
description: 'Clear terminal' | ||
}, | ||
version: { | ||
type: 'boolean', | ||
default: false, | ||
alias: 'v', | ||
description: 'Print version' | ||
}, | ||
install: { | ||
type: 'boolean', | ||
default: false, | ||
alias: 'i', | ||
description: 'Install dependencies' | ||
}, | ||
rainbow: { | ||
type: 'boolean', | ||
default: false, | ||
alias: 'r', | ||
description: 'I wonder🏳️🌈' | ||
} | ||
}, | ||
inferType: true, | ||
description: false, | ||
hardRejection: false | ||
}) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Info } from './Modules/Info' | ||
import { Args } from './Args' | ||
import { Init } from './Init/cProject' | ||
|
||
// prettier-ignore | ||
(async (): Promise<void> => { | ||
Info({ | ||
title: 'Hyper', | ||
tagLine: 'by Shorky', | ||
description: 'A CLI to bootstrap new projects!', | ||
version: '2.0', | ||
bgColor: '#36BB09', | ||
bold: false, | ||
clear: true | ||
}) | ||
|
||
const input: string[] = Args.input | ||
|
||
// Cmds | ||
input.includes('help') && Args.showHelp(0) | ||
input.includes('init') && Init() | ||
})() |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.