babel-plugin-detect-haiku
v1.0.2
Published
ビルド時にソースコードから 575 を見つける babel-plugin
Downloads
10
Readme
babel-plugin-detect-haiku
ビルド時にソースコードから 575 を見つける babel-plugin
これは クソアプリ Advent Calendar 2019の 19 日目の記事である、ビルド時に俳句を読めるプラグイン のために開発されたものです。
導入
babel とプラグインの導入
$ yarn add -D babel babel-plugin-detect-haiku
設定ファイル(babelrc など)を編集
module.exports = {
// 中略
plugins: ["detect-haiku"]
};
動作例や設定例は、 575-detect-plugin-example を参考ください。
開発
モジュールインストール
$ yarn install
実行
$ yarn run start
公開前にドライラン
$ tar -tf $(npm pack)
npm に公開
$ npm publish