Fixes #172: Update Site.js emoji to reflect the new logo

parent 2e8c4879
...@@ -29,7 +29,7 @@ module.exports = function (args) { ...@@ -29,7 +29,7 @@ module.exports = function (args) {
const hugo = new Hugo(path.join(Site.settingsDirectory, 'node-hugo')) const hugo = new Hugo(path.join(Site.settingsDirectory, 'node-hugo'))
console.log(` 🎠 ❨Site.js❩ Running Hugo with command ${hugoArgs}\n`) console.log(` 🎠 ❨site.js❩ Running Hugo with command ${hugoArgs}\n`)
;(async () => { ;(async () => {
if (positionalArgs.startsWith('server')) { if (positionalArgs.startsWith('server')) {
...@@ -46,7 +46,7 @@ module.exports = function (args) { ...@@ -46,7 +46,7 @@ module.exports = function (args) {
console.log(`${Site.HUGO_LOGO} ${line}`) console.log(`${Site.HUGO_LOGO} ${line}`)
}) })
console.log('\n ❌ Hugo encountered an error. Exiting… ') console.log('\n ❌ Hugo encountered an error. Exiting… ')
console.log('\n 💕 ❨Site.js❩ Goodbye!\n') console.log('\n 💕 ❨site.js❩ Goodbye!\n')
process.exit(1) process.exit(1)
} }
...@@ -73,14 +73,14 @@ module.exports = function (args) { ...@@ -73,14 +73,14 @@ module.exports = function (args) {
// Handle graceful exit. // Handle graceful exit.
goodbye = (done) => { goodbye = (done) => {
console.log('\n 💃 ❨Site.js❩ Preparing to exit gracefully, please wait…\n') console.log('\n 💃 ❨site.js❩ Preparing to exit gracefully, please wait…\n')
if (hugoServerProcess) { if (hugoServerProcess) {
console.log(' 🚮 ❨Site.js❩ Killing Hugo server process.') console.log(' 🚮 ❨site.js❩ Killing Hugo server process.')
hugoServerProcess => hugoServerProcess.kill() hugoServerProcess => hugoServerProcess.kill()
} }
console.log('\n 💕 ❨Site.js❩ Goodbye!\n') console.log('\n 💕 ❨site.js❩ Goodbye!\n')
done() done()
} }
Graceful.on('SIGINT', this.goodbye) Graceful.on('SIGINT', this.goodbye)
...@@ -97,13 +97,13 @@ module.exports = function (args) { ...@@ -97,13 +97,13 @@ module.exports = function (args) {
console.log(`${Site.HUGO_LOGO} ${line}`) console.log(`${Site.HUGO_LOGO} ${line}`)
}) })
console.log('\n ❌ Hugo encountered an error. Exiting… ') console.log('\n ❌ Hugo encountered an error. Exiting… ')
console.log('\n 💕 ❨Site.js❩ Goodbye!\n') console.log('\n 💕 ❨site.js❩ Goodbye!\n')
process.exit(1) process.exit(1)
} }
output.split('\n').forEach(line => { output.split('\n').forEach(line => {
console.log(`${Site.HUGO_LOGO} ${line}`) console.log(`${Site.HUGO_LOGO} ${line}`)
}) })
console.log('\n 💕 ❨Site.js❩ Goodbye!\n') console.log('\n 💕 ❨site.js❩ Goodbye!\n')
} }
})() })()
} }
...@@ -126,8 +126,8 @@ class Ensure { ...@@ -126,8 +126,8 @@ class Ensure {
try { try {
Site.logAppNameAndVersion() Site.logAppNameAndVersion()
console.log(' 😇 [Site.js] Linux: about to disable privileged ports so we can bind to ports < 1024.') console.log(' 😇 ❨site.js❩ Linux: about to disable privileged ports so we can bind to ports < 1024.')
console.log(' 👉 For details, see: https://source.small-tech.org/site.js/app/-/issues/169') console.log(' ❨site.js❩ For details, see: https://source.small-tech.org/site.js/app/-/issues/169')
childProcess.execSync('sudo sysctl -w net.ipv4.ip_unprivileged_port_start=0', {env: process.env}) childProcess.execSync('sudo sysctl -w net.ipv4.ip_unprivileged_port_start=0', {env: process.env})
} catch (error) { } catch (error) {
......
This diff is collapsed.
...@@ -81,7 +81,7 @@ function manifest () { ...@@ -81,7 +81,7 @@ function manifest () {
} }
function siteJSHeader () { function siteJSHeader () {
return dehydrate('💕 Site.js') return dehydrate('🌱 Site.js')
} }
function binaryVersionLine () { function binaryVersionLine () {
...@@ -688,9 +688,9 @@ test('[commands] hugo', t => { ...@@ -688,9 +688,9 @@ test('[commands] hugo', t => {
const actualOutput = outputForCommand(_('hugo version')) const actualOutput = outputForCommand(_('hugo version'))
t.ok(actualOutput.includes(dehydrate('🎠 ❨Site.js❩ Running Hugo with command version')), 'hugo command output includes Site.js information line') t.ok(actualOutput.includes(dehydrate('🎠 ❨site.js❩ Running Hugo with command version')), 'hugo command output includes Site.js information line')
t.ok(actualOutput.includes(dehydrate('🅷 🆄 🅶 🅾 Hugo Static Site Generator v0.64.1-C327E75D')), 'hugo command output includes correct hugo version') t.ok(actualOutput.includes(dehydrate('🅷 🆄 🅶 🅾 Hugo Static Site Generator v0.64.1-C327E75D')), 'hugo command output includes correct hugo version')
t.ok(actualOutput.includes(dehydrate('💕 ❨Site.js❩ Goodbye!')), 'hugo commands exits as expected') t.ok(actualOutput.includes(dehydrate('💕 ❨site.js❩ Goodbye!')), 'hugo commands exits as expected')
t.end() t.end()
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment