diff --git a/packages/taro-cli/bin/taro b/packages/taro-cli/bin/taro index 35c9a8557935..8fd4125daa72 100755 --- a/packages/taro-cli/bin/taro +++ b/packages/taro-cli/bin/taro @@ -5,6 +5,14 @@ const { getPkgVersion, printPkgVersion } = require('../src/util') printPkgVersion() +const startTime = new Date('2019-1-1 00:00').getTime() +const endTime = new Date('2019-1-2 00:00').getTime() +const nowTime = Date.now() +if (nowTime >= startTime && nowTime <= endTime) { + const yearTxt = String(require('fs-extra').readFileSync(require('path').resolve(__dirname, 'year.txt'))) + console.log(require('chalk').rgb(255, 87, 34)(yearTxt)) +} + program .version(getPkgVersion()) .usage(' [options]') diff --git a/packages/taro-cli/bin/year.txt b/packages/taro-cli/bin/year.txt new file mode 100644 index 000000000000..dc47403739fa --- /dev/null +++ b/packages/taro-cli/bin/year.txt @@ -0,0 +1,9 @@ +🏮 🎉 🏮 🎉 🏮 🎉 🏮 🎉 🏮 🎉 🏮 🎉 🏮 🎉 🏮 🎉 🏮 🎉 🏮 🎉 🏮 🎉 🏮 🎉 🏮 🎉 🏮 🎉 🏮 +🎉 _ _ _ _ _____ _____ __ _____ _ 🎉 +🏮 | | | | | | | / __ | _ / || _ | | | 🏮 +🎉 | |_| | ___| | | ___ `' / /| |/' `| || |_| | | | 🎉 +🏮 | _ |/ _ | | |/ _ \ / / | /| || |\____ | | | 🏮 +🎉 | | | | __| | | (_) | ./ /__\ |_/ _| |.___/ / |_| 🎉 +🏮 \_| |_/\___|_|_|\___/ \_____/\___/\___\____/ (_) 🏮 +🎉 🎉 +🏮 🎉 🏮 🎉 🏮 🎉 🏮 🎉 🏮 🎉 🏮 🎉 🏮 🎉 🏮 🎉 🏮 🎉 🏮 🎉 🏮 🎉 🏮 🎉 🏮 🎉 🏮 🎉 🏮