Skip to content

Instantly share code, notes, and snippets.

@watilde
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save watilde/a4d598f09ffacd3d88d3 to your computer and use it in GitHub Desktop.
Save watilde/a4d598f09ffacd3d88d3 to your computer and use it in GitHub Desktop.
設定ファイル類のまとめツール構想

問題意識

たとえばjQuery

何かしらのmeta情報を持っている設定ファイルが大量にある

  • .bowerrc
  • .editorconfig
  • .jscsrc
  • .jshintignore
  • .jshintrc
  • package.json
  • bower.json

jqueryにはないけど、よく採用されてるやつ

  • component.json
  • enable_power_assert.js

プロジェクトのルートディレクトリが設定ファイルで埋め尽くされるより、 一つの設定ファイルディレクトリにまとめられたほうが見通し良い気がする

解決

こんなかんじで依存ツールを突っ込んでく

  • putでmv + gitignore
$ chest put bower.json

一つのディレクトリ内に入ってく

$ ls ./.chest
  - package.json
  - bower.json
  - component.json

コマンドでルート以下にSymbolic Linkで展開する?

$ chest open
$ ls
  - bower_components
  - node_modules
  - components

packできるようにする?like chest.json

{
  bower: {},
  component: {}
}

bower installとかnpm installとか面倒だから、全部やらせる? もしくは、npm run-script chestをやるか

$ chest boost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment