Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Some sort of ignore file for ./ml local deploy modules #419

Closed
stephen-gehring-ml opened this issue Apr 28, 2015 · 5 comments
Closed

Some sort of ignore file for ./ml local deploy modules #419

stephen-gehring-ml opened this issue Apr 28, 2015 · 5 comments

Comments

@stephen-gehring-ml
Copy link

I ran into some utf-8 errors when I try to deploy GRUNT NPM modules into MarkLogic using ./ml local deploy modules... I am wondering if there is a way to set up some sort of config file that will allow the ./ml local deploy modules to ignore some troubled files that are in a NPM package...

@grtjn
Copy link
Contributor

grtjn commented Apr 29, 2015

There is a kind of undocumented feature that allows you to add an ignore-folders property, which takes a regex pattern (don't include ^ and $, they are appended automatically). Would that already help?

@paxtonhare It has been asked before, can you specify different encodings somehow?

@paxtonhare
Copy link
Contributor

Not sure how you would specify different encodings

@rlouapre
Copy link
Contributor

rlouapre commented May 4, 2015

I am not sure if it is an encoding issue. I run into similar issue where ml deploy modules failed when trying to deploy unnecessary npm modules.

I fix it using ignore-folders suggested by @grtjn :

ignore-folders=.*/src/(test/mocha|main/node_modules/xquerrail2.framework/node_modules)/.*

@grtjn
Copy link
Contributor

grtjn commented May 12, 2015

@paxtonhare MarkLogic is expecting UTF8, but maybe some of those node_modules files are non-UTF8. I assume the ruby xcc library is reading files with ruby, and then streaming the contents with http. Can you read them with a specific encoding, and then convert the stream to utf8 explicitly for instance? Not sure how to configure that, but I'd think that would be kind of the approach..

@grtjn
Copy link
Contributor

grtjn commented Jun 14, 2017

The encoding part of this ticket is covered by #181, the ignore part is already supported. Closing this ticket.

@grtjn grtjn closed this as completed Jun 14, 2017
@grtjn grtjn self-assigned this Jun 14, 2017
@grtjn grtjn added this to the July 2017 milestone Jun 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants