Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

app.yaml skip_files skip an entire directory but one individual file

I have an app.yaml file in which I want to skip the entire node_modules directory save for one file I added called helpers.js. Currently my file looks like this:

runtime: nodejs
vm: true
skip_files:
 - ^node_modules$

What's the best way of skipping the entire node_modules directory except for helpers.js?

like image 595
Luke Pothier Avatar asked May 21 '16 14:05

Luke Pothier


1 Answers

It would appear you can just use a negative lookahead in your regex to do this:

^node_modules/(?!node\.js$).*

*this post may be useful to you also.

like image 54
Scott Weaver Avatar answered Nov 15 '22 08:11

Scott Weaver