@akasuv/locus

0.0.2 • Public • Published

Locus

Manage all configuration files in one place.

commands

--load // --load prettier/eslint/babel from repo/templates
--list // fetch data from github repo
--scan // scan package.json
--config // choose Locus config
//-- TODO: auth --
--update // update repo
--upload // add new config into repo

load

locus --load prettier
locus --load https://github.com/akasuv/configurations/blob/master/.prettierrc.json
  • If the value passed to --load is a package name, Locus will do a check
    • If there's a Github repo configured, Locus will try to lookup related package config files from the specific repo, if files found, then it will move to next step, if not found, it will search recommend templates.
    • If Github repo not configured, Locus will search recommend templates and recommend to config a Github repo.
  • If the value passed to --load is a path(local absolute/relative path or url), Locus will try to load the file from the path.

list

--list
  • If Github repo is specified, Locus will display all the files from the repo.
    • You can select and load files

scan

--scan [path] 
  • By default Locus will scan package.json two fields: dependencies and devDependencies , the packages without configs will be displayed on the top, the configured will be on the bottom.

Keywords

none

Install

npm i @akasuv/locus

DownloadsWeekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

9.86 kB

Total Files

10

Last publish

Collaborators

  • akasuv