Closed easingthemes closed 3 years ago
Thank you for your opinion. But I think ignore file should located for each app project. because WITs is installed globally, and Each app can have different ignore option. Thank you.
WITs work fine locally as any other npm package. Handling dependencies per project is better than any global config. Every Project can use different versions of packages. Even NodeJs can be local installation. This way Projects are totally decoupled from any environment.
But I think ignore file should located for each app project
- yes I agree here, app project usually contains a lot of development code which is not meant for final production part of the app.
Eg eslint, stylelint, node_modules, .witsconfig.json, .git, - all of this are just helper files, and app distribution files are in baseAppPath
.
baseAppPath
should contain only final app code, no development helpers. Currently every location is fine, except of .witsignore
Thank you for detail review and opinion. I agree
baseAppPath should contain only final app code,
- I agree.
I considered it like .gitIgnore
. and Users can conveniently modify ignore option each app.
I will consider a good way to update next time.
You know what. When you package a tizen app(.wgt), you can treat a specific file as an exception.
.witsignore
is not part of the app files, just Project helper. Location should not be inbaseAppPath
, but rather inprocess.cwd()
.This works fine for
.witsconfig.json
: Current:Should be:
Codebase: https://github.com/Samsung/Wits/blob/master/lib/watchHelper.js#L84