LoginSignup
0
0

More than 5 years have passed since last update.

プロジェクトのテンプレートを保存、共有できるboilrというのを使ってみた

Posted at

プロジェクトのディレクトリ構成とかを保存して共有できる、boilrというのを見つけたので、使ってみました。

自分でテンプレートを作って保存することもできるようですが、今回は取り敢えず今あるものを使うところだけです。

以下は、ubuntu環境で試しています。

github

インストール

git clone してインストーラーを叩くだけでした。

$ cd ~

$ git clone https://github.com/tmrts/boilr.git

$ cd boilr

$ ./install
Downloading boilr ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   604    0   604    0     0    567      0 --:--:--  0:00:01 --:--:--   568
100 2905k  100 2905k    0     0   441k      0  0:00:06  0:00:06 --:--:--  649k
Completed installation

Boilr executable is installed to ~/bin/boilr

For more information, see: https://github.com/tmrts/boilr

~/bin/の下にインストールされるようです。

License Templateを試してみる

とりあえずLicense Templateを使ってみます。

初期化処理

initする必要があるようなのでinitします。

$ boilr init
[✔] Initialization complete

テンプレートのダウンロード

$ boilr template download tmrts/boilr-license license
[✔] Successfully downloaded the template "license"

最後の引数は別名設定なのでなんでも大丈夫みたいです。

無事ダウンロードされました。

使う

使ってみます。

$ boilr template use license ~/
[?] Please choose an option for "License"
    1 -  "Apache Software License 2.0"
    2 -  "MIT"
    3 -  "GNU GPL v3.0"
    Select from 1..3 [default: 1]:

対話形式でライセンスの種類を選ぶみたいなので、一旦MITでやってみます。

$ boilr template use license ~/
[?] Please choose an option for "License"
    1 -  "Apache Software License 2.0"
    2 -  "MIT"
    3 -  "GNU GPL v3.0"
    Select from 1..3 [default: 1]: 2
[?] Please choose a value for "Year" [default: "2015"]: 2016
[?] Please choose a value for "Author" [default: "Tamer Tas"]:
[✔] Created /root/LICENSE
[✔] Successfully executed the project template license in /root

他にもいくつか聞かれましたが上記のような感じでやってみました。

内容を確認してみる

lsしたらLICENSEファイルが生成されていました。

$ ls -ltr
drwxr-xr-x. 2 root root   4096 May 24 01:30 bin
-rw-r--r--. 1 root root   1078 May 24 01:46 LICENSE

内容を見てみます。

$ cat LICENSE

The MIT License (MIT)

Copyright (c) 2016 Tamer Tas

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

こんな感じでした。

現在提供されているテンプレート

以下に記載がありますが、まだ、sparkとelectron、licenseぐらいのようです。


今のところ利用するにはテンプレートの数が少ないですが、いろんな人が作って公開されてくると、結構便利になるかも、って気がしますね〜!

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