Giter VIP home page Giter VIP logo

docker-gulp-tasks's People

Contributors

justb81 avatar pijoe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

docker-gulp-tasks's Issues

How/where do you run your Gulp to get them in the container

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.

Can't find tasks defined in my Gulpfile

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.