-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why do we have npm, bower and grunt in the very same application? #13
Comments
I've researched a little bit here. AFAIK inside Yandex.Toloka we have an iframe, so, theoretically, everything could be inserted there, even things such as React + ES6. |
@nmingazov, we actually use ES6 as a code standard and, at least for now, it works fine within iframe inside Yandex.Toloka. However it is worth noting that we use a small number of ES6 features and some could actually lead to some bugs, since browser support for ES6 is still incomplete (see the Kangax compatibility table). @aykbadalyan will publish results of his research on the tools soon. |
Ok, seems fine. Honestly, didn't check for ES6 as is. |
Bower - Package Manager This tool is being used in order to add all the necessary dependencies to the project. Usage of NPM was considered by me to be a worse approach for the particular case of our project, since in Toloka-based version we are not responsible for the back-end and in stand-alone version, if any, we are going to use Python on the back-end. In contradiction, NPM is being mostly used for a case when both back and front end(s) is written in JS. Grunt - Build Automatization This tool cannot be replaced by any one out of the two other tools. Grunt is considered to be an automatization tool with the help of which developers are able to write tasks such as testing, concatenation and/or minification of files. Throughout usage of this tool all the required tasks are being gone through each time there is a need and thereby the process removes any mistakes developers could do in case of working manually / doing mechanical job. NPM - Package Manager NPM is used for installation of the bower tool. Webpack - Module Bundler Webpack is able to stand instead of Grunt and has a restriction of ES6 to be used.
I don’t find any sense in all those transformations because the true result we may reach is to use Webpack instead of Grunt, and due to the mentioned reasons both NPM and Bower should remain. @nmingazov , overall, I assume that the integrated tools do and will do the whole job we need not worse than any available alternatives. |
Ok, looks fine to me now. I will check this once again after we implement tests. |
when I installed bower to run this project, it reported to me following warning:
so, it is better to replace this library. |
http://stackoverflow.com/questions/21198977/difference-between-grunt-npm-and-bower-package-json-vs-bower-json
Looks like it gets a little bit outdated right now. Probably we should consider reducing the number of tools needed.
The text was updated successfully, but these errors were encountered: