T
T
tamtakoe2014-06-25 09:34:31
Command line
tamtakoe, 2014-06-25 09:34:31

How to write file path patterns correctly?

There is some kind of templating system for file paths. It is often used in build systems, etc. Perhaps there is some standard (unix, shel, node.js) where to read about it?
Now there is a problem with Stylus in such a project:

project
|- module1
|- module2
|- main.styl

Main.styl should import styles from the entire project
@require '**/*.styl'; //Такая строчка почему-то не работает
@require './**/*.styl'; //Такая тоже

@require '../project/**/*.styl'; //А эта работает
@require 'имя_модуля/**/*.styl'; //И эта тоже

What is the reason?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RPG, 2014-06-25
@RPG

@require 'module_name/**/*.styl'; //And this one too

According to the logic, this should work:
And it also says here that the "**" pattern is disabled by default.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question