-
Notifications
You must be signed in to change notification settings - Fork 81
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
Question: What's the current status of JavaScript asset managers? #11
Comments
I can't recall the answer off the top of my head, but Lightweight Django was recently published by the Caktus Group, and they delve deep into using JavaScript with Django. It's a thin book, and may be worth reading through to find the answer. |
FYI, I re-read parts of Lightweight Django. It looks like they are using django-compressor for both JavaScript and CSS (including LESS/Sass) asset management. |
I got tired of dealing with these, so now I use Gulp. Would definitely recommend dealing with JavaScript assets via JavaScript. Need NPM for installing assets anyway. |
I believe Gulp has emerged as a leading build tool. I use it for all frontend tasks and prefer keeping my backend and frontend separate. NPM for all that you can with Bower only if needed. |
I always use Node-based tools to manage my JavaScript assets now. I used to use django-compressor, but the front-end community has standardized on Node-based tools. Gulp is more in than Grunt right now because of its flexibility (piping streams is easy). I would see Broccoli-based asset pipelines becoming more popular (it's used by ember-cli which is growing in popularity). |
I also stick with Gulp and other NPM based tooling. Gulp is a full buildtool with pipelining, dependencies etc, where django-compressor and alternatives fall short. There is a plugin for everything. I also love integration with transpilers like babeljs (ES6 to ES5 transpiler) and that it's super fast. I have a gulp command |
I do it locally with codekit. Which may be grunt underneath for all I know. |
Gulp (and Bower), definitely. Once I stopped fighting it and started using a JavaScript build system for JavaScript, virtually all my problems went away. Django compressor was always a headache. |
webpack is quite popular as well |
There's also a push from soem to keep things simple and use npm as the build tool exemplified by this http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/ |
How about Gulp as the lead, plus suggestions for other tools? |
Gulp seems to be in the lead, but what I'd really like are suggestions to do as pythonic as possible with django-bower and libsass based python preprocessor, if such a tool exists. I'm currently using a combination of gulp, mainly because of 'browsersync' that auto-reloads my browser even when I change django templates. But if there would be a python based solution, i'd drop gulp in a second. I've also seen other people bringing django-compressor in the mix. Which diversifies the tools used even further. While typing this, I noticed the original issue was 'javascript asset management' as opposed to using a complete build script. If we limit the scope to javascript asset management only, then I guess django-bower fits well. It's a wrapper around the globally installed bower npm package, but at least it fits in your workflow without adding a package.json or .bowerrc in your source code. |
The lack of consensus here is interesting. Either I defined the question poorly, it's changing too fast, or there is no best thing to suggest. |
Went with gulp.js. When the status quo changes in the near future we may switch to that. Am I being too cynical? 😜 |
Of course, within a month anything we write will be dated. ☕
The text was updated successfully, but these errors were encountered: