Django with Gulp
hello friend,
A few month back, I was working on a Django (Python Web Framework) project, usually I work on Laravel (PHP Framework), and I use either gulp (in Laravel 5.2-5.3) or webpack (in Laravel 5.4), as task runner and module bundler respectively.
As we know, gulp/webpack comes inbuilt with Laravel, once we clone from the github repository. But, in case of Django, very limited files come when we create a new project (using django-admin startproject mysite). We have to create app, model, template etc. Which is kind of sensible, as it give a compact project/app. It then depends on developer, who shapes Django application.
Coming from Laravel, I faced some teething problem, later got used to Django ecosystem. During development process I used gulp as task runner, and wanted to share to other developers so that they can use in there projects too. It isn't specific to Django, you can use this gulp file in other framework like Rails or Laravel (don't forget to change file path).
I've created a Github Gist, which you can find here. It includes "package.json" and "gulpfile.js".
- package.json: Where you'll be able to download node packages, on which gulp functionality is dependent.
- gulpfile.js: Where you'll get task related to scripts (Javascript, jQuery and AngularJS), styles (CSS, SCSS) and image processing.
Don't forget to star, if you find this gist useful.