Skip to content

Commit

Permalink
Berry (#11)
Browse files Browse the repository at this point in the history
* v2.3 | Initial

* sFixes & Addons

* reAdded Update-Notifier

* Various Addons & Fixes

* 🎉 Prep for v2.3

* Readded Husky hook
  • Loading branch information
iTzSharkSV authored Feb 4, 2022
1 parent be3a4fe commit 2b66b8f
Show file tree
Hide file tree
Showing 31 changed files with 810 additions and 553 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ Thumbs.db

# Compiled Files and Build Dirs #
##########
Cli
Build
Dist

# VSCode related files #
##########
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion Bin/Hyper
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
* @author SharkSV <https://github.com/iTzSharkSV>
*/

require('../Build/Lib/Cli')
require('../Cli');
99 changes: 99 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# Change Log

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Berry]

### Headline

- Major tweaks to the codebase
- Moved from "ncp" to "fs-extra"
- Hopefully fixed some various bugs

### Added

- A CHANGELOG file :>
- A couple new functions @(commitFiles(), listTemplates())
- reAdded the createLicense() function
- More user prompt questions
- Confirmational prompt (Abort, Overwrite, Change-Dir, Continue)
- "-y, --default" flag for default user selection

### Changes

- Folder structure
- Target template location

## [v2.2.0]

### Added

- Auto-update checking module

### Changes

- Tweaked the Rust template

## [v2.1.0]

### Added

- Added/tweaked new & existing templates

### Changes

- Small tweaks to the codebase
- Updated Docs to be more descriptive
- Fixed some bugs/issues

## [v2.0.0]

### Headline

- Migrated to Typescript
- Major & Minor tweaks to the codebase
- Hopefully optimized startup performance

### Changes

- Switched from 'Javascript' to 'Typescript'

### Removed

- Aloooooot of dependencies

## [v1.2.1]

- Fixed a critical bug

## [v1.2.0]

`Deprecated`

### Added

- Multi-template support
- Automatic module publishing

### Changes

- Minor tweaks to the codebase
- Some code refactoring

## [v1.1.0]

### Added

- New user-info prompt

### Changes

- Folder structure
- Various small bug fixes

## [v1.0.0]

- Initial release
2 changes: 1 addition & 1 deletion Docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ These guidelines will ensure the pull request process is easy and traceable for
### Setting up your environment

1. Fork this repository.
2. Installing dependencies. Check [ReadMe](../README.md) for more info.
2. Setting up dev environment. Check [ReadMe](../README.md) for more info.

### Publishing your change

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2021-Present Shorky
Copyright (c) 2021-Present Shorky <[email protected]>

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
55 changes: 33 additions & 22 deletions Lib/Args.ts
Original file line number Diff line number Diff line change
@@ -1,33 +1,36 @@
import meow from 'meow'
import { Clrs } from './Utils/Clrs'
import * as meow from 'meow';
import Clrs from './Utils/Clrs';

// prettier-ignore
const {
Dim,
dim,
gray,
cyan,
green,
yellow,
blueInverse,
greenInverse,
yellowInverse
} = Clrs
bgCyan,
bgGreen,
bgYellow
} = Clrs;

const helpTxt = `
${greenInverse(` USAGE `)}\n
${gray('$')} ${green('hyper')} ${cyan('<commands>')} ${yellow('[options]')}
${bgGreen(` 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')}
${cyan('ls')} ${Dim('List available templates')}
${bgCyan(` COMMANDS `)}\n
${cyan('help')} ${dim('Print help info')}
${cyan('init')} ${dim('Initialize a new project')}
${cyan('ls')} ${dim('List available templates')}
${yellowInverse(` OPTIONS `)}\n
${yellow('-c, --clear')} ${Dim('Clear terminal (default)')}
${yellow('-v, --version')} ${Dim('Print version')}
${yellow('-y, --install')} ${Dim('Install dependencies')}
${yellow('-r, --rainbow')} ${Dim('I wonder🏳️‍🌈')}
${bgYellow(` OPTIONS `)}\n
${yellow('-c, --clear')} ${dim('Clear terminal')} ${gray('(default)')}
${yellow('-v, --version')} ${dim('Print Cli version')}
${yellow('-y, --default')} ${dim('Roll with default selection')}
${yellow('-i, --install')} ${dim('Install dependencies')}
${yellow('-r, --rainbow')} ${dim('I wonder🏳️‍🌈')}
`;

`
export const Args = meow(helpTxt, {
const Args = meow(helpTxt, {
flags: {
clear: {
type: 'boolean',
Expand All @@ -39,7 +42,13 @@ export const Args = meow(helpTxt, {
type: 'boolean',
default: false,
alias: 'v',
description: 'Print version'
description: 'Print Cli version'
},
default: {
type: 'boolean',
default: false,
alias: 'y',
description: 'Roll with default selection'
},
install: {
type: 'boolean',
Expand All @@ -57,4 +66,6 @@ export const Args = meow(helpTxt, {
inferType: true,
description: false,
hardRejection: false
})
});

export default Args;
28 changes: 0 additions & 28 deletions Lib/Cli.ts

This file was deleted.

87 changes: 0 additions & 87 deletions Lib/Init/Inquire.ts

This file was deleted.

62 changes: 0 additions & 62 deletions Lib/Init/Tasks.ts

This file was deleted.

Loading

0 comments on commit 2b66b8f

Please sign in to comment.