Giter Site home page Giter Site logo

cli-app-template's Introduction

cli-app-sample

use to introduce yourself with CLI

cliApp

Usage

使用する上で、以下の設定をする必要がある

リポジトリ生成

自分のアカウント名と同じ名前のリポジトリを作成する
※大文字が入っている場合は小文字に変えて作成

このリポジトリをローカルにクローンしてリモート先は自分のアカウント名のリポジトリに設定する

修正箇所

package.json

以下を参考に変更する

{
  
  "name": "自分のリポジトリ名を指定",
  
  "description": "自分のリポジトリ名 CLI",
  
  "repository": {
    "type": "git",
    "url": "git+https://github.com/アカウント名/リポジトリ名.git"
  },
  "keywords": [
    "cli-app",
    "cli",
    "自分のリポジトリ名"
  ],
  "author": {
    "name": "公開する名前",
    "email": "メールアドレス"
  },
  
  "bin": {
    "リポジトリ名": "./src/cli.js"
  },
  
}

src/const.js


exports.userName = 'リポジトリ名'

exports.introduce = '自己紹介文'

exports.userItems = [
  {
    label: 'CLIで表示させたい名前',
    url: 'URLアドレス'
  },
  
]

src/avatar.png

表示させたいアイコンに変更する
※アイコン名を変えた場合、 src.const.jsimgFileName にも修正をする

README.md

設定が終わったら、他に紹介したいものをこちらの README.md に記載する

npmにデプロイ

大まかな流れは以下の通り

  1. npmjsでユーザ登録する
  2. 登録した情報を元にローカル環境から npm にユーザを追加する
  3. npm publish . でデプロイをする

デプロイが完了すると以下のコマンドで確認ができる

npx リポジトリ名

Command

ローカルで確認するときは以下のコマンドで確認する

npm run build

License

MIT © leeddhh

cli-app-template's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.