3.0.1 • Published 1 year ago

wes-cli v3.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

wes-cli

CI Tests status badge npm version

Collection of CLI commands that make my life easier, such as maintaining configuration files across different projects. It might help you too!

Commands

wes install

Reads wes-config.json file in the current directory and installs files related to all dependencies. All files are added to the .gitignore file because they are generated and copied from the package itself.

All configurations are merged with each other, allowing multiple packages to change the same configuration depending on their need. The current logic is extremely simplistic (plain text files are appended, JSON files are deeply merged, yarn.lock files are regenerated). Files which can't be merged can be used, but only one version should exist, as another will generate a conflict.

Local overrides to configured files should be added to .wes-defaults/local, which will be merged last to take precedence for potential overrides.

This project is built using itself, so you can peek at wes-config.json and .wes-defaults/local to get a sense of usage.

You can see a list of dependencies as folders on modules.

Configuration

wes-config.json

Supported properties:

  • All versions:
    • version: number: Configuration version (latest is 2)
    • dependencies: string[]: List of modules to import configurations files from. See modules for all supported dependencies.
  • Version > 2:
    • localOverrides?: string[]: List of file paths from .wes-defaults/local that should be kept as is, not merging with any module's version. Paths shouldn't include a leading /.

License

MIT, https://wes.dev/LICENSE.txt

3.0.1

1 year ago

3.0.0

1 year ago

2.1.0

1 year ago

2.0.1

2 years ago

2.0.0

2 years ago

1.11.0

2 years ago

1.10.3

2 years ago

1.10.2

2 years ago

1.9.1

2 years ago

1.8.2

2 years ago

1.9.0

2 years ago

1.8.1

2 years ago

1.8.0

2 years ago

1.7.1

2 years ago

1.7.0

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.9.5

2 years ago

1.9.4

2 years ago

1.9.3

2 years ago

1.9.2

2 years ago

1.8.3

2 years ago

1.10.1

2 years ago

1.10.0

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago