Skip to content

Commit

Permalink
v2.0 | Shorky
Browse files Browse the repository at this point in the history
Merge pull request #5 from iTzSharkSV/v2.0
  • Loading branch information
iTzSharkSV authored Jan 2, 2022
2 parents 199b1c3 + 4fed481 commit 06cc2e0
Show file tree
Hide file tree
Showing 75 changed files with 1,726 additions and 878 deletions.
25 changes: 25 additions & 0 deletions .eslintrc
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
}
}
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/BUG_REPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ If applicable, add screenshots to help explain your problem.
**Additional information (please complete the following information):**

- OS: [e.g. Mac High Sierra, Ubuntu 18.04, Windows 10]
- rVersion [e.g. Hyper 1.0.1]
- Version [e.g. Hyper 1.0.1]

**Additional context**
Add any other context about the problem here.
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
registry-url: https://registry.npmjs.org
- run: yarn install
- run: yarn build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
56 changes: 4 additions & 52 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,28 +1,6 @@
# NPM #
##########
# Ignore all directories called node_modules in current folder and any subfolders.
node_modules/
/node_modules/

# Packages #
############
*.7z
*.dmg
*.gz
*.bz2
*.iso
*.jar
*.rar
*.tar
*.zip
*.tgz
*.map

# Logs and databases #
######################
*.log
*.sql
*.env
node_modules

# OS generated files #
######################
Expand All @@ -37,36 +15,10 @@ Thumbs.db
######################
*.un~

# SASS #
##########
**/.sass-cache
**/.sass-cache/*
**/.map

# Composer #
##########
!assets/js/vendor/
wpcs/
/vendor/

# Bower #
##########
assets/bower_components/*

# Codekit #
##########
/codekit-config.json
*.codekit
**.codekit-cache/*

# Compiled Files and Build Dirs #
##########
/README.html

# PhpStrom Project Files #
.idea/
library/vendors/composer
assets/img/.DS_Store
Build

# VSCode related files #
# .vscode
##########
.vscode
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"printWidth": 80,
"useTabs": true,
"tabWidth": 4,
"semi": true
"semi": false
}
10 changes: 10 additions & 0 deletions Bin/Hyper
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')
30 changes: 0 additions & 30 deletions Bin/index.js

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2021 SharkSV
Copyright (c) 2021-Present Shorky

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
59 changes: 59 additions & 0 deletions Lib/Args.ts
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
})
42 changes: 0 additions & 42 deletions Lib/Cli.js

This file was deleted.

22 changes: 22 additions & 0 deletions Lib/Cli.ts
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()
})()
19 changes: 0 additions & 19 deletions Lib/Info.js

This file was deleted.

Loading

0 comments on commit 06cc2e0

Please sign in to comment.