diff --git a/deploy.ts b/deploy.ts index 1e9a1e0..9d25cd7 100644 --- a/deploy.ts +++ b/deploy.ts @@ -1,10 +1,11 @@ import { publish } from "gh-pages" import { exec } from "child_process" +import { random } from "random-emoji" const args = process.argv.splice(2) const mFlag = ((args.indexOf("--message") + 1) || (args.indexOf("-m") + 1)) - 1 -const message = (mFlag) ? args[mFlag + 1] : "automated update" +const message = `${random({count: 1})} ${(mFlag) ? args[mFlag + 1] : "automated update"} ${random({count: 1})}` console.log("Deploying..."); diff --git a/package-lock.json b/package-lock.json index 7cfe881..024c063 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1800,6 +1800,12 @@ "integrity": "sha512-kUlSC06PVvvjlMRpNIl3kR1NRXLEe86VQ7N0bQeaCZb2g+InShCeHQp/JvyYNTugMnRN2NvJhHlc3q12MWbbpg==", "dev": true }, + "emoji-named-characters": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/emoji-named-characters/-/emoji-named-characters-1.0.2.tgz", + "integrity": "sha1-zes20OZgAsS5178d+8Ohmft9QJs=", + "dev": true + }, "emojis-list": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-2.1.0.tgz", @@ -4254,6 +4260,12 @@ "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", "dev": true }, + "lodash.shuffle": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/lodash.shuffle/-/lodash.shuffle-4.2.0.tgz", + "integrity": "sha1-FFtQU8+HX29cKjP0i26ZSMbse0s=", + "dev": true + }, "lodash.tail": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/lodash.tail/-/lodash.tail-4.1.1.tgz", @@ -5601,6 +5613,16 @@ "integrity": "sha512-w7fLxIRCRT7U8Qu53jQnJyPkYZIaR4n5151KMfcJlO/A9397Wxb1amJvROTK6TOnp7PfoAmg/qXiNHI+08jRfA==", "dev": true }, + "random-emoji": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/random-emoji/-/random-emoji-1.0.2.tgz", + "integrity": "sha1-V4KYN39WurpF9q1Hl9oaAwMyHow=", + "dev": true, + "requires": { + "emoji-named-characters": "^1.0.2", + "lodash.shuffle": "^4.1.0" + } + }, "randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", diff --git a/package.json b/package.json index 65c0dad..e26a30d 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "html-loader": "^0.5.5", "html-webpack-plugin": "^3.2.0", "node-sass": "^4.11.0", + "random-emoji": "^1.0.2", "sass-loader": "^7.1.0", "source-map-loader": "^0.2.4", "style-loader": "^0.23.1", diff --git a/tsconfig.json b/tsconfig.json index cac08af..d8ed2f7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,7 +22,8 @@ "esModuleInterop": true }, "include": [ - "src/**/*.ts" + "src/**/*.ts", + "deploy.ts" ], "exclude": [ "node_modules" diff --git a/types/random-emoji.d.ts b/types/random-emoji.d.ts new file mode 100644 index 0000000..2129602 --- /dev/null +++ b/types/random-emoji.d.ts @@ -0,0 +1,4 @@ +export function haiku(options: any): any; +export function random(options: { + count: number +}): string;