Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(config): use named paths without the @ prefix #15

Open
richrdkng opened this issue Mar 31, 2020 · 0 comments
Open

feat(config): use named paths without the @ prefix #15

richrdkng opened this issue Mar 31, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request
Projects
Milestone

Comments

@richrdkng
Copy link
Contributor

richrdkng commented Mar 31, 2020

Instead of using the named path replacements with the @ prefix, provide the ability to match paths without them, e.g.:

const path = require('@nodewell/path')

// instead of this...
path('@src/**/*.*')

// ...use like this
path('src/**/*.*')
  • leaving the @ prefix is optional, the paths can be used with or without the @ prefix
  • the '@' alone will always mean the root directory (or the configured root)
  • leaving the @ prefix in the path config file is also a possibility, e.g.: instead of "@src": "./src", it's possible to define custom paths like this: "src": "./src"
  • in the config files, path values can be used too without the @ prefix, e.g.: instead of "images": "@assets/images", use like this: "images": "assets/images"
  • add a config option for this feature in the .pathsrc file
@richrdkng richrdkng added the enhancement New feature or request label Mar 31, 2020
@richrdkng richrdkng added this to the 3.0.0 milestone Mar 31, 2020
@richrdkng richrdkng self-assigned this Mar 31, 2020
@richrdkng richrdkng added this to To do in path via automation Mar 31, 2020
@richrdkng richrdkng changed the title feat: use named paths without the @ prefix feat(config): use named paths without the @ prefix May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
path
  
To do
Development

No branches or pull requests

1 participant