Reverse skip_files in Google App Engine app.yaml

2019-05-07 09:23发布

I currently have the following skip_files in my app.yaml:

skip_files:
- ^\..*
- ^.*\.(json|yaml)$
- ^Gruntfile\.js$
- ^bower_components
- ^node_modules
- ^src
- ^tests
- ^tmp

This is pretty bloated. Actually I just want to add everything to the skip_files except for everything in the dist folder.

Is this possible?

3条回答
成全新的幸福
2楼-- · 2019-05-07 10:09

This is working for me :

skip_files:
- (?!^dist)
查看更多
Viruses.
3楼-- · 2019-05-07 10:24

No. But for perspective, an 8 line skip_files is hardly bloated, at least from what I've seen people do.

查看更多
Lonely孤独者°
4楼-- · 2019-05-07 10:25

Today I tried the solution given by @Alex Kubity and didn't work. I had the error

Step #0: node.js checker: No package.json file.

So I changed the regex to

^(?!dist|package).*$

To skip all files except dist folder and package*.json.

查看更多
登录 后发表回答