[object Object] Finished the deploy script ft random emojis [object Object]

This commit is contained in:
Matei Adriel 2019-05-27 21:04:32 +03:00
parent 2443ebd1fd
commit 7a16b15c88
5 changed files with 31 additions and 2 deletions

View file

@ -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...");

22
package-lock.json generated
View file

@ -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",

View file

@ -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",

View file

@ -22,7 +22,8 @@
"esModuleInterop": true
},
"include": [
"src/**/*.ts"
"src/**/*.ts",
"deploy.ts"
],
"exclude": [
"node_modules"

4
types/random-emoji.d.ts vendored Normal file
View file

@ -0,0 +1,4 @@
export function haiku(options: any): any;
export function random(options: {
count: number
}): string;