Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

164
Visualizações
How to exclude only *.spec files and include all other *.js files under a directory in grunt task?

I need to include all *.js files and exclude only *.spec.js files under a directory.

I tried the following ways, it's either including all js or excluding all js files

'built/code/js/libs/preact/**/!(*.spec).js') but it fails with the message syntax error near unexpected token `('.

If I do this way - 'built/code/js/libs/preact/**/!*.spec.js') it excludes all js files

If I add in 2 different lines like below it excludes all js files

('built/code/js/libs/preact/**/*.js' +
'built/code/js/libs/preact/**/!*.spec.js')

Please let me know if there's a way to exclude spec files and include all other js files.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda