본문 바로가기

2018/113

우분투에서 한글 압축 깨질때.. 우분투 데스크탑을 쓰다 보면.. 한글 압축을 풀면서 한글이 이상하게 나오는 경우가 많습니다. 이런식으로.. 그래서 다른 분들의 글을 좀 찾아 봤는데… export UNZIP="-O cp949" export ZIPINFO="-O cp949" 이런 내용을 /etc/profile에 넣는 방법이 있었습니다. 하지만.. 이렇게 해 버리면.. utf-8로 압축된 파일이 또 문제가 발생 할 것 같아서.. 전 압축 파일에 euc-kr한글이 있을 경우 그냥.. terminal에서 풀기로 했습니다. ~/.bashrc 파일에 아래와 같이 추가하고.. alias hunzip='unzip -O cp949' 한글이 들어간 zip파일을 풀때는 터미널에서 $ hunzip [파일명].zip 이렇게 하려고 합니다. 다른 분들도 참고가 .. 2018. 11. 15.
Express with typescript and webpack Express with typescript and webpack 기본 패키지 설정 package.json 파일을 만들어 줍니다. npm init -y express에 필요한 패키지를 설치해 줍니다. yarn add express body-parser Typescript 설정 typescript에 사용할 패키지를 설치 합니다. yarn add --dev typescript ts-loader ts-node tslint @types/node @types/express typescript에 필요한 내용을 설치 합니다. 그리고 tsconfig.json파일을 아래와 같이 입력 해 줍니다. { "compilerOptions": { "target": "es6", "module": "commonjs", "moduleRe.. 2018. 11. 13.
Serverless & Webpack & Typescript 구성하기 Serverless & Webpack & Typescript 구성하기 serverless에서 webpack을 이용해서 typescript를 구성해 보면서 작업 하던걸 기록 해 둡니다. 기본 환경 구성 기본적으로 node.js가 설치 되어 있어야 합니다. serverless를 설치 합니다. npm install -g serverless 그리고, 프로젝트를 생성해 줍니다. $ serverless create -t aws-nodejs -p hello-lambda Serverless: Generating boilerplate... Serverless: Generating boilerplate in "/home/gyuha/workspace/hello-lambda" _______ __ | _ .-----.----... 2018. 11. 7.