From 3bcad2eaad7b3d23f92dff1c3083622c8af2fc19 Mon Sep 17 00:00:00 2001 From: JianJap <64624408+JianJap@users.noreply.github.com> Date: Sun, 17 May 2020 21:48:33 -0500 Subject: [PATCH] Add files via upload --- .../funny-initial-git-commit-master/LICENSE | 21 ++++++++++++ .../funny-initial-git-commit-master/README.md | 21 ++++++++++++ .../bin/global.js | 4 +++ .../package.json | 32 +++++++++++++++++++ .../src/index.js | 29 +++++++++++++++++ 5 files changed, 107 insertions(+) create mode 100644 funny-initial-git-commit-master/funny-initial-git-commit-master/LICENSE create mode 100644 funny-initial-git-commit-master/funny-initial-git-commit-master/README.md create mode 100644 funny-initial-git-commit-master/funny-initial-git-commit-master/bin/global.js create mode 100644 funny-initial-git-commit-master/funny-initial-git-commit-master/package.json create mode 100644 funny-initial-git-commit-master/funny-initial-git-commit-master/src/index.js diff --git a/funny-initial-git-commit-master/funny-initial-git-commit-master/LICENSE b/funny-initial-git-commit-master/funny-initial-git-commit-master/LICENSE new file mode 100644 index 0000000..2f6d308 --- /dev/null +++ b/funny-initial-git-commit-master/funny-initial-git-commit-master/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 Oscar Barajas Tavares + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/funny-initial-git-commit-master/funny-initial-git-commit-master/README.md b/funny-initial-git-commit-master/funny-initial-git-commit-master/README.md new file mode 100644 index 0000000..a4432ed --- /dev/null +++ b/funny-initial-git-commit-master/funny-initial-git-commit-master/README.md @@ -0,0 +1,21 @@ +# funny-commit + +Whenever I start a new project, I don't know what to write for the first commit. After doing a “git init” there is technically nothing there... + +## Install + +```npm +npm install -g funny-commit +``` + +# Usage + +```bash +funny-commit +``` + +# Contributing +If someone wants to add or improve something, I invite you to collaborate directly in this repository: [funny-commit](https://github.com/gndx/funny-initial-git-commit/) + +# License +funny-commit is released under the [MIT License](https://opensource.org/licenses/MIT). diff --git a/funny-initial-git-commit-master/funny-initial-git-commit-master/bin/global.js b/funny-initial-git-commit-master/funny-initial-git-commit-master/bin/global.js new file mode 100644 index 0000000..a91df9e --- /dev/null +++ b/funny-initial-git-commit-master/funny-initial-git-commit-master/bin/global.js @@ -0,0 +1,4 @@ +#!/usr/bin/env node +let random = require('../src/index.js'); + +random.funnyCommit(); \ No newline at end of file diff --git a/funny-initial-git-commit-master/funny-initial-git-commit-master/package.json b/funny-initial-git-commit-master/funny-initial-git-commit-master/package.json new file mode 100644 index 0000000..cff7396 --- /dev/null +++ b/funny-initial-git-commit-master/funny-initial-git-commit-master/package.json @@ -0,0 +1,32 @@ +{ + "name": "funny-commit", + "version": "1.1.0", + "description": "Funny initial git commit messages", + "main": "./src/index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/gndx/funny-initial-git-commit.git" + }, + "keywords": [ + "javascript", + "npm", + "package", + "module", + "funny", + "commits", + "messages" + ], + "bin": { + "funny-commit": "./bin/global.js" + }, + "preferGlobal": true, + "author": "Oscar Barajas ", + "license": "MIT", + "bugs": { + "url": "https://github.com/gndx/funny-initial-git-commit/issues" + }, + "homepage": "https://github.com/gndx/funny-initial-git-commit#readme" +} diff --git a/funny-initial-git-commit-master/funny-initial-git-commit-master/src/index.js b/funny-initial-git-commit-master/funny-initial-git-commit-master/src/index.js new file mode 100644 index 0000000..402c008 --- /dev/null +++ b/funny-initial-git-commit-master/funny-initial-git-commit-master/src/index.js @@ -0,0 +1,29 @@ +const messages = [ + "in case of fire: git commit, git push and leave building", + "This is where it all begins...", + "Commit committed", + "Version control is awful", + "COMMIT ALL THE FILES!", + "The same thing we do every night, Pinky - try to take over the world!", + "Lock S-foils in attack position", + "This commit is a lie", + "I'll explain when you're older!", + "Here be Dragons", + "Reinventing the wheel. Again.", + "This is not the commit message you are looking for", + "Batman! (this commit has no parents)", + "the greats murmur as learning with this commit", + "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live", + "naruto, The programmer ninja!", + "The covid-19 block my commit", + "I do a PING to his heart and I never received a reply", +]; + +const funnyCommit = () => { + const message = messages[Math.floor(Math.random() * messages.length)]; + console.log(`\x1b[34m${message}\x1b[89m`); +} + +module.exports = { + funnyCommit +}; \ No newline at end of file