1.0.1 • Published 7 years ago

sync-config.js v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

sync-config.js

同步前端构建工具配置文件的命令行工具,保持不同项目间的配置文件一致,统一不同项目里代码的风格。
目前能够保持同步的配置文件:

  • .eslintrc
  • .eslintignore
  • .prettier
  • .editorconfig
  • .babelrc
  • .gitignore

使用方式

  1. 安装 npm install sync-config.js -g

  2. 初始化 在项目初始化yarn initnpm init 后,运行 syncc init
    添加 registor 地址。(从 git 上拉取配置文件),同步到本地。
    最后打印配置中所依赖的插件列表,提示安装。

  3. 更新配置文件 syncc update
  4. syncc 配置文件:.syncrc ignore: [] 忽略同步某个文件 url: '' registor 地址 name: '' 配置模板名称