3.6.1 • Published 29 days ago

@qiwi/uniconfig-plugin-path v3.6.1

Weekly downloads
17
License
MIT
Repository
github
Last release
29 days ago

@qiwi/uniconfig-plugin-path

Uniconfig path resolver plugin

Install

  npm i @qiwi/uniconfig-plugin-path
  yarn add @qiwi/uniconfig-plugin-path

Usage

import uniconfig, {rollupPlugin} from '@qiwi/uniconfig-core'
import uniconfigPluginPath from '@qiwi/uniconfig-plugin-path'
    
rollupPlugin(uniconfigPluginPath)
const config = uniconfig({data: ['<root>', 'config/default.json']}, {pipeline: 'path'}) 

config.get() // '/Users/antongolub/projects/uniconfig/config/default.json'  

root reference

As practice shows, it's quite useful to build paths from the app root. So the path plugin works as preset, and adds root plugin along with it. Root aliases: <root>, $root and APP_ROOT.

3.6.1

29 days ago

3.6.0

8 months ago

3.5.5

2 years ago

3.5.4

2 years ago

3.5.3

3 years ago

3.5.2

3 years ago

3.5.1

4 years ago

3.3.1

4 years ago

3.3.0

4 years ago

3.2.2

4 years ago

3.2.1

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.23.0

5 years ago

2.22.1

5 years ago

2.21.1

5 years ago

2.20.0

5 years ago

2.12.0

6 years ago