필요조건

✔ Node 10 LTS 이상

 

node.js 설치

1.  터미널창 열기



2.  curl 설치

$ sudo apt-get install -y curl



3.  node.js 설치

$ sudo apt update
$ sudo apt install node.js



4. 설치 확인

설치된 node.js 버전 확인

$ nodejs -v

 

Node Package Manager 설치


1. npm 설치
    

$ sudo apt install npm



2. 설치 확인

설치된 npm 버전 확인

$ npm -v

 

Enact 설치


1. npm을 통한 설치

$ npm install -g @enact/cli



2. 설치 확인

설치된 enact 버전 확인

$ enact -v

 

VS Code 설치


1. Microsoft GPG key 다운로드 후 /etc/apt/trusted.gpg.d/. 경로에 복사

$ sudo sh -c 'curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/microsoft.gpg'


2. 레퍼지토리 추가

$ sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'



3. 패키지 리스트 초기화

$ sudo apt update



4. VS code 설치

$ sudo apt install code

 

Git 설치


1. 패키지 리스트 초기화

$ sudo apt update



2. Git 설치

$ sudo apt install git



3. 설치 확인

설치된 git 버전 확인

$ git --version

 

SSH 공개키 생성


1. 공개키 설치 확인

$ cd ~/.ssh
$ ls

 

 

✔ ‘id_dsa’ 혹은 ‘id_rsa’ 확인

✔ id_dsa.pub



2. SSH 공개키 생성


    1. 생성 커맨드 입력
        

$ ssh-keygen

 

    2. 키 저장경로 입력
    



    3. 비밀번호 두 번 입력
    



    4. 키 생성 확인
    



    5. Git 서버 관리자에게 공개 키 전송

$ cat ~/.ssh/id_rsa.pub


 

 

Enact 프로젝트 빌드

 

1. clone된 프로젝트 폴더로 이동

$ cd [folder]



2. Npm 설치

$ npm install -P


3. 프로젝트 빌드

$ enact pack -p -i -s -l=tv



4. 프로젝트 폴더 내 dist 폴더 생성 확인

반응형

+ Recent posts