This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
if [ "$1" = "--help" ]; then | |
echo "--help" | |
echo "--version" | |
exit | |
fi | |
if [ "$1" = "--version" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
process.env.WORKSPACE = process.env.WORKSPACE || '.'; | |
const p = require(process.env.WORKSPACE + '/package.json'); | |
const n = new Date(); | |
const d = new Date(+n - (n.getTimezoneOffset() * 60000)); | |
const v = p.version.split('-')[0] + '-dev.' + d.toISOString().slice(0, 10); | |
console.log(p.version, '->', v); | |
p.version = v; | |
const exec = require('child_process').execSync; | |
const fs = require('fs'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const inHousePackages = [ | |
'@island/auth', | |
'@island/base', | |
'@island/garena', | |
'@island/gateway', | |
'@island/log', | |
'@island/mobile-tencent', | |
'@island/nexon-ngs', | |
'@island/nexon', | |
'@island/push', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const json = require('./package.json'); | |
Object.keys(json.dependencies).forEach(i => { | |
if (isInHousePackage(i)) { | |
json.dependencies[i] = 'next'; | |
} | |
}); | |
Object.keys(json.devDependencies).forEach(i => { | |
if (isInHousePackage(i)) { | |
json.devDependencies[i] = 'next'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const package = require('./package.json'); | |
Object.keys(package.devDependencies).forEach(packageName => { | |
if (packageName.startsWith('@island/')) { | |
package.devDependencies[packageName] = 'next'; | |
} | |
}); | |
fs.writeFileSync('./package.json', JSON.stringify(package, null, 2) + '\n'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"basics": { | |
"name": "손경욱", | |
"label": "Senior Software Engineer", | |
"email": "hey.calmdown@gmail.com", | |
"phone": "010-6617-2134", | |
"summary": "2000년 게임 업계에 들어와서 구르다가 최근 10년은 EA에서 웹 스택으로 게임을 만들고 있습니다. 조직이 두 번째 성공을 하기 위해서 필요한 역량과 사람들에 대해 관심이 많습니다.", | |
"location": { | |
"address": "강남구 영동대로", | |
"city": "서울", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2020-05-12T02:19:39.773Z","extensionVersion":"v3.4.3"} |