ipunkt / docker-gulp-tasks Goto Github PK
View Code? Open in Web Editor NEWDocker-Image with ready-to-use Gulp-Tasks
Home Page: https://hub.docker.com/r/ipunktbs/gulp-tasks/
License: MIT License
Docker-Image with ready-to-use Gulp-Tasks
Home Page: https://hub.docker.com/r/ipunktbs/gulp-tasks/
License: MIT License
I have a set of Gulp tasks I always use for a project and I am trying to switch over to Docker to have them run detached from my host machine. So all my tasks are already the way I want them to be, but how do you run your Gulp command (mine are gulp
, gulp watch
and gulp --production
) inside the container, if I run them from the command line Gulp is used from my host machine, which is not what I want I just want to run my docker-compose.yml
file and have it all run from there, but I need to some how specify the location of my gulpfile.js
so that Docker knows where the start point is of my project.
If it helps my setup is for Wordpress theme development and my docker-compose.yml
file looks like this, there is no npm, gulp or bower installed at the moment, because I am just plain lost. To get this file working I spend the better part of my weekend setting it up and now I am lost. I mount the root locations of a Wordpress install, so I need to have Gulp run inside that mount, but a few folders deeper inside /wp-content/themes/MY-THEME
because there my package.json
, gulpfile.js
and bower.json
files are stored. Could you shed any light on this matter or some location on where I could find detailed information to set it up?
Sorry to bother you and if this is the wrong place to ask just close this issue.
This should be configurable in the css-task.
I pulled the current image (6501338b5a4a) from docker hub, followed the instructions but could not get it to work.
I kept getting 'Task is not in your Gulpfile', so it seem even though the gulpfile.js is required, the tasks are not loaded.
My workaround was to change the import order:
var glp = require(projectPath + '/gulpfile');
gulp.tasks = glp.tasks;
requireDir('./tasks', {recurse: true});
And added a module export to the end of my gulpfile
module.exports = gulp;
This worked.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.