npm - How to exclude node_modules folder from publish artifact in VSTS -


i have build definition in place build project , publish files release. project relies on bit of npm automation using gulp.js. dont need else once gulp-tasks have run.

when publish artifacts step, publishes of files in node_modules directory though don't have them in repo. wondering if there way exclude them within contents section or if else has better idea?

here publish artifacts settings: enter image description here

in contents section, tried:

**\* !**\node_modules\* 

i pretty new build & release process , unsure other information might needed debug issue. please comment , can include information needed. thanks!

since copy , publish build artifacts task deprecated now, you’d better use copy files task , publish build artifacts task instead. , these 2 tasks can exclude node_modules folder publishing server. detail settings below:

copy files task

source folder: $(build.sourcesdirectory)

contents:

**\** !**\node_modules\** 

target folder: $(build.artifactstagingdirectory)

enter image description here

publish build artifacts task

publish build artifacts task: $(build.artifactstagingdirectory)

artifact name: drop

enter image description here


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -