LoginSignup
0
0

More than 3 years have passed since last update.

【FolioLSP】Stripes CLI

Posted at

ガイド

Stripes CLIとは

Stripes CLIはStripes UIモジュールの作成、開発、構築、テストを容易にするコマンドラインインターフェイスです。

Stripes CLIの導入

npm-folioとnpm-foliociの両方のレジストリを利用できます。 どちらのレジストリを使用するかについては、folioレジストリの設定を参照してください。以下は、npm-folioからグローバルにCLIをインストールする方法です。

yarn config set @folio:registry https://repository.folio.org/repository/npm-folio/

vagrant@vagrant:~$ yarn config set @folio:registry https://repository.folio.org/repository/npm-folio/
yarn config v1.22.4
success Set "@folio:registry" to "https://repository.folio.org/repository/npm-folio/".
Done in 0.11s.

yarn global add @folio/stripes-cli

vagrant@vagrant:~$ yarn global add @folio/stripes-cli
yarn global v1.22.4
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "@folio/stripes-cli@1.17.0" with binaries:
      - stripes
Done in 189.46s.

以下のエラーが出たら

-bash: stripes: command not found

このあたりを参考にする。
https://stackoverflow.com/questions/40317578/yarn-global-command-not-working

例:以下を~/.bash_profileに追記する。
PATH="$PATH:$HOME/.config/yarn/global/node_modules/.bin"

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0