adamrdrew / VueZen

VueZen brings the power and simplicity of the VueJS stack to Tizen
8 stars 0 forks source link

Force Eclipse to ignore node_modules #5

Closed adamrdrew closed 7 years ago

adamrdrew commented 7 years ago

A byproduct of #1 we've not got a much more robust nodule_modules directory. Eclipse is attempting to do something with these at compile time resulting at this error and failed launch:

node_modules\.bin\cake's Unknown attribute :TYPE node_modules\.bin\cake's Unknown attribute :TYPE

The solution is to tell Eclipse to ignore the project node_modules directory, which is ultimately correct because the node presence in this app template has nothing to do with Tizen or the app.

Adding this to .project does it: `

1505654250214 10 org.eclipse.ui.ide.multiFilter 1.0-name-matches-false-false-node_modules

`

But there's a problem. I can't distribute a .project in the Template folder because Tizen Studio makes its own. I'm going to see if I can somehow control the project generation process to include this, but if I can't it'll be in a grunt task.

adamrdrew commented 7 years ago

I'm no Eclipse master, but AFAICT there's no way to automate this without re-writing the project file after the fact. There's no Eclipse equivalent of a .gitignore file. I think I'm going to need to create a new grunt task that uses xml2j to add this syntax in after the fact.

adamrdrew commented 7 years ago

This is resolved in commit 914c96f8bd50d. The solution I landed upon probably isn't ideal, but it works well enough. I will make sure the documentation spells out why we have this grunt task, why you should use it, and what your alternatives are.