KARAF / karaf star
2023-01-12
Open
#18 Svelte 개발 환경 설정 (로컬 Repo Nexus 사용) star
2023-01-12 Open
Tasks

Nexus 사용자ID 및 암호 엔코딩#

# echo -n '{사용자ID}:{암호}' | openssl base64
# 윈도우 사용자 Git Bash를 이용해서 실행
$ echo -n 'test:test1234' | openssl base64
dGVzdDp0ZXN0MTIzNA==
$

npm 환경 확인#

npm config ls -l
npm config ls -l | grep registry

.npmrc 생성#

  • 위치: 계정(SSEMIYA) 홈디렉토리 (Windows: C:\Users\SSEMIYA)
$ vi .npmrc
--init-author-name=SSEMIYA KIM
--init-author-email=test@ssemiya.com
email=test@ssemiya.com
always-auth=true
registry=http://localhost:48183/repository/npm-public/
//localhost:48183/repository/npm-public/:_auth="dGVzdDp0ZXN0MTIzNA=="

npm config ls -l | grep registry 으로 확인

로컬 npm repo(cache)#

~/.npm

프로젝트 생성#

npm create svelte@latest myapp

Git for Windows#

  • macos는 기본 설치되어 있음.

https://gitforwindows.org/ Git-2.39.0.2-64-bit.exe

Node for Windows#

  • macos 는 brew 설치하고 brew install node

https://nodejs.org/ko/download/ node-v18.13.0-x64.msi

Issue Sharer
Comment 2

    • Markdown help
    • Header
    • Text Style
    • Link
    • List
    • Checklist
    • Image
    • Blockquote
    • Code
    • Table
    • Short Link
    • Markdown Input
      Markdown Output
      # This is an H1
      ## This is an H2
      ### This is an H3
      
      # This is an H1 ## This is an H2 ### This is an H3
    • Markdown Input
      Markdown Output
      *This is an italic*
      **This is an bold**
      ~~This is an strike~~
      
      *This is an italic* **This is an bold** ~~This is an strike~~
    • Markdown Input
      Markdown Output
      - Red
          1. White
          2. Blue
      - Green.
      
      - Red 1. White 2. Blue - Green
    • Markdown Input
      Markdown Output
      - [ ] Todos
          - [x] To do A
          - [ ] To do B
          - [ ] To do C
                          
      • Todos
        • To do A
        • To do B
        • To do C
    • Markdown Input
      Markdown Output
      ![title](https://repo.yona.io/assets/images/ico-like-small.png "Yobi")
      
      ![title](/assets/images/ico-like-small.png "Yobi")
    • Markdown Input
      Markdown Output
      > Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
      >
      > Aenean commodo ligula eget dolor.
      
      > Lorem ipsum dolor sit amet, consectetuer adipiscing elit. > > Aenean commodo ligula eget dolor.
    • Markdown Input
      Markdown Output
      `function test() {console.log("hello world");}`
      
      ```javascript
      function test() {
        console.log("hello world");
      }
      ```
      
      `function test() {console.log("hello world");}` ```javascript function test() { console.log("hello world"); } ```
    • Markdown Input
      Markdown Output
      | Default      | Align center | Align right |
      | ------------ | :----------: | ------: |
      | Carrot       | Red          | 1,000   |
      | Banana       | Yellow       | 32,000  |
      
      | Default | Align center | Align right | | ------------ | :----------: | ------: | | Carrot | Red | 1,000 | | Banana | Yellow | 32,000 | Also, you can copy & paste table from excel sheet
    Notification receivers
    Drag & Drop files here to upload.
    Tasks

    Proxy를 통해 자동으로 안돼서 수동으로 로컬 Nexus에 밀어넣은 NPM 컴포넌트#

    https://registry.npmjs.org/vite/-/vite-4.0.4.tgz
    https://registry.npmjs.org/has/-/has-1.0.3.tgz
    https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz
    
    Reply
    • Markdown help
    • Header
    • Text Style
    • Link
    • List
    • Checklist
    • Image
    • Blockquote
    • Code
    • Table
    • Short Link
    • Markdown Input
      Markdown Output
      # This is an H1
      ## This is an H2
      ### This is an H3
      
      # This is an H1 ## This is an H2 ### This is an H3
    • Markdown Input
      Markdown Output
      *This is an italic*
      **This is an bold**
      ~~This is an strike~~
      
      *This is an italic* **This is an bold** ~~This is an strike~~
    • Markdown Input
      Markdown Output
      - Red
          1. White
          2. Blue
      - Green.
      
      - Red 1. White 2. Blue - Green
    • Markdown Input
      Markdown Output
      - [ ] Todos
          - [x] To do A
          - [ ] To do B
          - [ ] To do C
                          
      • Todos
        • To do A
        • To do B
        • To do C
    • Markdown Input
      Markdown Output
      ![title](https://repo.yona.io/assets/images/ico-like-small.png "Yobi")
      
      ![title](/assets/images/ico-like-small.png "Yobi")
    • Markdown Input
      Markdown Output
      > Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
      >
      > Aenean commodo ligula eget dolor.
      
      > Lorem ipsum dolor sit amet, consectetuer adipiscing elit. > > Aenean commodo ligula eget dolor.
    • Markdown Input
      Markdown Output
      `function test() {console.log("hello world");}`
      
      ```javascript
      function test() {
        console.log("hello world");
      }
      ```
      
      `function test() {console.log("hello world");}` ```javascript function test() { console.log("hello world"); } ```
    • Markdown Input
      Markdown Output
      | Default      | Align center | Align right |
      | ------------ | :----------: | ------: |
      | Carrot       | Red          | 1,000   |
      | Banana       | Yellow       | 32,000  |
      
      | Default | Align center | Align right | | ------------ | :----------: | ------: | | Carrot | Red | 1,000 | | Banana | Yellow | 32,000 | Also, you can copy & paste table from excel sheet
    Notification receivers
    Drag & Drop files here to upload.
    Tasks

    로컬 Nexus에 스벨트 컴포넌트 PUSH 하려면?#

    • package.json 에 다음 추가
        "private": false,
        "publishConfig": {
            "registry": "http://localhost:48183/repository/npm-hosted/"
        },
    
    Reply
Add a comment