-
GitHubからリポジトリーをクローンする
$ cd && git clone [email protected]:a-ibs/livemasq-website.git \ && cd livemasq-website
-
asdfのプラグインを追加する
$ asdf plugin-add direnv \ ; asdf plugin-add nodejs \ ; asdf plugin-add python \ ; asdf plugin-add yarn
-
Node.jsリリースチームのPGPキーを追加する
$ bash ~/.asdf/plugins/nodejs/bin/import-release-team-keyring
-
asdf(仮想環境)にPythonやNode.jsのモジュールをインストールする
$ asdf install
-
livemasq-websiteの開発環境構築に必要な依存パッケージをインストールする
$ yarn \ && pip install --requirement requirements.txt
-
mdファイルをhtmlファイルにトランスパイルし、localhostにサーバーを立ち上げる
$ yarn start
上記実行後、 ブラウザーで http://127.0.0.1:8000/ にアクセスする
$ yarn build:stage
または
$ yarn build:production
-
手動で試す
$ pre-commit run --all-files
-
うまくいったらGit フックとして設定してlintを自動化する
$ pre-commit install